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

[amibroker] Re: Intraday Bar Counter



PureBytes Links

Trading Reference Links

Hi,

Have tried it but failed.  Can anyone help me to complete the code 
as my very first indicator coded with AFL?

Regards,

Sa

--- In amibroker@xxxxxxxxxxxxxxx, "hoolee0820" <hoolee0820@xxx> 
wrote:
>
> how about put it in the title, like this
> 
> numBars = BarsSince(DateNum()!=Ref(DateNum(),-1))+1;
> Title = Title+"  bar #"+numBars;
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "spaceant888" <spaceant888@> 
> wrote:
> >
> > 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 amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@> 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 <spaceant888@> wrote:
> > > > Can anyone help me to develop a code to count the number of 
> bars 
> > for
> > > >  every new trading days?
> > > >
> > > >  Thanks,
> > > >
> > > >  Sa
> > >
> >
>



------------------------------------

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/