Skip to content
All library documents

Donchian Price-Channel Breakouts with Two-Bar Signal Confirmation

Article Strategy library · Author: ChaoZhang

Summary

The document describes a price-channel strategy built from recent highs and lows, with upper and lower bands positioned inside that range using a deviation parameter. A breakout test checks whether a bar’s high or low crosses a band, and a two-bar simple moving average of the breakout flags is used to confirm signals. The written description assigns long entries to lower-band breaks and shorts to upper-band breaks, with opposite breakouts described as exits. It also lists optional stop-loss and date controls, plus published BTC_USDT futures backtest settings.

The source and prose do not fully agree: the code’s signal assignments differ from the written explanation, and it calls a close-all instruction on every bar, which may prevent positions from being held as intended. The document supplies no performance figures to support its favorable characterization of backtests. Channel parameters can require tuning, and range-bound markets may generate false signals; position sizing, order handling, and capital limits also need attention before live use.

Key ideas

  • The channel is formed from recent candle highs and lows, with its bands set by a deviation parameter.
  • Breakout flags are smoothed over two bars to define the strategy’s entry signals.
  • The prose describes entries in both directions and mentions optional stop-loss and date controls.
  • The source code’s signal directions differ from the prose and includes a close-all instruction on each bar.
  • No quantitative performance results are reported, and the document identifies parameter sensitivity and range-bound false signals as risks.

Tags

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