Download MetaTrader 5

Where is the printf() output displayed?

To add comments, please log in or register
Liping Wang
3662
Liping Wang  

void OnTick()
  {
//--- at each tick we output the High and Low values for the bar with index,
//--- equal of the tick second
   datetime t=TimeCurrent();
   int sec=t%60;
   printf("High[%d] = %G  Low[%d] = %G",
          sec,iHigh(Symbol(),0,sec),
          sec,iLow(Symbol(),0,sec));
  }

 

The above is from an example code, I'm sure it works fine. But I can't find the output text anywhere.

Thanks. 

Biantoro Kunarto
15342
Biantoro Kunarto  

In the MT Terminal, Check the Experts Tab in the Toolbox. The output text will show at that Tab.
Liping Wang
3662
Liping Wang  
Thank you Sir!
To add comments, please log in or register