[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




Copy and Paste the 
formula written between the 
>>>>>>>>>>>>>> line and the 
<<<<<<<<<<<<<<<< line into a new 
indicator in the indicator builder.
<SPAN 
class=340170306-17082004> 
<SPAN 
class=340170306-17082004>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<SPAN 
class=340170306-17082004> 

<FONT 
size=3>PCT:= Input("STOP Margin in 
%?",0.1,50,6);<?xml:namespace prefix = o ns = 
"urn:schemas-microsoft-com:office:office" />
<FONT 
size=3>PRCE:= Input("Calculate STOP from? (0=LOW, 
1=CLOSE, 2=HIGH)",0,2,0);
<FONT 
size=3>BuyDay:= Input("Day of the Month you bought 
the share?",1,31,2);
<FONT 
size=3>BuyMonth:= Input("Month you bought the 
share?",1,12,1);
<FONT 
size=3>BuyYear:= Input("Year you bought the 
share?",1999,2020,2004);
<FONT 
size=3>EntryDay:= DayOfMonth()=BuyDay AND 
Month()=BuyMonth AND Year()=BuyYear;
<FONT 
size=3>PRCE:= If(PRCE = 0, Ref(L, -1), If(PRCE = 1, 
Ref(C, -1), If(PRCE = 2, Ref(H, -1),0)));
<FONT 
size=3>TS:= PRCE*(100 - 
PCT)/100;
<FONT 
size=3>HighestSince(1,EntryDay, 
TS);
<FONT 
size=3> 
<FONT 
face="Times New Roman" size=3><SPAN 
class=340170306-17082004><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<FONT 
face="Times New Roman" size=3><SPAN 
class=340170306-17082004> 
<SPAN 
><SPAN 
class=340170306-17082004>This indicator will display the calculated value 
of the trailing stop for any bar, based on data available up to yesterday; you 
may wish to call this indicator "TSBacktest" or similar; I would use it for 
checking the exit conditions of past 
trades.
<SPAN 
><SPAN 
class=340170306-17082004> 
<SPAN 
><SPAN 
class=340170306-17082004>If you are looking for an indicator that will display 
the calculated value of the trailing stop that you will set in the market 
tomorrow, based on data available up to today, you could Copy and Paste the 
following into a new indicator in the indicator 
builder:
<SPAN 
><SPAN 
class=340170306-17082004> <SPAN 
><SPAN 
class=340170306-17082004>
<SPAN 
class=340170306-17082004>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<SPAN 
class=340170306-17082004> 
<SPAN 
>
PCT:= 
Input("STOP Margin in %?",0.1,50,6);
PRCE:= 
Input("Calculate STOP from? (0=LOW, 1=CLOSE, 
2=HIGH)",0,2,0);
<SPAN 
>BuyDay:= Input("Day of the Month you bought the 
share?",1,31,2);
<SPAN 
>BuyMonth:= Input("Month you bought the 
share?",1,12,1);
<SPAN 
>BuyYear:= Input("Year you bought the 
share?",1999,2020,2004);
<SPAN 
>EntryDay:= DayOfMonth()=BuyDay AND Month()=BuyMonth AND 
Year()=BuyYear;
PRCE:= 
If(PRCE = 0, L, If(PRCE = 1, C, If(PRCE = 2, H,0)));
TS:= 
PRCE*(100 - PCT)/100;
<SPAN 
>HighestSince(1,EntryDay, TS);
<SPAN 
><FONT face="Times New Roman" 
color=#000000>
<FONT 
face="Times New Roman" size=3><SPAN 
class=340170306-17082004> 
<FONT 
face="Times New Roman" size=3><SPAN 
class=340170306-17082004><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<FONT 
face="Times New Roman"><SPAN 
class=340170306-17082004> 
<SPAN 
>You may wish to 
call this indicator "TSCalculate" or similar; I would use it for displaying 
tomorrow's calculated stop loss for an open 
trade.
<SPAN 
><SPAN 
class=340170306-17082004> 
<SPAN 
><SPAN 
class=340170306-17082004>Regards,
<SPAN 
><SPAN 
class=340170306-17082004>Mike
<FONT 
size=3><SPAN 
class=340170306-17082004> 


<BLOCKQUOTE 
>
  
  <FONT 
  face=Tahoma size=2>-----Original Message-----From: nivelles2002be 
  [mailto:bs113282@xxxxxxxxx] Sent: Tuesday, 17 August 2004 7:23 
  AMTo: equismetastock@xxxxxxxxxxxxxxxSubject: Re: 
  [EquisMetaStock Group] Stop loss line in a graph--- 
  In equismetastock@xxxxxxxxxxxxxxx, "Mike Sloane" <mfsloane@xxxx> 
  wrote: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.    
  Mike----------------------------------------------------------------Thanks 
  for your answer , and I ask you to indicate where to write this stop loss 
  . Thank you . 







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.