Conditional Parameter Optimization solution needed!

To add comments, please log in or register
Mohammad Hossein Najarzadeh
67
Mohammad Hossein Najarzadeh  

Hello Everyone

I have a problem in optimization passes. I've searched a lot but non of questions nor the answers in the forum was the
one solving this problem.


The problem is that i have some bool parameters in my inputs which when they are set as false there is
no 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 useless
and 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.

Zee Zhou Ma
1909
Zee Zhou Ma  

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.

Mohammad Hossein Najarzadeh
67
Mohammad Hossein Najarzadeh  
Zee Zhou Ma:

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.

Hi

Thanks for your reply. I really didn't catch what you said.

a moderator?

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

Freelance service at MQL5.com: Conditional Parameter Optimization solution needed
Freelance service at MQL5.com: Conditional Parameter Optimization solution needed
  • www.mql5.com
I have a problem in optimization passes. I've searched a lot but non of questions nor the answers in the forum was the one solving this problem. The problem is that i have some parameters in my inputs which when they are set as  there is no need to optimize some other parameters. for example if the "" parameter is set to my EA won't use...
Zee Zhou Ma
1909
Zee Zhou Ma  

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.

whroeder1
17956
whroeder1  
Mohammad Hossein Najarzadeh: if the "Psar_Active" parameter is set to false ... the "step" and "max"  (two other input parameters) of the indicator is useless
input bool Psar_Active=...

#define STEP_DEFAULT=0.02;
input double step=STEP_DEFAULT;

#define MAX_DEFAULT=0.20;
input double max=MAX_DEFAULT;

:
if(!Psar_Active && (
   step != STEP_DEFAULT ||
   max  !=  MAX_DEFAULT )) return INIT_PARAMETERS_INCORRECT;
To add comments, please log in or register