Skip to content
All library documents

Using a Customizable Donchian Channel to Read Trend and Consolidation

Article MQL5 code base

Summary

The Donchian Ultimate indicator extends the classic channel, which tracks recent price extremes, with adjustable periods, bar shifts, and five ways to calculate its upper and lower boundaries. It can display a higher-timeframe channel on a lower-timeframe chart, hide the center line, and mark optional support and resistance zones near the channel edges. Alerts can be configured for crossings of the center line or closes within those zones, with the option to use the current or most recently closed candle.

The document describes the channel as a way to observe trend development and proximity to possible continuation or reversal, rather than a standalone buy or sell system. Its example says rising upper bands can accompany a developing trend, while flattening bands can indicate consolidation. These are qualitative observations only: no trading rules, backtest, or performance evidence are provided, and alerts depend on user-selected settings and timeframe.

Key ideas

  • The classic Donchian channel marks the highest high and lowest low over a chosen period.
  • The indicator offers alternate boundary calculations, timeframe selection, a bar shift, and optional support and resistance spans.
  • Alerts can flag center-line crossings and closes within the support or resistance zones.
  • Rising channel boundaries may accompany a trend, while flattening boundaries may appear during consolidation.
  • The channel is presented as a context tool rather than a complete buy and sell strategy.

Tags

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