Hi, Well, I am really a new starter with AmiBrokera and am sorry to be naive.
How can I modified from the syntax to plot a line to show the intraday bar counter for every trading days loaded? For example, as of 27 Mar today, the code will show the intraday bars # for today as the realtime data updates starting from 1 as the very first bar as the market opens; similarly the indicator also show the intraday bar # for yesterday with 1 as the first bar of yerterday's opening bar. Thanks! Sa --- In [email protected], Graham <[EMAIL PROTECTED]> wrote: > > try this > numBars = barssince(datenum()!=ref(datenum(),-1))+1; > > > -- > Cheers > Graham Kav > AFL Writing Service > http://www.aflwriting.com > > > On 26/03/2008, spaceant888 <[EMAIL PROTECTED]> wrote: > > Can anyone help me to develop a code to count the number of bars for > > every new trading days? > > > > Thanks, > > > > Sa >
