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
What is the best place to find a programmer? Freelance service!
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
14519
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
14519
To add comments, please log in or register