Skip to content
All library documents

Detecting Broker Forex Session Anomalies Around DST Changes

Article MQL5 code base

Summary

The document explains how mismatched daylight-saving transition dates in the United States and Europe can affect the timestamps used for forex trading sessions. It describes a nominal weekly session lasting 120 hours and argues that the local server timestamps for its first and last hours should shift during the weeks when the regions’ clock changes do not align. The described script checks a broker’s historical server timestamps, identifies sessions that appear irregular or do not span the expected duration, and reports the latest timestamp, count of anomalies, and approximate history covered.

The motivation is practical: a missing first session hour could prevent a trader or automated system from responding to weekend events, while assuming a fixed 120-hour offset could mis-time pre-weekend position closures. The document reports observations from a demo account and some real brokers, not a broad broker survey. Its expected timestamps depend on server timezone conventions and session definitions, so traders should verify behavior with their own broker before relying on the check.

Key ideas

  • US and European daylight-saving changes occur on different dates, creating temporary shifts in their time difference.
  • The described checker compares historical session boundaries with the expected 120-hour span.
  • Irregular timestamps can mean the first hour of a forex session is absent from broker data.
  • A fixed offset from session start may misidentify the session end during transition periods.
  • The reported behavior comes from particular accounts and should be verified with each broker.

Tags

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