[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [EquisMetaStock Group] Stop loss line in a graph



PureBytes Links

Trading Reference Links





<FONT face="Times New Roman" 
color=#000000 size=3>This is a stop loss 
indicator based on the following:
<FONT face="Times New Roman" 
color=#000000 size=3> 
<FONT face="Times New Roman" 
color=#000000 size=3>a) an initial entry day stop 
set at "EDATRFactor"% away from the entry price
<FONT face="Times New Roman" 
color=#000000 size=3>b) a trailing stop loss set 
at "TSATRFactor"% away from the highest high since entry.
<FONT face="Times New Roman" 
color=#000000 size=3> 
<FONT face="Times New Roman" 
color=#000000 size=3>When you pull the indicator 
onto a chart you will be prompted for:
<FONT face="Times New Roman" 
color=#000000 size=3> 
<FONT face="Times New Roman" 
color=#000000 size=3>a) Entry Price: leaving it 
at zero will assume that you entered at yesterday's high
<FONT face="Times New Roman" 
color=#000000 size=3>b) EDATRFactor; default is 
0.75%
<FONT face="Times New Roman" 
color=#000000 size=3>c) TSATRFactor: default is 
2.50%
<FONT face="Times New Roman" 
color=#000000 size=3>d) Buy Day: enter date of 
purchase
<FONT face="Times New Roman" 
color=#000000 size=3>e) Buy Month: enter month of 
purchase
<FONT face="Times New Roman" 
color=#000000 size=3>f) Buy Year: enter year of 
purchase
<FONT face="Times New Roman" 
color=#000000 size=3> 
<FONT face="Times New Roman" 
color=#000000 size=3>I am sure that this will 
give you the general picture; if you wish to define where your 6% stop loss is 
calculated from I would be happy to modify the code for you.
<FONT face="Times New Roman" 
color=#000000 size=3> 
<FONT face="Times New Roman" 
color=#000000 size=3>Good 
trading,
<FONT face="Times New Roman" 
color=#000000 size=3>Mike
<FONT face="Times New Roman" 
color=#000000 size=3> 
<FONT face="Times New Roman" 
color=#000000 size=3> 
<FONT 
color=#000000> 
<FONT 
color=#000000>EntryPrice:= Input("Entry Price? 
(leave 0.00 for prior HIGH)",0.00,100000,0.00);<?xml:namespace prefix = o ns = 
"urn:schemas-microsoft-com:office:office" />
<FONT 
color=#000000>EDATRFactor:= Input("Entry Day ATR 
Factor?",0.1,10,0.75);
<FONT 
color=#000000>TSATRFactor:= Input("Trailing Stop 
ATR Factor?",0.1,20,2.5);
<FONT 
color=#000000>BuyDay:= Input("Day of the Month you 
bought the share?",1,31,2);
<FONT 
color=#000000>BuyMonth:= Input("Month you bought 
the share?",1,12,1);
<FONT 
color=#000000>BuyYear:= Input("Year you bought the 
share?",1999,2020,2004);
<FONT 
color=#000000>EntryDay:= DayOfMonth()=BuyDay AND 
Month()=BuyMonth AND Year()=BuyYear;
<FONT 
color=#000000>EPR:= If(EntryPrice = 0, Ref(H, -1), 
EntryPrice);
<FONT 
color=#000000>SUDS:= ValueWhen(1, EntryDay, EPR - 
EDATRFactor *ATR(10));
<FONT 
color=#000000>TS:= Ref(H,-1) - TSATRFactor 
*ATR(10);
<FONT face="Times New Roman" 
color=#000000 size=3>If(EntryDay, SUDS, HighestSince(1,EntryDay,Max(SUDS, 
TS)));
 
 

-----Original Message-----From: 
nivelles2002be [mailto:bs113282@xxxxxxxxx] Sent: Monday, 16 August 
2004 6:45 PMTo: equismetastock@xxxxxxxxxxxxxxxSubject: 
[EquisMetaStock Group] Stop loss line in a graph
<BLOCKQUOTE 
>Hi,   
  How it is possible to have in a graph Metastock 7.21 , a STOP LOSS LINE 
  for a stock:  I buy this stock 1/2/2001 foe exemple,   My 
  stop loss to sell is :6% . My problem is to indicate the "" buy date " 
  in a formula with the stop loss . Thanks for an answer 
.







Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/equismetastock/ 
To unsubscribe from this group, send an email to:equismetastock-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.