AGAIN OnTester() - even though implemented it is NOT working!! New comment Carl Schreiber 2014.03.16 11:16 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 Ontester() ...Error, it is not working not anymore OnTester() the Genetic Algorithm and return(INIT_PARAMETERS_INCORRECT) Discussion of article "Creating Custom Criteria of Optimization of Expert Advisors" New comment
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:
BUT ALL the result is still positive ???
Now I try to return this:
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