Hello,
The algorithm used to calculate the broker's GMT offset and daylight savings in the script "TimeSummer.mq5" is totally wrong.
https://www.mql5.com/en/book/common/timing/timing_daylight_saving
The correct algorithm can be found here: https://www.mql5.com/en/code/48650
![Determine Broker's Daylight (DST) schedule Determine Broker's Daylight (DST) schedule](https://c.mql5.com/36/83/determine-broker-s-daylight-dst.jpg)
Determine Broker's Daylight (DST) schedule
- www.mql5.com
Script to determine whether your Broker follows the US, UK or AU daylight (DST) schedule.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
MQL5 Programming for Traders – Source Codes from the Book. Part 4:
In the fourth part of the book, we will focus on mastering built-in functions (MQL5 API) and will gradually delve into specialized subsystems. Any MQL5 program can utilize a plethora of technologies and functionalities. Therefore, it makes sense to begin with the most simple and useful functions that can be utilized in most programs.
Author: MetaQuotes