Skip to content
All library documents

Projecting Higher-Timeframe Channels from Closed Candle Data

Article MQL5 code base

Summary

The document describes a MetaTrader 5 indicator that overlays parallel channels for selected higher timeframes on the current chart. For each timeframe, it uses the last two closed candles: their open-close midpoints determine the median line and its slope, while the earlier reference candle’s high and low set parallel channel boundaries. The lines extend forward, offering a visual view of the higher timeframe’s recent direction and range in relation to the execution chart.

Users can independently enable monthly, weekly, daily, four-hour, hourly, and shorter intraday channels, and adjust timeframe colors and shared line style and width. The indicator is described as non-repainting because it uses closed candles, and it updates when a new candle forms on the chart. No performance results, entry rules, or validation are provided. The channel is a visual projection based on a small amount of recent price data, so it should not be treated as a tested forecast or a standalone trading strategy.

Key ideas

  • The indicator derives a median line from the open-close midpoints of the two most recent closed candles on each selected timeframe.
  • High and low values from the older reference candle define parallel channel boundaries.
  • Channels extend into the future and can be displayed together across several timeframes.
  • The indicator uses closed candles, but the document provides no evidence that its projections predict future prices.

Tags

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