I'm a newbie and trying to use automated optimization explained in 'Automated Optimization of a Trading Robot in Real Trading' article. It seems to work when I use the EA in demo mode but I doesn't work as I expect in the testing mode. I noticed that the Tester is supposed to be called when the EA is not in the testing mode so I commented out the check for testing mode in the following line of code.
if(!IsTesting() && !IsOptimization())
changed to:
if(/*!IsTesting() && */!IsOptimization())
What I see is that the tester doesn't wait for the optimization process to finish. I wonder if there is a bug in my code or it is just a conceptual conflict where the tester cannot work with the optimizer because their process time range are different. I tried changing the timeout but it didn't help. I'd appreciate if you could shed a light on how to strategy test an EA with automated optimization feature.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi,
I'm a newbie and trying to use automated optimization explained in 'Automated Optimization of a Trading Robot in Real Trading' article. It seems to work when I use the EA in demo mode but I doesn't work as I expect in the testing mode. I noticed that the Tester is supposed to be called when the EA is not in the testing mode so I commented out the check for testing mode in the following line of code.
if(!IsTesting() && !IsOptimization())
changed to:
if(/*!IsTesting() && */!IsOptimization())
What I see is that the tester doesn't wait for the optimization process to finish. I wonder if there is a bug in my code or it is just a conceptual conflict where the tester cannot work with the optimizer because their process time range are different. I tried changing the timeout but it didn't help. I'd appreciate if you could shed a light on how to strategy test an EA with automated optimization feature.