Hi TJ, thanks for the useful explanation.

I'm then left with the doubt on how to get an indicator counting the total 
number of data points from the very beginning. I suppose the uncommented 
version of the below code is the correct way of doing it.

paolo

--- In [email protected], Tomasz Janeczko <gro...@...> wrote:
>
> Hello,
> 
> Yes they do start from zero, but this "zero" refers to AFL ARRAY index.
> AFL ARRAY by default represents VISIBLE part (i.e. SUBset) of all 
> available data.
> If you use setbarsrequired you CHANGE how many quotations are in the AFL 
> array.
> Specifically when you use sbrAll you say, "give me ALL quotations instead of
> just visible"
> Read this:
> http://www.amibroker.com/kb/2008/07/03/quickafl/
> 
> (look at the picture!)
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> 
> On 2010-05-10 15:49, Paolo wrote:
> > My point is that the manual is saying that BarIndex() for AB v5.30 should 
> > now returns values ALWAYS starting from zero (even if QuickAFL is turned 
> > on). I should therefore be getting the same chart uncommenting the first 
> > line but it's clearly not the case...am I getting it wrong?
> >
> > Paolo
> >
> >
> > --- In [email protected], Tomasz Janeczko<groups@>  wrote:
> >    
> >> Hello,
> >>
> >> If you read the manual, you would now that SetBarsRequired changes the
> >> number of bars used by the formula.
> >> If you call it with sbrAll, it uses all bars. Is it self-explaining I
> >> guess. If say "I want all bars" - you get all.
> >> If you don't say this - you get visible bars only. What is so hard to
> >> understand?
> >>
> >> Best regards,
> >> Tomasz Janeczko
> >> amibroker.com
> >>
> >> On 2010-05-07 16:13, Paolo wrote:
> >>      
> >>> BarIndex() for AB v5.30 should now returns values always starting from 
> >>> zero (even if QuickAFL is turned on) as per the help manual of the new 
> >>> version.
> >>>
> >>> But when I try to plot the below code I get different results when 
> >>> uncommenting the first line.
> >>>
> >>> I'd like to get an indicator of total number of data points from the 
> >>> first one available up to the selected one.
> >>>
> >>> Paolo
> >>>
> >>> //SetBarsRequired( sbrAll, sbrAll );
> >>> Plot(BarIndex(), "BI", colorRed, styleLine);
> >>>
> >>>
> >>>
> >>> ------------------------------------
> >>>
> >>> **** IMPORTANT PLEASE READ ****
> >>> This group is for the discussion between users only.
> >>> This is *NOT* technical support channel.
> >>>
> >>> TO GET TECHNICAL SUPPORT send an e-mail directly to
> >>> SUPPORT {at} amibroker.com
> >>>
> >>> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> >>> http://www.amibroker.com/feedback/
> >>> (submissions sent via other channels won't be considered)
> >>>
> >>> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> >>> http://www.amibroker.com/devlog/
> >>>
> >>> Yahoo! Groups Links
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>        
> >>      
> >
> >
> >
> > ------------------------------------
> >
> > **** IMPORTANT PLEASE READ ****
> > This group is for the discussion between users only.
> > This is *NOT* technical support channel.
> >
> > TO GET TECHNICAL SUPPORT send an e-mail directly to
> > SUPPORT {at} amibroker.com
> >
> > TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> > http://www.amibroker.com/feedback/
> > (submissions sent via other channels won't be considered)
> >
> > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> > http://www.amibroker.com/devlog/
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
>


Reply via email to