Array out of range
I do not understand why it's works for Orientation[i] = BufferParcoursOrienation ( FastBuffer[i-1], FastBuffer[i]);
and don't work for Test[i] = BufferParcoursOrienation ( FastBuffer[i-1], FastBuffer[i]);???
You have missed one line
SetIndexBuffer( 4, Tester, INDICATOR_CALCULATIONS);See also SetIndexBuffer
William,
What makes the array Orientation[] to resize automatically is the instruction SetIndexBuffer( 1, Orientation, INDICATOR_COLOR_INDEX).
In the case of the array Test[], there is no such instruction, therefore, it is not resizing.
Regards,
Jin
Hello
Ok, I will try to add your comment in my code.
Thanks a lot.
Best Regards
hello
Why do I get this error message on Test?
This is my code
I do not understand why it's works for Orientation[i] = BufferParcoursOrienation ( FastBuffer[i-1], FastBuffer[i]);
and don't work for Test[i] = BufferParcoursOrienation ( FastBuffer[i-1], FastBuffer[i]);???
I tried to follow the values with print, they are well.
Please advise.
Best Regards