Optimization Issue

 
I am just wondering that is there any functions or standard outputs that I can use for my EA optimization results?
eg: Can I get Profit as an output of a function, so I can get all these factors in my programme, instead of using copy and paste in the Optimization Results tab.

Pass Profit Total Trades Profit Factor Expected Payoff Drawdown $ Drawdown % Inputs
6 86456.97 7 16.52 112351.00 15668.58 1.46% MAi=25......

The reason I need to do this is that I am running EA optimization on different time period.
eg: the 1st optimization is between 2001.01.01 - 2002.12.31, 2nd optimization is between 2003.01.01 - 2004.12.31. and so on.

Only a specific factor, eg: highest Profit, or Lowest Drawdown % interests me.

What I am looking for is a function like

double Optimization(string Symbol, int TimeFrame, datetime Start, datetime End, int Model, int OutputFactor)
The return value is the max/min of the OutputFactor, eg: Profit, Drawdown %

That's for studying the trend of EA parameters, and the correlation with other factors.
 
Sounds like genetic optimization. MQ would be seriously remiss for not doing what you ask. Alas, it may take some time.
Reason: