Skip to content
All library documents

Displaying Higher-Time-Frame Candles on a Lower-Time-Frame Chart

Article ProRealCode

Summary

This indicator overlays candles from a configurable higher time frame onto a lower-time-frame price chart. The interval is specified in minutes, with examples including an hour, four hours, and a day. It tracks elapsed chart time to detect the start of a new higher-time-frame candle, records its opening level, and draws the completed candle across the lower-time-frame bars. Candle color distinguishes upward and downward movement, while repeated line segments are used to fill the candle body.

The included script limits calculations to recent bars by default and notes that this setting can be increased to display more history. The description also points to a separate Heikin Ashi variant. This is a charting aid for viewing multiple time scales together, not a standalone entry or exit strategy. The document does not discuss signal testing, execution, or performance, and the displayed candles depend on the chart platform's time and bar data conventions.

Key ideas

  • The indicator represents a configurable higher-time-frame candle within a lower-time-frame chart.
  • It uses elapsed minutes and interval boundaries to identify when a new higher-time-frame candle begins.
  • Candle direction is shown with red or green coloring, and segments fill the body visually.
  • The script limits historical calculation by default, with a setting that can be raised for more history.
  • The overlay is a visualization tool and does not provide 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.