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

RE: [amibroker] How do you get the bars since the nth occurance of a condition



PureBytes Links

Trading Reference Links

Not sure, but I'd start with this:
Barspassed = BarIndex() - ValueWhen(Condition,ARRAY,Nth = 1);
--
Terry

-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
Behalf Of idaytrader
Sent: Wednesday, May 10, 2006 09:07
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] How do you get the bars since the nth occurance of
a condition

Hi all,

I am drawing a blank.  How can I get the number of bars that have
passed since the nth occurance of a condition?  Thanks for your help.

Jerry L.



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

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