Alireza Yadegar:
hi guys, im trying to catch zigzag values for each symbol, but i get the "Array out of range" error on the loop that is using for catching zigzag values.
here is the function for catching zigzag:
and here is the loop that i use for changing symbols (witch is not the problem because i Resize the symbol array before):
can you help me to know whats the problem?
for(i=shift1 ; i<shift1+500 ; i++)
Mehrdad Jeddi:
your right mehrdad, i checked the entire code again and noticed the "i" value that handles my pairs loop, is changing in the end of code by another function, and its new value is greater than my pair array size. so i rename it to "j" and the problem solved. So in the loop of Zig function there is not any array that to be cause of the error,
Which line is the error marking?the code is incomplete,it can't be easy to figure it out.
thanks guy.
Alireza Yadegar:
your right mehrdad, i checked the entire code again and noticed the "i" value that handles my pairs loop, is changing in the end of code by another function, and its new value is greater than my pair array size. so i rename it to "j" and the problem solved.
your right mehrdad, i checked the entire code again and noticed the "i" value that handles my pairs loop, is changing in the end of code by another function, and its new value is greater than my pair array size. so i rename it to "j" and the problem solved.
thanks guy.
OK,Good,
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 guys, im trying to catch zigzag values for each symbol, but i get the "Array out of range" error on the loop that is using for catching zigzag values.
here is the function for catching zigzag:
and here is the loop that i use for changing symbols (witch is not the problem because i Resize the symbol array before):
can you help me to know whats the problem?