Skip to content
All library documents

Using a Donchian Channels Indicator on a Selected Timeframe

Article MQL5 code base

Summary

This document describes a Donchian Channels indicator that lets the user select the chart period used by the indicator through an input parameter. The example sets the period to four hours, illustrating that the channel calculation can use a timeframe different from the chart's current timeframe.

The indicator depends on a separate Donchian Channels file being present in the platform's indicators directory. The document provides no channel formula, trading rules, performance results, or guidance on choosing a timeframe. It is therefore a brief implementation note about multi-timeframe indicator configuration, rather than a tested strategy.

Key ideas

  • The indicator accepts a user-selected timeframe for its Donchian Channels calculation.
  • The example uses a four-hour period.
  • The indicator requires a separate Donchian Channels component to be installed.
  • The document gives no trading rules or evidence of strategy performance.

Tags

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