EA for MQL5 ..... sometime terminated

 

Hi


I have ExpertAdvisor (mql5) wich sometime crash and terminate! How to find bug?

Thanks to all!

 
Use the debugger or print out your variables, including _LastError and prices and . Do you really expect us to debug your code for you?
 
William Roeder:
Use the debugger or print out your variables, including _LastError and prices and . Do you really expect us to debug your code for you?

I'm debuging but withou problems .... Bug is generated ones a day or maybe 2 times per day!

How to debug huge of surce code! Not possible!

I ask because maybe exists some code how to catch event of termination!?

Maybe some LOG file must be generated....how to solve you such a problem?!

 

I found in TAB: Experts

... it was "....array range error ..."

And I see:  linenumber of source and number of charachters from beginning of line!

So Y and X position of soucre code! Very nice!