Download MetaTrader 5

MT4: Tester hangs on the SECOND test run of EA; some residual memory problem??

To add comments, please log in or register
basilides
5
basilides  

I have a weird problem...

Testing a EA, runs fine produces a backtest.  But the second time I run a backtest with the EA (or any EA for that matter), MT4 immediately hangs and I have to kill it.  It doesn't matter if I try to run with different parameters, a different EA, or if just hit "Start" again; same result.

I have scanned my code for obvious infinite loops - nothing. I saw in another topic that it might be related to the use of time functions so I removed those - no change.  And it always hangs on the second test run, not on the first. 

My best guess is that something gets "left over" from running the EA test, but I cannot figure out what it might be.  I take care to close all open files (one) and to remove any open and pending orders on deinit.

Any suggestions are welcome!

whroeder1
15913
whroeder1  
Add print statements entering and exiting each of your functions and track it down.
To add comments, please log in or register