Time your Exits with Average True Range (ATR) Trailing Stops

ATR Trailing Stops are primarily used to protect capital and lock in profits on individual trades but they can also be used, in conjunction with a trend filter, to signal entries.

Average True Range ("ATR") was introduced by J. Welles Wilder in his 1978 book New Concepts In Technical Trading Systems. ATR is a measure of volatility for a stock or index and is explained in detail at Average True Range. Wilder experimented with trend-following Volatility Stops using average true range. The system was subsequently modified to what is commonly known as ATR Trailing Stops.

ATR Trailing Stop Signals

Signals are used for exits:

  • Exit your long position (sell) when price crosses below the ATR trailing stop line.
  • Exit your short position (buy) when price crosses above the ATR trailing stop line.

While not conventional, they can also be used to signal entries — in conjunction with a trend filter.


The RJ CRB Commodities Index late 2008 down-trend is displayed with Average True Range Trailing Stop (21 days, 3xATR, Closing Price) and 63-day exponential moving average used as a trend filter.

RJ/CRB Index with ATR trailing stops

Mouse over chart captions to display trading signals.

  1. Go short [S] when price closes below the ATR stop — while below the 63-day exponential moving average
  2. Exit [X] when price crosses above the ATR stop


Typical ATR time periods used vary between 5 and 21 days. Wilder originally suggested using 7 days, short-term traders use 5, and longer term traders 21 days. Multiples between 2.5 and 3.5 x ATR are normally applied for trailing stops, with lower multiples more prone to whipsaws.

The default is set as 3 x 21-Day ATR.

Closing Price is set as the default option. The alternative is HighLow (see Formula below).

See Indicator Panel for directions on how to set up an indicator — and Edit Indicator Settings to change the settings.

ATR Trailing Stops Formula

Trailing stops are normally calculated relative to closing price:

  1. Calculate Average True Range ("ATR")
  2. Multiply ATR by your selected multiple — in our case 3 x ATR
  3. In an up-trend, subtract 3 x ATR from Closing Price and plot the result as the stop for the following day
  4. If price closes below the ATR stop, add 3 x ATR to Closing Price — to track a Short trade
  5. Otherwise, continue subtracting 3 x ATR for each subsequent day until price reverses below the ATR stop
  6. We have also built in a ratchet mechanism so that ATR stops cannot move lower during a Long trade nor rise during a Short trade.

The HighLow option is a little different: 3xATR is subtracted from the daily High during an up-trend and added to the daily Low during a down-trend.

ATR Trailing Stops Evaluation

Average True Range Trailing stops are far more volatile than stops based on moving averages and are prone to whipsaw you in and out of positions except where there is a strong trend. That is why it is important to use a trend filter. Average True Range Trailing stops are more adaptive to varying market conditions than Percentage Trailing Stops, but achieve similar results when applied to stocks that have been filtered for a strong trend.

RJ/CRB Index with ATR and Percentage trailing stops

Original ATR and Volatility Stops have two major weaknesses:

  • Stops move downwards during an up-trend if Average True Range widens. I am uncomfortable with this: stops should only move in the direction of the trend.
  • The Stop-and-Reverse mechanism assumes that you switch to a short position when stopped out of a long position, and vice versa. What is just as likely in a trend following system is that a trader is stopped out early — and their next entry is in the same direction as their previous trade.

We have introduced a ratchet mechanism (described above) to address the first weakness. The second can be dealt with by using ATR Bands.