Visualizing Forex Sessions as OHLC Bars in MQL5
Summary
The article describes a modular MQL5 component for drawing Sydney, Tokyo, London, and New York trading sessions on price charts. It treats each session as an OHLC period and renders session ranges as candlestick-like shapes, with optional wicks, labels, and translucent colors to make overlapping hours easier to inspect. The proposed workflow is to build and check the visualizer separately before connecting it to a larger market-periods tool, where controls could manage visibility, colors, and lookback length.
The discussion gives example GMT session hours and explains how a class can hold session settings, calculate ranges, and refresh chart objects. It presents a development approach rather than evidence of a trading edge: no performance study or validated claim that session drawings improve decisions is provided. Time-zone handling, daylight-saving shifts, broker server time, and session boundaries need careful verification; the article itself includes only a basic GMT offset estimate and the supplied text is incomplete.
Key ideas
- A session can be represented by its own open, high, low, and close values.
- The example defines four major Forex sessions with GMT-based hours.
- A reusable class can separate chart drawing from the main Expert Advisor.
- Overlapping sessions can be shown with transparency to distinguish concurrent activity.
- The described feature is a visualization aid, not a tested trading strategy.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.