Skip to content
All library documents

Mapping Trading Sessions with Time-Configured Chart Rectangles

Article MQL5 code base

Summary

The i-Sessions indicator marks eight configurable intraday time windows on a chart using colored rectangles. Inputs specify the start time, end time, and color for each session, while a day-count setting controls how many days are displayed. The example configuration divides a day into successive periods, making session boundaries visible for manual analysis of price action.

The document describes a charting aid rather than an entry, exit, or position-sizing method. Its practical value depends on the chosen session times, chart time zone, and instrument schedule; those details are not discussed. It offers no tests or evidence that session boundaries predict returns, volatility, or trading opportunities. The indicator was originally implemented in MQL4, but the material here is principally its configurable session layout, not a broader trading system.

Key ideas

  • The indicator draws colored rectangles for eight time-defined trading sessions.
  • Each session has configurable start and end times and a display color.
  • A day-count parameter sets the history over which sessions are shown.
  • The display can help traders inspect price behavior around session boundaries.
  • The document provides no performance testing or trading rules based on the marked sessions.

Tags

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