Hi stringo,
Well, of course I heard about that difference of indexation in the MQL4 manual.
But I don't see what the problem is : I'm filling the array from 0 to 5, hence
from left to right !
I've tried to call ArraySetAsSeries(t, false); just before the loop but it didn't work better.
Please, if you understood the problem, could you tell me how to solve it ?
Thanks,
Mark
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
Hi everyone,
I experience problems while using iMAOnArray, so I isolated the problem.
If I do that inside the init() method of an indicator, this works :
But if I use a global array :
then it won't work, and the iMAOnArray function always returns 0... I precise I already have an array declared to store the indicator data, "t" is the second.
Is there a problem with the declaration of t ?
Thanks in advance,
Mark