How can I fix rates_total/Bars()/iBars() being out of sync with charts? - page 2

 
Millard Melnyk #:

No, I'm not wrong. IF and ONLY IF you access a time or price array AS SERIES, I would be wrong. But I've quite clearly in both words and code explained a problem that occurs when arrays are accessed via regular (not reversed) indexing. I demonstrated the problem in the OP.

So, I'm not wrong that in an array or index buffer where ArrayIsSeries() = false, the newest data is found at the highest indices. 

You're wrong because the indexing ("as series" or not "as series") is just a flag which does not change the physical order of the data in memory (in array)! This is just a syntactic sugar which simplifies coding. The "shadow" leftmost bars are always most outdated and useless ones, regardless of indexing direction!