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!
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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!