array out of range in random lines

 
"Hello, I have an Expert Advisor for MetaTrader that works well, but the problem is that when running it live or in backtesting, I get an 'Array Out of Range' error at specific points and lines in the code. However, the location where the error occurs lacks any data. These errors occur randomly, and if I retest at that point, the error might not occur again, meaning it is not repeatable at a specific point. Do you have any idea where the problem might be?" for example in attached photo there is no data on line 24755 but it give eror in alphabet 75 that is not exist :)
Files:
 
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
 

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.

 
Vladislav Boyko #:

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.

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?
 
Fernando Carreiro #:
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
tnx
 
shadman mehrvarz #:
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.

 
Vladislav Boyko #:

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.

tnx a lot.. i will test and send feed back tnx :)