- Errors, bugs, questions
- stuck on array out of range error. Please critic my indicator loop.
- Array out of range
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
You changed the source code after compiling the .ex4 file in which those errors occur.
Compile again, restart the terminal, wait for the error and look at the line of source code indicated in the error.
You changed the source code after compiling the .ex4 file in which those errors occur.
Compile again, restart the terminal, wait for the error and look at the line of source code indicated in the error.
Your topic has been moved to the section: MQL4 and MetaTrader 4
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
hi tnx..we change nothing.. if we use it in diffrent chart it give eror in random lines again.. we compile a lot.. but we couldnt find any reason up to know.. eror occur on somthing that doesnt exist in that line.. any other way to solve u think?
The line number (in the error message) refers to the code that was there when the .ex4 file was compiled. Obviously, the source code you are looking at does not match the source code from which the .ex4 file was compiled.
Make a copy of the .mq4 file, name it test.mq4, compile it to get test.ex4, wait until test.ex4 generates an error and look at the corresponding line in test.mq4.
The line number (in the error message) refers to the code that was there when the .ex4 file was compiled. Obviously, the source code you are looking at does not match the source code from which the .ex4 file was compiled.
Make a copy of the .mq4 file, name it test.mq4, compile it to get test.ex4, wait until test.ex4 generates an error and look at the corresponding line in test.mq4.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use