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.
![Documentation on MQL5: Array Functions / ArraySetAsSeries Documentation on MQL5: Array Functions / ArraySetAsSeries](/i/community/logo_mql5_small.png)
- 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 :(
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- 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.