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

Re: [Metastockusers] Jump a signal



PureBytes Links

Trading Reference Links

Robin

> How can I say to system to follow not he present signal against the main
> trend, but the second one which will appear in the next bars?
>
> (yes, I know, so doing, the risks of an oversimplification of cause/effect
> rules increase...)


Use a signal counter to filter out the first signal. Sorry that the descriptions with this are not
particularly helpful.

  {Signal Counter}
D:=Input("Count: 0=Leading Edge, 1=Bars",0,1,1);
B:=Mov(C,10,S)>Mov(C,50,S);     {reset signal}
A:=B=0 AND C>Ref(HHV(C,10),-1); {count signal}
I:=Cum(A+B>-1)=1; {signals valid}
X:=Cum(A); {bar count}
  {count signal leading edge or bars true}
A:=If(D,A,A AND Alert(A=0,2));
F:=BarsSince(I OR A)<BarsSince(I OR B); {window}
Z:=X-ValueWhen(1,I OR F=0,X);
Z;

Roy



 

Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/Metastockusers/

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

Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/