Skip to content
All library documents

Mapping Forex Sessions and Prior-Session Breakouts in MetaTrader 5

Article MQL5 articles

Summary

This article explains an Expert Advisor that visualizes the Asia, Tokyo, London, and New York trading sessions on a MetaTrader 5 chart. It uses broker-server time to draw session ranges and display each session’s open, high, low, and close. On-chart controls let users show or hide sessions, while an information panel and scrolling ticker present session status and updates. A timer refreshes the display and checks for session changes.

The EA also alerts when price moves above or below the previous session’s range, making it a visual aid for session-based breakout monitoring. The document describes testing on Deriv, reporting synchronized session times, stable rendering, and timely alerts across chart types and timeframes. It gives no quantitative trading results or evidence that these breakouts are profitable. Session behavior is presented as a general tendency, so the overlay supplies time and price context rather than a validated standalone strategy.

Key ideas

  • The EA draws four major forex sessions using broker-server time as its clock reference.
  • Chart buttons control session visibility, and labels show session open, high, low, and close.
  • A timer updates the display and checks for session transitions and prior-session range breaks.
  • Alerts identify when current prices move beyond the previous session high or low.
  • The reported tests assess synchronization and display behavior, not breakout profitability.

Tags

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