Download MetaTrader 5

AGAIN OnTester() - even though implemented it is NOT working!!

To add comments, please log in or register
Carl Schreiber
7087
Carl Schreiber  

Due to my suspicion that the genetic optimization uses the wrong side of the list of the values which was returned by OnTester() I tried to change the sign of the results:

void MyTester(){
        maxBalance = MathMax(maxBalance,AccountBalance());
        maxDD = MathMax(maxDD,maxBalance - AccountBalance());
}

double OnTester()  {
//---   
   //double prf = TesterStatistics( STAT_PROFIT );
   //double maxDD = TesterStatistics( STAT_BALANCE_DD );
   MyTester();
   double prf = maxBalance - iniBalance;
        if ( maxDD > 0.01 )
                return(-prf/maxDD);
        else if (prf > 0.0)
                return(-100.0);
        else
                return(100.0);
}

BUT ALL the result is still positive ???

Now I try to return this:

double OnTester()  {
//---   
   //double prf = TesterStatistics( STAT_PROFIT );
   //double maxDD = TesterStatistics( STAT_BALANCE_DD );
   MyTester();
   double prf = maxBalance - iniBalance;
        if ( maxDD > 0.01 )
                return(10000.0-prf/maxDD);
        else if (prf > 0.0)
                return(10000.0-100.0);
        else
                return(10000.0+100.0);
}

Now I get very strange results X(

Previously I got results of 2000 until 7000 now ~9500.

So I have to say OnTester() still does no work even it is implemented!!


VERY SAD!!

It means 2 days backtests are nothing but garbage!

(btw I have b616)

Gooly

To add comments, please log in or register