
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
The 500 number was an arbitrary number i've seen when running optimisations, but this forum references that too many invalid parameters cause failures New Version of MetaTrader 5 Platform build 1860: Functions for Working with Bars in MQL5 and Improvements in the Strategy Tester - General Discussion - MQL5 Algo Traders Forum - Page 14. WRT the ParameterSetRange, i have tried that and you will see that i have referenced it in the start of my thread. It doesn't quite work because the passes are generated onTestInit, unless my understanding is incorrect and that it generates it on every pass. but i could not get the behaviour i wanted. maybe i'll revisit it.
That is only about the "faster genetic optimisations", not the "slower complete optimisations".
spoke too soon. it doesn't work as intended.
But I'm still getting:
instead of 0 where the signal is false. Furthermore when i start the genetic optimisation, in the journal I can only see the following being printed once.
What I'm expecting is that the input param is calculated and set per pass. It would've been really helpful to have a method that's callable by the optimiser before a test, similar OnTester. Some like OnBeforeTester where you are able to set the input parameters.
I always approached similar scenarios using INIT_PARAMETERS_INCORRECT inside the OnInit and nothing else.
In this case, when you have disabled indicator A, it will run only the first pass of your optimization, same for indicator B. But it's very similar of what Alain already suggested.
It's not similar.
You will get a lot of wrong passes and it will break the Genetic Algorithm.
Forum on trading, automated trading systems and testing of trading strategies
New MetaTrader 5 platform version build 1860: Functions for working with bars in MQL5 and improvements in the strategy tester
Renat Fatkhullin , 2018.06.25 11:47
Are you going to tailor the optimizer's behavior to suit yourself and your particular case? Not to mention that you are killingthe genetic algorithm with your INIT_PARAMETERS_INCORRECT.
I don't see any point in discussing this issue.
With slow algo, it will be similar, but still not the same (your approach will take more time, though maybe not that much, I didn't check).
Using INIT_PARAMETERS_INCORRECT should be avoided as much as possible when using the GA.
Forum on trading, automated trading systems and testing of trading strategies
Today the MT5 terminal was updated and the "Optimization" window is not shown during testing
Renat Fatkhullin , 2018.07.02 23:18
I recommend for genetics:
spoke too soon. it doesn't work as intended.
But I'm still getting:
instead of 0 where the signal is false. Furthermore when i start the genetic optimisation, in the journal I can only see the following being printed once.
What I'm expecting is that the input param is calculated and set per pass. It would've been really helpful to have a method that's callable by the optimiser before a test, similar OnTester. Some like OnBeforeTester where you are able to set the input parameters.
Get rid of your bool !!!
You can't solve your problem with ParameterSetRange(), it's not a range issue.