Currently I am running two optimizations (status: 3009/10 496 (888 624)) with the use of OnTester().
The Reference writes:
In the genetic optimization descending sorting is applied to results within one generation.
I.e. from the point of view of the optimization criterion, the best results are those with
largest values (for the Custom max optimization criterion values returned by the OnTester
function are taken into account). In such a sorting, the worst values are positioned at
the end and further thrown off and do not participate in the forming of the next generation.
So it maximizes the outcome.
But what I actually see is exactly the opposite:
This looks as if mainly not the highest values are used but the smallest are used to run the next backtest.
Due to the fact the prev. builts the values of TesterStatistics() were not available ("..not yet implemented") I wrote my own functions:
void MyTester(){ // called generally after orders were closed...
maxBalance = MathMax(maxBalance,AccountBalance());
maxDD = MathMax(maxDD,maxBalance - AccountBalance());
}
..
doubleOnTester() {
MyTester();
double prf = maxBalance - iniBalance;
if ( maxDD > 0.0001 )
return(prf/maxDD);
elseif (prf > 0.0)
return(100.0);
elsereturn(-100.0);
}
Is that what I see the intended result of the use of OnTester() or is this still not working even though I get no warning nor an error?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Currently I am running two optimizations (status: 3009/10 496 (888 624)) with the use of OnTester().
The Reference writes:
So it maximizes the outcome.
But what I actually see is exactly the opposite:
This looks as if mainly not the highest values are used but the smallest are used to run the next backtest.
Due to the fact the prev. builts the values of TesterStatistics() were not available ("..not yet implemented") I wrote my own functions:
Is that what I see the intended result of the use of OnTester() or is this still not working even though I get no warning nor an error?
Gooly