parksonchew: I don't have this error previously but suddenly this "Array out of range" appear when I tried to execute the EA. Somehow, it's not giving any error during compiling in MetaEditor so far.
- It didn't suddenly appear, either you previously had it and didn't notice, or changed something that caused it.
- Array out of range has nothing to do with compile errors. It's a run time error.
- How can we possibly help when you don't show all the relevant code? Your a loops on the array Pairs, but you also use it to index into ADR which you don't show. You also index into Pairs using ThisSymbolIndex which you also don't show.
- Add print statements and track it down. At least size of Pairs, size of ADR, value of ThisSymbolIndex.

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
I don't have this error previously but suddenly this "Array out of range" appear when I tried to execute the EA. Somehow, it's not giving any error during compiling in MetaEditor so far.
Thanks.