Time display problem while trades taken place
Kindly suggest me time is not matching with actual time. Examples. if CRUDEAPRM6 CurrTime+10.18 Sell here in india 1.50 afternoon time is going on.So please suggest or correct or guide me.
thanks
Krishna
Hi Krishna, You can send all the code for your problem
I can help you.
SignalTime=TimeCurrent(); // server time or SignalTime=TimeLocal();// local time or SignalTime=TimeGMT();// GMT time
Hi Krishna, You can send all the code for your problem
I can help you.
How can i put this code.
Guide me in which line Kourosh
thanks for your co operation
krishna
How can i put this code.
Guide me in which line Kourosh
thanks for your co operation
krishna
Is it your code you publish in the first comment ? If yes, you don't have difficulty to use what Kourosh proposed.
Thanks
krishna
Is it your code you publish in the first comment ?
- votes: 12
- 2013.01.30
- Nikolay Kositsin
- www.mql5.com
if you want only display local time you can change below :
datetime SignalTime=TimeCurrent(); if(On_Play_Sound) PlaySound(NameFileSound); string period=GetStringTimeframe(Period()); string comment,sTime=" CurrTime="+TimeToString(SignalTime,TIME_MINUTES)+" local time ="+TimeToString(TimeLocal()),TIME_MINUTES) ; StringConcatenate(comment,CommentSirName,Symbol(),period," ",sTime," Buy signal!"); if(On_Alert) Alert(comment); if(On_Push) SendNotification(comment); if(On_Email) SendMail(CommentSirName+Symbol()+period,comment);
Kindly suggest me time is not matching with actual time. Examples. if CRUDEAPRM6 CurrTime+10.18 Sell here in india 1.50 afternoon time is going on.So please suggest or correct or guide me.
thanks
Krishna