- www.mql5.com
- Filled Rectangle?
- Partial close?
- My MT4 is 2 hours behind current time??
Should be able to calculate it from
It won't work as the TimeCurrent() returns the server's time and TimeGMT() returns the local (PC) time.
I don't think it does: what you're referring is TimeLocal().
https://www.mql5.com/en/docs/dateandtime/timegmt
"Returns the GMT, which is calculated taking into account the DST switch by the local time on the computer where the client terminal is running."
- www.mql5.com
I don't think it does: what you're referring is TimeLocal().
https://www.mql5.com/en/docs/dateandtime/timegmt
"Returns the GMT, which is calculated taking into account the DST switch by the local time on the computer where the client terminal is running."
That's what it does. It returns the local time but converted to GMT. You can try it.
What I asked for is how to get the server's GMT offset (or GMT time).

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use