GMT Time not Working as expected
-
GMT Local Time and Server TIme all show the same values. This should not be the case. I tested it by sending an email with these values. They are all the same. Can someone please clarify. GMT time should return Current London time, is it?
Here is the email sent by EA:

Here is the block Sending the email:

-
from the screenshot no one sees what the real time of the server is and what the real local time is. Who can say?
-
Why does it matter? The 3 times (GMT, SERVER and LOCAL) that were emailed should not be the same regardless of what the server time is.
By the way, the server time is the that the time emailed: 13:14:04
-
I mean: if I were to live in London and my broker was based in London, I could see that the three times GMT, server time and local time certainly coincide
-
@ambrogio
No you wouldn't. MT5 server time is GMT+2 or GMT+3 no matter where the broker is located. So let's not argue nonsense, let someone who understands this provide some help. My local time is Australia time, so none of what you have said applies anyway -
This has been noticed before, hopefully @fxDreema will fix it, for now you need to use code to get the correct time. Run this on live/demo to see what to do. Do not know about MT5 but I assume it is the same, this code will work on either: https://fxdreema.com/shared/thE0m6Xtd
-
@s00071609 said in GMT Time not Working as expected:
@ambrogio
No you wouldn't. MT5 server time is GMT+2 or GMT+3 no matter where the broker is located. So let's not argue nonsense, let someone who understands this provide some help. My local time is Australia time, so none of what you have said applies anywayif you think about it better, it's not nonsense, normally the server time corresponds the broker's time and the local time corresponds to that of your PC. I would like to point out that you have only now specified your location and the time zone of your server. So now, yes, your topic makes sense and jstap has answered you.
-
GMT = Greenwich Mean Time, which is winter time in the UK, before DST comes into effect. Server is broker/chart time (also used in backrtesting). Local time is whatever your computer thinks it is, normally the time your clock/phone says it is.
-
@jstap so for better backtesting specially when using vps to deploy an ea , server time is the best option?? coz it uses chart time?
-
Chart time is server time.
-
@s00071609 A bit late to the party here but this is a very simple solution by using Market Properties:
https://fxdreema.com/shared/QdX8oPs0e -
@albyxx
they may have now fixed the issue. That block with gmt, local and server all returned server time, so workaround was needed, its good its working now -
@s00071609 just to clarify the situation; your original method of calling the various time stamps through a "Value" and then "Time" still does not function correctly, all return the server time.
The method of calling time through "Market Properties" and then "Time" does function correctly for all time stamp types.
So, the left side block in the below screen shot functions correctly, the right side block does not.