Download MetaTrader 5

need an example of Print() to print out an datetime array, thanks

To add comments, please log in or register
Speed up MQL5 Cloud Network. Install Strategy Tester Agent!
LEE Chun Wing
831
LEE Chun Wing 2010.08.21 19:35 

need an example of Print() to print out an datetime array, thanks

   datetime time[50],time2[50];

   Print(" time2[i]= %9d", time2[i] );
      
   Print(" time2[i+1]= %9d", time2[i+1] );

i use above code , but it didn't show in the tester .log file~~

 

print and printf also OK, just for output the datetime array to debug , thanks

LEE Chun Wing
831
LEE Chun Wing 2010.08.22 10:22  

I turn out my code is work !

the reason why tester log didn't show the sentence

is

 

there are logical error of my code , which skip the Print() command

I am so sorry about that

To add comments, please log in or register