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
I would like to be able to exclude certain parameters from optimization if my 'main' parameters have a certain value. I found the ParameterGetRange() and ParameterSetRange() functions for MQL5.
Unfortunately I have to complete this EA in MQL4 where does functions do not exist. Does somebody have a clue on how to work around this?
To give a concrete example of what I mean:
I created a bool input to define whether stop loss will be moved or not.
Next I have a double input parameter that defines how much price must have moved in the right direction before the initial stop loss will be moved.
I want to be able to run an optimization where only if the Boolean function = true (meaning that the stop loss will be moved at some stage), the optimization will test the different input parameters for when to start moving the initial set stop loss.
Any thoughts???
Thanks!