I have some (easy) ambiguity with function iMAOnArray
My basic code is below. When I run MT platform, function Alert() write value function iMAOnArray, but this value is error. Return value very big number= 2147483647. When I do then compile again indicator code - Alert() write value iMAOnArray ok. Why? I don´t know!
You need two loops, one to set the buffer then another to set the iMA on the array. The point is that if any values in the iMA on array are null it will screw up the average. So the main buffer has to be complete (full) before you call iMA on Array.
Hi everyone,
I have some (easy) ambiguity with function iMAOnArray
My basic code is below. When I run MT platform, function Alert() write value function iMAOnArray, but this value is error. Return value very big number= 2147483647. When I do then compile again indicator code - Alert() write value iMAOnArray ok. Why? I don´t know!