Download MetaTrader 5

OnInit() and forward testing

To add comments, please log in or register
oneilljo
106
oneilljo 2013.11.13 02:13 
When optimizing the input parameters of an expert advisor and using the forward testing option, is the OnInit() function called again when forward testing begins? (ie. when the best 25% of runs have been found and these are to be tested again on the forward testing period) 
Dua Yong Rew
5436
Dua Yong Rew 2013.11.13 05:48  
I believed it is run once every time in a pass
Alain Verleyen
Moderator
31134
Alain Verleyen 2013.11.13 08:07  
oneilljo:
When optimizing the input parameters of an expert advisor and using the forward testing option, is the OnInit() function called again when forward testing begins? (ie. when the best 25% of runs have been found and these are to be tested again on the forward testing period) 
Check it and let us know.
oneilljo
106
oneilljo 2013.12.19 10:04  
After experimenting, I can conclude that Oninit() is called again when forward testing begins.
Dua Yong Rew
5436
Dua Yong Rew 2013.12.19 10:24  
oneilljo:
After experimenting, I can conclude that Oninit() is called again when forward testing begins.
I believe so because forward testing is like a brand new test. So OnInit will be called again.
Alain Verleyen
Moderator
31134
Alain Verleyen 2013.12.19 11:34  
oneilljo:
After experimenting, I can conclude that Oninit() is called again when forward testing begins.
Thank you.
To add comments, please log in or register