Download MetaTrader 5

OnInit() and forward testing

To add comments, please log in or register
oneilljo
106
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) 
Dua Yong Rew
5524
Dua Yong Rew  
I believed it is run once every time in a pass
Alain Verleyen
Moderator
33495
Alain Verleyen  
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  
After experimenting, I can conclude that Oninit() is called again when forward testing begins.
Dua Yong Rew
5524
Dua Yong Rew  
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
33495
Alain Verleyen  
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