Indicator Guide / Volatility

ATRAverage True Range

How far price usually moves in one bar, gaps included. It measures size, not direction.

ATR 14 on a practice chartMade-up prices
Top: price. Bottom: ATR, the average size of a bar's true range, in price units.
01 · WHAT IT IS

ATR is a smoothed average of each bar's size, set to 14 bars by default. Each bar's size is its true range.

The true range counts gaps. If price jumps from the last close, the jump is part of this bar's range. ATR says how much price moves. It does not say which way.

02 · UNDER THE HOOD
  • True range from the bar alone
  • True range that includes a gap from the last close

True range today–

Measured as–

ATR 14–

ATR as % of price–

Each bar is one of the last 14. The thick line beside it is its true range. Purple: the bar's own high to low. Orange: the range stretched to include a gap from the last close. ATR smooths these lines together with the bars before them.

How it is worked out

True range = the largest of: high − low, |high − last close|, |last close − low|. The | | marks drop any minus sign. The first bar uses high − low. First ATR = the plain average of the first 14 true ranges. After that, ATR = (last ATR × 13 + this bar's true range) ÷ 14.

03 · WHO MADE IT, AND WHY

“understand what serious system developers have learned...that the best system in the book (often overlooked) is the Volatility System concept.”

J. Welles Wilder, interviewed by Stuart McPhee for The Trader's Journal. Reprinted in Technically Speaking (Market Technicians Association), August 2006.

J. Welles Wilder Jr. (1935–2021), 1978. In his book New Concepts in Technical Trading Systems, ATR came with his Volatility System. Wilder built ATR with commodities and daily prices in mind. Commodities often gap or make limit moves, and a plain high-to-low range misses those. The same book also includes RSI, Parabolic SAR and ADX.

He was answering how to get the most out of his 1978 book. The Volatility System introduced ATR.

04 · TWO TERRAINS
Calm
In a calm stretch, bars are short and ATR stays low: about 1.9% of price here.Code picked this after the fact.
In a wild stretch, bars are long and ATR rises: about 5.0% of price here.Code picked this after the fact.

Good for

  • Seeing how much price usually moves in one bar on this market and timeframe.
  • Our Rope Calculator takes an ATR and a multiple. It shows the stop that many ATRs from an entry price.
  • Seeing whether a move has energy. StockCharts says large ranges often come with strong moves in either direction, especially at the start of a move.

Not good for

  • Direction. StockCharts says ATR doesn't indicate price direction, just volatility.
  • Comparing markets with different prices. A $200 stock usually shows a much bigger ATR than a $20 one. ATR % puts them on one scale.
  • Exact matches with other charts or spreadsheets. ATR depends on how far back the calculation starts. Values can differ slightly, most near the start.
Where it fails

ATR measures size, not direction. A wide bar can start a rise or a fall. ATR is also in price units. Its numbers mean little next to a market with a very different price.

05 · TRY IT

On the chart below, find every bar more than twice the ATR. For each one, count the next 10 bars. Did price rise, go sideways or fall? On made-up prices, this shows how to read wide bars. It does not test them.

Every bar more than twice the ATR

  • 0Fell
  • 0Went sideways
  • 0Kept rising
Fell or kept rising: price moved more than 2% down or up after 10 bars. Went sideways: within 2%. Gold shading marks the 10 bars counted.Made-up prices. This shows how to read ATR. It does not show whether it works.
06 · SETTINGS AND MISTAKES
  • Length14 barsThe usual setting.
  • True rangeLargest of 3High − low, high − last close, or last close − low.
  • UnitsPriceATR is in price units, not percent.
  • ATR %(ATR ÷ close) × 100The percent version, for comparing different prices.

Common mistakes

  • Reading a rising ATR as a rising market. It can rise in a fall too.
  • Comparing the ATR of a cheap stock with an expensive one.
  • Forgetting that a fixed price distance covers fewer ATRs in a wild market than in a calm one.
  • Forgetting that gaps count. A quiet bar after a big gap can still have a large true range.
07 · OUR TESTS

We have not measured this on our data yet. We plan a Library test of J. Welles Wilder's 1978 rules, with fees and held-out data.

Sources (4)
  1. StockCharts ChartSchool: Average True Range (ATR)Wilder, commodities and gaps, the book also includes RSI, Parabolic SAR and ADX, true range methods, 14 periods, first TR and first ATR, smoothing, start-point caveat, no direction, absolute values not comparable, large ranges with strong moves in either direction; worked example used to test our code
  2. StockCharts ChartSchool: Average True Range Percent (ATRP)ATR % formula; comparing different prices
  3. J. Welles Wilder, interviewed by Stuart McPhee (The Trader's Journal), reprinted in Technically Speaking, August 2006The Volatility System introduced ATR; his quote
  4. Wikipedia: J. Welles Wilder Jr.Life dates and the 1978 book

Indicators are public ideas. The words here are ours, with credit to each source. Information, not advice.