Filed by brian_z at 2:47 am under AFL - The Basics
BarCount does not represent the number of bars in the DATABASE,
but in the ARRAYs in the current execution.
The arrays have DYNAMIC size depending on zoom factor. That’s why BarCount may
and will vary.
For example if you have 20 years of data and you are watching just
the last year
AmiBroker does not need and does not use all the bars in the database to calculate
the indicators for the last year.
It uses the last year only PLUS some previous bars required to “stabilise” indicator
The number of extra bars depends on the functions you use in the formula.
If you want to use truly all bars you need to use SetBarsRequired function:
AmiBrokerYahooGroup message #114917 – AmiBrokerYahooGroup – Re: [amibroker] Simple question about BarCount