EXAmple:
double arraytest[5] = { 3, 2 ,5, 6,8 };
ArraySetAsSeries(arraytest,true); // reverse
Print (arraytest[0]);
// Expected result should be 8.
// but the result is 3.
------
Is this a bug? If not I need help.
Hi thien_v,
ArraySetAsSeries does not works on static array, Please read the doc https://www.mql5.com/en/docs/array/arraysetasseries
and print it
Print ("Set as series "ArraySetAsSeries(arraytest,true));
It will print false.

- www.mql5.com
Hi thien_v,
ArraySetAsSeries does not works on static array, Please read the doc https://www.mql5.com/en/docs/array/arraysetasseries
and print it
It will print false.
Hi,
thanks. But how can I reverse static array? Any idea?
Do array in mt5 have address?
Hi,
thanks. But how can I reverse static array? Any idea?
Do array in mt5 have address?
Hi thien_v,
I think either use dynamic Array or reverse the counting (i.e. instead counting from 0 to n, we counting from n to 0). Not really help eh ? :D
AFAIK, We have no way to find the address of Array in MT5 :(

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
EXAmple:
double arraytest[5] = { 3, 2 ,5, 6,8 };
ArraySetAsSeries(arraytest,true); // reverse
Print (arraytest[0]);
// Expected result should be 8.
// but the result is 3.
------
Is this a bug? If not I need help.