//+------------------------------------------------------------------+ //| Check_GMTOffset.mq5 | //| Copyright 2010, MetaQuotes Software Corp. | //| http://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2010, MetaQuotes Software Corp." #property link "http://www.mql5.com" #property version "1.00" //+------------------------------------------------------------------+ //| Script program start function | //+------------------------------------------------------------------+ void OnStart() { //--- datetime trade_server_time=TimeTradeServer(); datetime GMT_time=TimeGMT(); Print("GMT Offset on trade server is ",int(trade_server_time-GMT_time)," seconds"); } //+------------------------------------------------------------------+
karaozkan27:
Hi all,
I need to know GMT zone automatically by changing client terminal's market watch. Is there anybody who know its code?
I couldn't find any code about it.. I need this because I am in Turkey(GMT+2) then Client terminal market watch (GMT+1).
I need to find out GMT where the Client Terminal is running(not depends on my computer clock).
I don't believe you change change the Market Watch clock. It always displays the broker's server time.
I believe the current MetaQuotes MT5 server time is GMT+2 and will change on 2010.11.7 to GMT+1. You should review these new functions in MQL5.
TimeGMT()
TimeDaylightSavings()
TimeGMTOffset()
I got it now..Thank you Rosh and wackena...
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi all,
I need to know GMT zone automatically by changing client terminal's market watch. Is there anybody who know its code?
I couldn't find any code about it.. I need this because I am in Turkey(GMT+2) then Client terminal market watch (GMT+1).
I need to find out GMT where the Client Terminal is running(not depends on my computer clock).