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

RE: [Metastockusers] inhibit signals



PureBytes Links

Trading Reference Links




Hi 
David
<FONT face=Arial 
size=2> 
I was recently 
trying to do the same thing. <FONT 
face=Arial size=2>Roy Larsen kindly helped me out and as a result I came up with 
this ...
<FONT face=Arial 
size=2> 
{BUY 
SIGNAL}
Set:=  Fml( 
"#BUY1") AND Fml( "#BUY2") AND Fml( "#BUY3") AND Fml( "#BUY4") AND Fml( "#BUY5") 
AND Fml( "#BUY6");Reset:= Fml( "#SELL10");
 
<FONT face=Arial 
size=2>    Init:= 
Cum(set+Reset>-1)=1;    Trade:= BarsSince(Init OR 
Set)<BarsSince(Init OR Reset);
<FONT face=Arial 
size=2>    Trade AND 
Alert(Trade=0,2)
<FONT face=Arial 
size=2> 
{SELL 
SIGNAL}
Set:=  Fml( 
"#BUY1") AND Fml( "#BUY2") AND Fml( "#BUY3") AND Fml( "#BUY4") AND Fml( "#BUY5") 
AND Fml( "#BUY6");Reset:= Fml( "#SELL10");
 
<FONT face=Arial 
size=2>    Init:= 
Cum(set+Reset>-1)=1;    Trade:= BarsSince(Init OR 
Set)>BarsSince(Init OR Reset);
<FONT face=Arial 
size=2>    Trade AND 
Alert(Trade=0,2)
<FONT face=Arial 
size=2> 
<FONT face=Arial 
size=2>{end}
<FONT face=Arial 
size=2> 
The buy/sell (Set 
and Reset) signals can be anything you want. I created custom formulas for my 
own convenience. The important bit is the 3 indented lines in bold. 
Basically you have to turn an action on and off. Roy refers to this as using 
"latches". I think you will find more about "latches" in earlier posts and/or in 
the files section.
<FONT face=Arial 
size=2> 
This works for me so 
I hope it will work for you. <FONT 
face=Arial size=2>All credit is due to Roy Larsen.
<FONT face=Arial 
size=2> 
<FONT face=Arial 
size=2>Casimir
<FONT face=Arial 
size=2> 
<FONT face=Arial 
size=2> 






Yahoo! Groups Sponsor


  ADVERTISEMENT 









To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx





Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.