OnTester() not being called

Back to topics list To post a new topic, please log in or register
avatar
11
Aschab 2016.03.02 06:07
 

I'm running a tester with optimization with this expert advisor:

 

handle=FileOpen("data1.csv",FILE_CSV|FILE_READ|FILE_WRITE,',');

   if(handle<1)

   {

   return(false);

   }

   else

   {

   FileWrite(handle, "Bidibidibadibum");

   } 

 

It works on my OnInit function, OnTick, OnChart, it works everywhere. But not on my OnTester(). Where I'm messing up? Isn't OnTester called when I finish a strategy test?

 

avatar
2017
gooly 2016.03.02 09:15 #
 

it works perfectly for me in OnTester()

      string row = StringFormat("%i,%i,...",...);
      int fH = FileOpen(fName,FILE_READ|FILE_WRITE);
      FileSeek(fH,0,SEEK_END); 
      FileWriteString(fH, row, StringLen(row) );
      FileClose(fH);


Back to topics list  

To add comments, please log in or register