Skip to content

Donchian Trend Ensemble (Zarattini-style)

Buys when the daily close breaks above the previous 20-day high, and exits when the close falls below the middle of that 20-day channel. The middle line can move down as well as up. Long only: in a downtrend it waits in cash. The published ensemble sizes trades to a volatility target and runs several lookbacks; this is the single 20-day version. A long sideways market does not suit it.

Trend · Advanced · medium risk.

Long, single lookback (n = 20)

  • Direction: Buy (long)
  • Trigger: On candle close · Main timeframe: Auto (1d)

Entry

  • IF Price crosses above Donchian(20,20) Upper 1 bar ago (1d)

Exit: Indicator-Based Exit

  • IF Price crosses below Donchian(20,20) Middle (1d)
  • Loss controls: Stop-loss % 15%

Settings

Setting Default Editable What changing it does
Lookback 20 No How many days the channel covers. Shorter enters and exits sooner (more trades); longer catches only bigger trends (fewer trades). Changes the entry and the trailing exit together.

Good to know