I want to display GMT time on chart.
i used Comment(TimeGMT());
Please advise me how to use TimeGMT() function?
It is not showing an error. It is doing exactly what it is supposed to do. Read the documentation. What's New in MQL4 - MQL4 Documentation Feb 2014
The string representation of datetime type depends on compilation mode:
datetime date=D'2014.03.05 15:46:58';
//--- str="mydate=1394034418" - old compiler/new compiler without #property strict
//--- str="mydate=2014.03.05 15:46:58" - new compiler with #property strict
Comment( TimeToString( TimeGMT() ) );
Oops. Yes. i am using old compiler. now it works for me , no errors with new compiler
To add comments, please log in or register