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

[EquisMetaStock Group] count from a specific bar not the beginning



PureBytes Links

Trading Reference Links

How do you count the number of times an event has 
occured since the opposite event has occurred.

BuySignal:=Fml("systembuy");
SellSignal:=Fml("systemsell");
trade:=If(BarsSince(BuySignal)<=BarsSince(SellSignal),1,0);
{ "trade" variable tells you the last signal was buy} 

How can I determine how many buy signals have occured since
the last sell signal?

I realize it should be Cum() function, but somehow
the cum function needs to be reset when the signals reverse.

Thanks
Chris 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
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:
    http://docs.yahoo.com/info/terms/