Skip to content
All library documents

Identifying a Broker’s Daylight Saving Time Schedule from H1 Bars

Article MQL5 code base

Summary

The document describes a way to identify whether a broker’s server clock follows Australian, UK, US, or no daylight saving schedule. It checks hourly chart bars around the expected clock-change dates and compares server times across those bars. The method is intended to work in a strategy tester because it relies on bar timestamps rather than price reactions to economic events.

It outlines the calendar rules for each regional schedule and gives sample classifications for three FX brokers, including their server offsets. The document does not provide the script itself or explain how it handles missing bars, unusual broker time changes, or schedules outside the listed options. Its examples illustrate the output format, but do not establish that the approach works reliably across all brokers or historical periods.

Key ideas

  • The method compares server timestamps on hourly bars near expected daylight saving changes.
  • It classifies schedules as Australian, UK, US, or no daylight saving time.
  • The approach does not depend on price responses to economic calendar events.
  • Sample broker outputs show a schedule classification alongside the server’s GMT offset.
  • The document does not detail handling for missing bars or schedules outside its four categories.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.