Download MetaTrader 5
To add comments, please log in or register
Deposit to your account using bank cards via Gate2Shop
Liping Wang
3657
Liping Wang 2012.10.03 17:37 

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
14612
Biantoro Kunarto 2012.10.04 05:55  

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