I have a problem in optimization passes. I've searched a lot but non of questions nor the answers in the forum was theone solving this problem.
The problem is that i have some bool parameters in my inputs which when they are set as false there isno need to optimize some other parameters.
for example if the "Psar_Active" parameter is set to false my EA won't use Parabolic SAR indicator in it's decision making process,so optimizing the "step" and "max" (two other input parameters) of the indicator is useless (only when the Activation parameter is false).
unfortunately i couldn't find a way for this. so many of the optimization results are uselessand this make the whole optimization much less effective.
Lets assume that "Step" Parameter has 5 steps and "Max" Parameter has 4 steps the total steps considering the"Psar_Active" parameter (which has two steps) is currently resulting to 40 passes (5*4*2), which 19 of them are useless(the ones with "Psar_Active" ==false). if this problem could be solved the total passes should be reduced to 21 (5*4*1+1).
I would be great-full if we can figure this out. thank in advance for your help.
I see. There will be redundant passes. I think this is something which can be addressed to service support.
This looks more like a feature request, rather than something which can be solved on the forum.
Maybe a moderator can answer to this.
Thanks for your reply. I really didn't catch what you said.
how can i get in touch?
I've already posted an order, on the freelance section but so far was not successful. https://www.mql5.com/en/job/91806
Just wait for a moderator to reply to your thread or you can send the problem to service desk yourself.
I think this is a feature request to enhance the MT5 optimization tool to have "Conditional Parameter Optimization", rather than simply doing code changes.
I doubt code changes will produce the effect that you want, and I also doubt in the short to medium term, you will have the solution ready to your issue.
There will always be a forum moderator around. He is more experienced in issues than any of the forum members.
input bool Psar_Active=...
input double step=STEP_DEFAULT;
input double max=MAX_DEFAULT;
if(!Psar_Active && (
step != STEP_DEFAULT ||
max != MAX_DEFAULT )) return INIT_PARAMETERS_INCORRECT;