for (int i = Bars-1; i>=0; i--) { //Fill buffers } for (int i = Bars-1; i>=0; i--) { IMAOnArray() }Fill the buffers before calling IMAOnArray
Done, that was the problem.
Many thanks!

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,
I am trying to build an indicator and I need an MA on a Buffer I am calculating. For this reason I used the iMAOnArray function. Buffer's field of existence is [0;1] and it also usually never comes above .5.
When trying to get this MA set as:
but it returns to me 0 or BILLIONS in value! (at most a constant value sometimes).
I have declared the container variable, I have initialized it but result is always the same. How could I configure it?
In the indicator's for loop it should be:
Thank you very much!