Hello,
bi = BarIndex();
bi1 = ValueWhen( DateNum() = ..date1.. , bi );
bi2 = ValueWhen( DateNum() = ..date2.. , bi );
numbars = LastValue( bi2 - bi1 );
Best regards,
Tomasz Janeczko
amibroker.com
On 2010-04-23 12:09, inquisitive2007 wrote:
(1)does any body tell me how to count no. of bars between 2 dates in
commentary?
(2)I mean, if a function be made accepting 2 arguments as date and
which should calculate bars between them.
regards
PS:plz dont tell me the way by selecting a range in the chart using
selectedvalue,firstvalue,lastvalue etc.
i know that.what i want in commentary window.
<http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline....@middle?>