Download MetaTrader 5

b625 running backtest and tester will freeze without explanation.

To add comments, please log in or register
Jon Grah
367
Jon Grah  

I'm running a backtest on one of my EAs on mt4 build 625 and suddenly the backtester will stop, like it is paused but I didn't pause it (also I'm not running visual mode). It seems to always do this whenever 7 trades are opened simultaneously.

Then I ran it in visual mode at the dates where the freezing took place and noticed the same thing. Whenever there was more than 7 trades. It seemed to happen in the GBPJPY pair. but other pairs I tested it appears to be fine.

Sometimes I cannot get the terminal to 'stop' the tester when I click the stop button. It seems that if the version of the EA used was compiled in metaeditor mt4 509, then the freezing results in a forced kill to kill the entire terminal. If the similar EA compiled in mt4 build 625, then the stop button takes about 5-10 seconds to stop the testerbut I do not have to kill the terminal.

No errors in the terminal journal while the backtest is functioning. AFTER the stop button is pushed and if the stop is successful, the terminal will read:

17:13:44 2013.04.04 08:18  Tester: stop button pressed
17:13:54 2013.04.04 08:18  Tester: cancel execution
17:13:54 2013.04.04 08:18  Testing pass stopped due to a critical error in the EA
17:13:54 2013.04.04 08:18  Tester: order #7 is closed
17:13:54 2013.04.04 08:18  Tester: order #6 is closed
17:13:54 2013.04.04 08:18  Tester: order #5 is closed
17:13:54 2013.04.04 08:18  Tester: order #4 is closed
17:13:54 2013.04.04 08:18  Tester: order #3 is closed
17:13:54 2013.04.04 08:18  Tester: order #2 is closed
17:13:54 2013.04.04 08:18  Tester: order #1 is closed
17:13:54 GBPJPY.,M5: 26315 tick events (526218 bars, 76613216 bar states) processed within 47784 ms (total time 49515 ms)


I will do a reboot of the computer and see if that changes anything, but it seems like a bug.

Alain Verleyen
Moderator
31475
Alain Verleyen  
4evermaat:

I'm running a backtest on one of my EAs on mt4 build 625 and suddenly the backtester will stop, like it is paused but I didn't pause it (also I'm not running visual mode). It seems to always do this whenever 7 trades are opened simultaneously.

Then I ran it in visual mode at the dates where the freezing took place and noticed the same thing. Whenever there was more than 7 trades. It seemed to happen in the GBPJPY pair. but other pairs I tested it appears to be fine.

Sometimes I cannot get the terminal to 'stop' the tester when I click the stop button. It seems that if the version of the EA used was compiled in metaeditor mt4 509, then the freezing results in a forced kill to kill the entire terminal. If the similar EA compiled in mt4 build 625, then the stop button takes about 5-10 seconds to stop the testerbut I do not have to kill the terminal.

No errors in the terminal journal while the backtest is functioning. AFTER the stop button is pushed and if the stop is successful, the terminal will read:


I will do a reboot of the computer and see if that changes anything, but it seems like a bug.


Seems like an endless loop. Check your code.
Jon Grah
367
Jon Grah  
it was fixed my making some changes to some of the inputs. I suspect a 'hidden' zero divide error. There is still an issue with b625 not accepting long input strings (>510 characters) for backtesting. But that is a separate bug.
To add comments, please log in or register