Add a new column to Optimization Results

To add comments, please log in or register
FXreedom
4528
FXreedom  

hello, is it possible to add a new column to Optimization Results? :

I would like to add "Loss Trades". I can use TesterStatistics(STAT_LOSS_TRADES) in Ontester() or Deinit() functions but I do not know how to add the value to Optimization results.

optimization results

thanks in advance.

FXreedom
4528
FXreedom  
FXreedom:

hello, is it possible to add a new column to Optimization Results? :

I would like to add "Loss Trades". I can use TesterStatistics(STAT_LOSS_TRADES) in Ontester() or Deinit() functions but I do not know how to add the value to Optimization results.


thanks in advance.

Files:
Capture.JPG 55 kb
Anthony Garot
3251
Anthony Garot  
FXreedom:

hello, is it possible to add a new column to Optimization Results? :

The Custom Max Criterion can be used as your own column in the Optimization Results.

It's the return value of OnTester().

https://www.mql5.com/en/docs/basis/function/events

FXreedom
4528
FXreedom  
Anthony Garot:

The Custom Max Criterion can be used as your own column in the Optimization Results.

It's the return value of OnTester().

https://www.mql5.com/en/docs/basis/function/events


hello Anthony, thanks a lot for your reply. You are right, I solved the problem doing that:

double OnTester()

{

  return(TesterStatistics(STAT_LOSS_TRADES));

}

Now, one "OnTester result" appears in my Optimization Result Tab with the desired result.


best regards.

To add comments, please log in or register