All indicators

Donchian Breakout Strategy

Jan 1, 2020

Static chart image
SignalsChannelsMoving AveragesTrailing-StopVolatility

The Donchian Breakout Strategy indicator is a trend-following tool designed to capture market momentum by entering trades when price breaks above a defined upper boundary. It utilizes the classic Donchian Channel structure while providing advanced filtering and trailing stop mechanisms to manage risk and trend quality.

Usage

The strategy enters a long position when the price breaks above the upper Donchian Channel line. Users can choose to execute these trades based on a candle's wick (simulating a stop-buy order) or only after a candle close. Once in a trade, the lower Donchian Channel line typically acts as a trailing stop.

A unique "Tight Stop" feature allows for a more aggressive initial exit using a shorter lookback period, which then transitions to the wider main channel stop once the trade moves into profit. This "keep losers small and let winners run" approach is designed to protect capital during the initial phase of a breakout.

Details

The strategy includes several layers of sophisticated filtering:

  • Trend Filtering: It can ignore signals when price is below a Moving Average (MA) on the current or a higher timeframe, or when the MA slope is declining.
  • ADR Filtering: It calculates the distance between the upper and lower channel boundaries as a percentage of the Average Daily Range (ADR). This helps avoid entering trades when the breakout "stretch" is overextended or the risk-to-reward is unfavorable based on recent volatility.
  • Execution Logic: It supports both "Wick" execution (entering as soon as the price hits the level) and "Close" execution (waiting for confirmation).

Settings

Backtest Window

  • Backtest Start/End Date: Defines the specific time range for performance evaluation.

Donchian Inputs

  • Upper Band Period: The lookback period for the breakout level.
  • Lower Band Period: The lookback period for the standard trailing stop.
  • Use a Tighter Channel for Initial Stop?: Enables a shorter lookback period for the initial stop loss.
  • Initial Stop Period: The lookback for the tighter stop level.
  • Execute Trades On...: Choose between Wick or Close for entry/exit triggers.

Moving Average Filtering

  • Use Rising/Falling Moving Average as Filter?: Filters trades based on the slope of an MA on a chosen timeframe.
  • Use Moving Average for Filtering (Current/High Timeframe): Requires price to be above a specific MA to allow long entries.

ADR Filtering

  • Use ADR for Filtering?: Toggles the volatility-based entry filter.
  • % of ADR Value: The threshold used to compare the channel range against recent volatility.

FAQ

How do I use the ADR table?

The table shows the current ADR percentage and the current channel range. If the "Range" cell turns red, it means the current breakout distance is considered too wide relative to the ADR, and signals may be filtered.

Can I change the timeframe for the trend filters?

Yes, the strategy allows you to set independent timeframes for the MA slope and the high-timeframe trend filter, enabling multi-timeframe analysis.

How do I access the Donchian Breakout Strategy?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.