Skip to content

๐ŸŒก๏ธ ATR โ€” Average True Range

ATR measures how much an asset typically moves in a single period, in absolute price units, independent of direction. It is the workhorse volatility measure behind most stop-loss and position-sizing rules.


๐Ÿ’ก Financial Meaning

A simple high-minus-low range ignores overnight or gap moves; ATR fixes this by using the True Range, which also accounts for gaps relative to the previous close. Traders place stops at a multiple of ATR (e.g. "2ร—ATR below entry") so that the stop automatically widens in volatile conditions and tightens in calm ones, rather than using a fixed price distance that is too tight in fast markets and too loose in quiet ones.


๐Ÿ”ข Mathematical Formulas

  1. True Range โ€” the largest of three candidates, capturing gaps as well as the intraday range:

    \[ TR_t = \max\big(H_t - L_t,\; \left| H_t - C_{t-1} \right|,\; \left| L_t - C_{t-1} \right|\big) \]
  2. Average True Range โ€” a smoothed moving average (Wilder's SMMA) of the True Range:

    \[ ATR_t = SMMA_N(TR) \]

โš™๏ธ Parameters

Parameter Key Default Description
Period (\(N\)) period 14 Smoothing window applied to the True Range, in sessions.

๐ŸŽ›๏ธ Signal Processing Equivalent โ€” Smoothed Rectified Envelope

Taking \(\max(\cdot)\) of three absolute-difference candidates is a form of full-wave rectification with gap compensation โ€” it converts a signed, direction-agnostic quantity (price range) into a strictly positive "energy" measure. Smoothing that rectified signal with an SMMA (a one-pole IIR low-pass, same structure as the EMA) produces a running envelope estimate, conceptually the same role an envelope detector plays in an AM radio demodulator.

flowchart LR
    H["๐Ÿ“ˆ High"] --> TR["๐ŸŒก๏ธ True Range = max(Hโˆ’L, |Hโˆ’C_prev|, |Lโˆ’C_prev|)"]
    L["๐Ÿ“‰ Low"] --> TR
    Cp["๐Ÿ’น Previous Close"] --> TR
    TR --> SMMA["๐Ÿ” SMMA(N)"]
    SMMA --> ATR["๐ŸŒก๏ธ ATR(t)"]

ATR has no upper bound

Because ATR is expressed in price units, its scale grows with the instrument's price level over time. When comparing volatility across different assets โ€” or the same asset at very different price levels โ€” use NATR instead.

Average True Range on Wikipedia