Download MetaTrader 5

How to find difference in hours between London Open or GMT and Broker Server time?

To add comments, please log in or register
Do you often publish source codes? Find out how to do that correctly!
Sherif Hasan
7290
Sherif Hasan 2015.05.16 17:07 

i really need to know :

How to find difference in hours between London Open or GMT and Broker Server time?

whroeder1
14514
whroeder1 2015.05.16 18:30  
  1. London opens 8AM London time but London time is NOT GMT. In the summer it's BST.  GMT has no DST.
  2. In windows 8 you can ask for London time given GMT. (In windows 7 you can only get current London time)
  3. int diff = TimeGMT() - TimeCurrent();  Does not work in tester mode, must use constant TZ different and adjust for Broker DST (if any.)
Sherif Hasan
7290
Sherif Hasan 2015.05.18 08:01  
datetime  GMT=TimeGMT();

I get following error:

'TimeGMT' - function is not defined

Is TimeGMT is standard function or must write custom function?

whroeder1
14514
To add comments, please log in or register