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)
- MetaTrader Market - the largest store of trading applications
- MetaTrader 5 Built-in Trading Strategy Tester
- MQL5 Wizard: Development of trading robots for MetaTrader 5
I believed it is run once every time in a pass
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.
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)
After experimenting, I can conclude that Oninit() is called again when forward testing begins.
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.
After experimenting, I can conclude that Oninit() is called again when forward testing begins.
oneilljo:
After experimenting, I can conclude that Oninit() is called again when forward testing begins.
Thank you.
After experimenting, I can conclude that Oninit() is called again when forward testing begins.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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