SetIndexBuffer changes indexing as timeseries in mql4
There is no default in MT5, you must set them — the documentation specifically says to not depend on a default.
In MT4 buffers default to as-series, but you can set them.
William Roeder:
Yes, but I'm talking exactly about this sentence: "After binding, the dynamic array buffer[] will be indexed as in common arrays", this is not correct in MQL4. When you use SetIndexBuffer(), the buffer indexing set on as-series not on common arrays
There is no default in MT5, you must set them — the documentation specifically says to not depend on a default.
In MT4 buffers default to as-series, but you can set them.
Hello,
In mql4 and mql5 documents for SetIndexBuffer() said "After binding, the dynamic array buffer[] will be indexed as in common arrays".
As I tested, this is right in mql5 but not in mql4! When we define double buffer[] it is a common arrays, after using SetIndexBuffer(0,buffer) the buffer indexed as timeseries in mql4. Is the document wrong?
https://docs.mql4.com/customind/setindexbuffer