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.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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