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.
thanks guys, will have a look at this. And yes I did search the forum which was how I found the mql5 solution. Let's see or I can resolve it now with the parameter condition
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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!