SetIndexBuffer changes indexing as timeseries in mql4

 

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

Documentation on MQL5: Constants, Enumerations and Structures / Indicator Constants / Drawing Styles
Documentation on MQL5: Constants, Enumerations and Structures / Indicator Constants / Drawing Styles
  • www.mql5.com
Drawing Styles - Indicator Constants - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 

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:

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.

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
Reason: