You want something like: numBars = BarIndex() - ValueWhen(EXPRESSION, BarIndex(), n = 1);
Where EXPRESSION could be BUY or even some marker you set on the screen. -- Terry -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of bruiserbbq Sent: Saturday, July 22, 2006 02:21 To: [email protected] Subject: [amibroker] trading Bar Counter Is there anyway to code a Bar Counter...ie: be able to count the number of trading bars between two points....and display it in a window or as part of a trendline. Cheers Mark 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/
