FrameAdd + Genetic

 

FrameAdd is not working for genetic optimizations in the last build (2085).

To reproduce you can optimize the unique variable available here:

//+------------------------------------------------------------------+
#property tester_no_cache
input double input_value=0;
//+------------------------------------------------------------------+
int OnInit()
  {
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
void OnTick()
  {
  }
//+------------------------------------------------------------------+
double OnTester()
  {
   string name="";
   long   id=0;
   double data[];

   FrameAdd(name,id,input_value,data);

   return 0;
  }
//+------------------------------------------------------------------+
void OnTesterInit()
  {
   Print("Begin...");
  }
//+------------------------------------------------------------------+
void OnTesterPass()
  {
   ulong  pass=0;
   string name="";
   long   id=0;
   double value=0.0;
   double data[];

   while(FrameNext(pass,name,id,value,data))
     {
      Print(pass," ",name," ",id," ",value);
     }
  }
//+------------------------------------------------------------------+
void OnTesterDeinit()
  {
   Print("... end.");
  }
//+------------------------------------------------------------------+

If you run a complete optimization the result is something like:

2019.07.25 17:57:02.509 FrameTest (WIN$N,M1)    Begin...
2019.07.25 17:57:02.651 FrameTest (WIN$N,M1)    5  0 6.0
2019.07.25 17:57:02.727 FrameTest (WIN$N,M1)    8  0 9.0
2019.07.25 17:57:02.798 FrameTest (WIN$N,M1)    9  0 10.0
2019.07.25 17:57:02.813 FrameTest (WIN$N,M1)    4  0 5.0
2019.07.25 17:57:02.817 FrameTest (WIN$N,M1)    2  0 3.0
2019.07.25 17:57:02.821 FrameTest (WIN$N,M1)    7  0 8.0
2019.07.25 17:57:02.821 FrameTest (WIN$N,M1)    3  0 4.0
2019.07.25 17:57:02.823 FrameTest (WIN$N,M1)    0  0 1.0
2019.07.25 17:57:02.824 FrameTest (WIN$N,M1)    6  0 7.0
2019.07.25 17:57:02.825 FrameTest (WIN$N,M1)    1  0 2.0
2019.07.25 17:57:02.838 FrameTest (WIN$N,M1)    ... end.

If you run in the genetic mode (select at least 10.000 passes).

2019.07.25 17:57:19.571 FrameTest (WIN$N,M1)    Begin...
2019.07.25 17:57:21.182 FrameTest (WIN$N,M1)    ... end.


PS: That's how we're supposed to report bugs now, right? Just post here.

 
Henrique Vilela:

FrameAdd is not working for genetic optimizations in the last build (2085).

To reproduce you can optimize the unique variable available here:

If you run a complete optimization the result is something like:

If you run in the genetic mode (select at least 10.000 passes).


PS: That's how we're supposed to report bugs now, right? Just post here.

I can't reproduce it, all seems normal on my side.
 
Alain Verleyen:
I can't reproduce it, all seems normal on my side.

Same build (2085)?

Also: Did you set at least 10.000 passes? (otherwise MT5 forces the complete) 

 
Henrique Vilela:

Same build (2085)?

Also: Did you set at least 10.000 passes? (otherwise MT5 forces the complete) 

Of course.
 
Henrique Vilela:

Same build (2085)?

Also: Did you set at least 10.000 passes? (otherwise MT5 forces the complete) 

Got it AFTER I tried a "Slow complete" optimization. In my first attempt I was trying the Genetic algo directly.
Reason: