Volatility Indicators

Donchian Channel indicator

Highest high and lowest low over N bars with a midline. Breaks of either edge are breakout entries; the midline is the first pullback level.

Definition

Highest high and lowest low over N bars with a midline. Breaks of either edge are breakout entries; the midline is the first pullback level.

Parameters

Asset, Lookback period (20), Line (upper | lower | middle)

Output range: Price scale

Example condition

text
`Price(AAPL) > Donchian(AAPL, 20, upper)` (Breakout)

Usage notes

The classic turtle 20/55 breakout system runs on this channel — middle is where failed breakouts retest.

Use in a strategy

Add this indicator to a strategy condition, choose its supported parameters and compare the output with the threshold required by your rule. Preserve the same interval and lookback when comparing backtests.

After saving the condition, inspect its asset, interval, lookback and comparison operator against the parameters above. If no trades occur, check whether the condition ever became true and whether the requested input data exists for that period. A missing input is not a zero-valued signal. An indicator produces an input to a rule. It does not establish future returns, and data availability can differ across assets and periods.