Skip to content
All library documents

Visualizing a Selected Trading Period with Candlestick Rectangles

Article MQL5 code base

Summary

This document explains a chart indicator that highlights a time interval within the current trading day. It draws three colored rectangles to show the selected period’s candlestick structure: a central region spans the open and close, while the upper and lower regions depict the shadows. Rising candles use lime green, and falling candles use a yellow-brick color. The interval is configurable through the indicator settings, allowing the user to focus the display on a chosen part of the day.

The indicator is a visualization aid rather than a stated entry or exit strategy. It draws its display with chart graphical objects. The document includes an illustrative figure but gives no signal rules, trading results, or guidance for selecting the interval. It therefore describes how to inspect intraday candle shape visually, without evidence that the display provides a predictive or profitable edge.

Key ideas

  • The indicator marks a configurable time interval in the current trading day.
  • A central rectangle represents the selected candle’s open-to-close body.
  • Separate upper and lower rectangles represent the candle’s shadows.
  • Rising and falling candles are distinguished by different colors.
  • The description offers a chart visualization and reports no trading rules or performance evidence.

Tags

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