For looking back a certain number of bars do this:

//Where X = number of days to look back
x = 10;
myCandlePattern = some code that produces a non-zero value when true;
CandleExists = Sum(myCandlePattern,x);

--
Terry

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of orionsturtle
Sent: Thursday, August 24, 2006 11:53
To: [email protected]
Subject: [amibroker] Looking back

I am trying to see if a candle pattern happened with in the last x 
number of bars. I can't seem to find the right function. Can anyone 
point me in the right direction?

Thanks!!!
OT





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



 




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:
    [EMAIL PROTECTED]

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



Reply via email to