Skip to content

Donchian Channels

The highest high and the lowest low of the last few candles, with a middle line halfway between.

Settings

Setting Default What it does
Lower length 20 Candles for the lower line. Longer means a break below it is rarer.
Upper length 20 Candles for the upper line. Longer means a breakout above it is rarer (fewer, bigger signals).

Ready-made conditions

For Condition Fires when
Buy Price crosses lower Donchian band (prior bar) the one candle price moves from above the Lower line of the previous candle to below it
Buy or sell Price touches Donchian middle line price reaches the Middle line during the candle, from either side
Sell Price crosses upper Donchian band (prior bar) the one candle price moves from below the Upper line of the previous candle to above it

Warnings

  • Donchian band includes this candle, so price can never cross it. Turn Lag on with 1 bar to use the previous candle's channel. You can still save it.
  • Blocks Save: Lower length 1–1000 (whole number); Upper length 1–1000 (whole number).

Good to know

  • The ready-made breakouts compare price with the previous candle's channel ("prior bar"), because the current channel includes the current candle and can never be crossed.
  • Needs the longer of the two lengths (20 at the defaults).
  • Lower length and Upper length can differ (for example a 20-candle breakout in and a 10-candle exit).