Robert_Clive: I'm trying to use data from the MACD, and according to the documentation index [0] should contain the most recent data point.
...
No the documentation doesn't say that. Read it again and better.
No matter what is the property of the target array - as_series=true or as_series=false. Data will be copied so that the oldest element will be located at the start of the physical memory allocated for the array.
So index [0] will contain the most recent or the oldest data, depending of the indexing.
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.
I'm trying to use data from the MACD, and according to the documentation index [0] should contain the most recent data point.
...
No the documentation doesn't say that. Read it again and better.
No matter what is the property of the target array - as_series=true or as_series=false. Data will be copied so that the oldest element will be located at the start of the physical memory allocated for the array.
So index [0] will contain the most recent or the oldest data, depending of the indexing.