Optimizing Question

 

Hi,

My question is about optimizing section in strategy tester.

For example we have one EA and want optimize tat for 12 months. After do this optimizing with MT4 it selects only setting with positive profit.

So we have 12 months results that maybe some months our profit are negative(8 months positive and 4 months negative but balance is positive).

Is there any solution that we can optimize EA and it select results if all 12 months make profit results and not loose month?

Must add any extra line code to our EA to make this option?

Regards,

 
fxturn:

Hi,

My question is about optimizing section in strategy tester.

For example we have one EA and want optimize tat for 12 months. After do this optimizing with MT4 it selects only setting with positive profit.

So we have 12 months results that maybe some months our profit are negative(8 months positive and 4 months negative but balance is positive).

Is there any solution that we can optimize EA and it select results if all 12 months make profit results and not loose month?

Must add any extra line code to our EA to make this option?

Regards,


It doesn't sound easy automatically, and that is nothing to do with the EA. If you optimize on month 1 and manually select the profitable values for that month, then you can repeat on month 2 and get a lesser set which now works for both months. Repeat for month 3 etc. In effect you are manually optimizing. The slow part is the optimization simulation and not the part with the spreadsheet working out which parameters are still profitable.
 
dabbler:
It doesn't sound easy automatically, and that is nothing to do with the EA. If you optimize on month 1 and manually select the profitable values for that month, then you can repeat on month 2 and get a lesser set which now works for both months. Repeat for month 3 etc. In effect you are manually optimizing. The slow part is the optimization simulation and not the part with the spreadsheet working out which parameters are still profitable.

Thanks.

Is it possible during optimizing we can save trades details as backtest report in one folder too?

Regards,

 
fxturn:

Thanks.

Is it possible during optimizing we can save trades details as backtest report in one folder too?

Regards,

EDIT: Probably not. During a non-optimized run you can go to the Results tab of the tester and right click "save as report". When optimizing I don't think these are available.


Have you read any of these ...

https://www.mql5.com/en/articles/mt4/tester

 
fxturn:
Is there any solution that we can optimize EA and it select results if all 12 months make profit results and not loose month?
See most receint article Testing (Optimization) Technique and Some Criteria for Selection of the Expert Advisor Parameters - MQL4 Articles
Reason: