Skip to content
All library documents

Trading Donchian Channel Width Against Its Moving Average

Article Strategy library · Author: ChaoZhang

Summary

This strategy measures the range between the highest high and lowest low over a lookback period, then compares that Donchian channel width with its simple moving average. When width exceeds its average, the example takes a short position; when width falls below the average, it takes a long position. A reverse option flips those directions. The published settings use a 50-period channel and smoothing window, and configure a one-hour BTC-USDT futures backtest from January to February 2024.

The document frames channel width as a volatility measure and notes that indicator lag may matter more during high volatility. It also cautions that width can misstate risk, signals may lag in sharp moves, and parameter choices affect outcomes. The source code provides the rules and backtest configuration but no performance statistics, so it does not show whether fading wider ranges or buying narrower ones is profitable. Suggested additions such as volume confirmation, adaptive parameters, and stop losses are not part of the demonstrated rules.

Key ideas

  • Donchian channel width is calculated as the period's highest high minus its lowest low.
  • The strategy compares width with its simple moving average to classify volatility as relatively high or low.
  • It enters short when width is above its average and long when width is below, with an option to reverse the signals.
  • The published example uses 50-period channel and smoothing inputs in a one-hour BTC-USDT futures backtest configuration.
  • The material warns that width signals can lag or misrepresent risk and gives no backtest performance results.

Tags

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