Skip to content
All library documents

Displaying Candles Within a Selected Trading Session

Article MQL5 code base

Summary

This indicator description explains how to emphasize price candles that fall within a chosen time window on a chart. The user sets the session’s starting hour and its duration in hours; candles inside that interval receive the indicator’s colored display, while candles outside it use a selected chart style.

The outside-session display can be shown as bars, candlesticks, or a line chart. Two figure captions illustrate different start times and session lengths, but the document provides no trading rules, performance evidence, or guidance on choosing a session. It describes a charting and visualization aid, not a standalone trading strategy. Its usefulness therefore depends on whether session-specific price behavior matters to the trader’s analysis, and the description does not specify how sessions should be aligned across markets or time zones.

Key ideas

  • The indicator highlights candles within a user-defined trading session.
  • Its inputs are the session start hour, session duration, and display mode outside the session.
  • Outside-session prices can be rendered as bars, candlesticks, or a line.
  • The examples illustrate configurations but do not establish a trading edge.

Tags

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