Reliable way to determine Broker Offset
https://www.mql5.com/en/docs/dateandtime/timegmtoffset
Documentation on MQL5: Date and Time / TimeGMTOffset
- www.mql5.com
Date and Time / TimeGMTOffset - Reference on algorithmic/automated trading language for MetaTrader 5
calc it by yourself https://www.mql5.com/en/docs/dateandtime/timegmt
Documentation on MQL5: Date and Time / TimeGMT
- www.mql5.com
Date and Time / TimeGMT - Reference on algorithmic/automated trading language for MetaTrader 5
i understand that timegmt returns UTC time and i can make TimeCurrent()-timegmt to determine the offset but this wont work on weekend. There is completly new function required to be implemented. i have researched many websites and posts, result is: there is no reliable way known to determin the offset of connected broker. What a pitty for such an important fact, time.
Hi,
i am looking for how i can determine broker offset or timezone in a reliable way. of course i could try TimeCurrent()-TimeLocal() but this method does not work over weekend since TimeCurrent freezes at last tick. I have checked many solutions here but could not find anything really reliable. Does someone have any solution for that problem please?