Try again with build 519
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I'm trying to backtest an EA using the Strategy Tester based on the "Fast genetic based algorithm" and I'm running into some problems.
I have debugged my EA and found when the problem occurs. Once the tester tries invalid parameters as input, the OnInit() does not return 0, it tries again with the same input parameters instead of skipping the "bad parameters" and going to the next pass.
Therefore, the strategy tester is running into an infinite loop and never finishes.Here is the log :
GG 0 Core 1 09:39:56 connected
EE 0 Core 1 09:39:56 authorized (agent build 514)
LO 0 Core 1 09:39:56 genetic pass (1, 3040243, 1) started
HG 0 Core 1 09:39:56 common synchronization completed
CM 2 Core 1 09:39:57 genetic pass (1, 3040243) tested with error "expert stopped"
KE 0 Tester 09:39:57 genetic pass (1, 3040243) returned to queue
MM 0 Core 1 09:39:57 connection closed
LI 0 Core 1 09:39:57 connecting to 127.0.0.1:3000
RL 0 Core 1 09:39:57 connected
LN 0 Core 1 09:39:57 authorized (agent build 514)
QH 0 Core 1 09:39:57 genetic pass (1, 3040243, 1) started
QQ 0 Core 1 09:39:57 common synchronization completed
QG 2 Core 1 09:39:57 genetic pass (1, 3040243) tested with error "expert stopped"
EL 0 Tester 09:39:57 genetic pass (1, 3040243) returned to queue
CD 0 Core 1 09:39:57 connection closed
On this run, pass 0 was OK, but starting pass 1. I got the problem.
I don't quite get why it is behaving this way because it used to worked okay; meaning that the tester would skip pass returning non-zero from the OnInit().
Has anyone run into this problem before ? Does anyone have a solution to this problem ? Can this be a bug ?
I'm running Metatrader 5 Version 5.00 build 514.
Thanks