Download MetaTrader 5

OnTester() not being called

To add comments, please log in or register
Arturo Schreiber
Arturo Schreiber 2016.03.02 05:07 

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









   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?

Carl Schreiber
Carl Schreiber 2016.03.02 08:15  

it works perfectly for me in OnTester()

      string row = StringFormat("%i,%i,...",...);
      int fH = FileOpen(fName,FILE_READ|FILE_WRITE);
      FileWriteString(fH, row, StringLen(row) );
To add comments, please log in or register