WOI
Market
S&P 500
7,297.07 -1.47%
Nasdaq 100
26,895.39 -2.59%
Dow Jones
50,760.79 -0.77%
VIX
21.67 +17.39%
Dollar Index (DXY)
104.97 +0.07%
Gold
3,770.90 +2.48%
Oil (WTI)
84.36 -3.02%
BTC/USD
46,199.76 +7.39%

Technical Indicators · Illustrated reference

ATR: range, gaps and changing risk distances

How much price movement has recently occurred, including movement between sessions?

Read, watch or explore. No exercises, scores or required progression.

Animated explanation · synthetic observations

ATR: range, gaps and changing risk distances

The alternate 7-period view uses the same prices with less smoothing. Faster reaction also means less stable distances; neither period bounds future gap loss.
Compare a shorter memory

The alternate 7-period view uses the same prices with less smoothing. Faster reaction also means less stable distances; neither period bounds future gap loss.

Original synthetic atr explanation with calculated outputs, explicit initialization and a comparison view. The complete reference is shown when motion is unavailable. Playback is optional.

In this reference
  1. How much price movement has recently occurred, including movement between sessions?
  2. Inputs and reproducible calculation
  3. A calculation you can reproduce
  4. Read the behavior with price
  5. Initialization and implementation differences
  6. Compare the calculation, not just the shape
  7. What the output cannot establish
  8. A practical reading sequence
  9. Methodology and source notes

How much price movement has recently occurred, including movement between sessions?

Average True Range summarizes the magnitude of recent true ranges. It has price units and no directional sign. A large upward gap and a large downward gap can both increase it. Its analytical purpose is to distinguish a fixed price move occurring in a quiet environment from the same move occurring amid much larger fluctuations. It is not a forecast of the next bar’s maximum loss.

The animation begins with the analytical purpose, then relates the calculated output to the price observations that produced it. Every line is recomputed from the same local synthetic inputs. No historical market dataset or success-rate claim is implied.

Inputs and reproducible calculation

TR(t) = max[H(t)−L(t), |H(t)−C(t−1)|, |L(t)−C(t−1)|]
First-bar convention here: TR(0) = H(0)−L(0)
Initial ATR = arithmetic mean of the first n true ranges
Later ATR(t) = ATR(t−1) + [TR(t)−ATR(t−1)]/n

Specify the observation interval, input field, price adjustment, history length and missing-value policy. A period counts observations, not calendar days. A partial candle can change its close, high, low and volume before completion; the corresponding indicator can change too. This reference treats its synthetic observations as completed.

A calculation you can reproduce

With previous close 100, current high 109 and low 107, the within-bar range is only 2, but true range is max(2,9,7)=9. For a three-observation seed of true ranges 2,3,4, ATR3=3. The next true range 9 updates ATR to 3+(9−3)/3=5. A subsequent true range 2 produces 4. The elevated output persists because the smoothing retains memory of the shock.

Keep full precision through intermediate updates and round only for presentation. Repeatedly rounding the recursive state produces a different series. A numerical difference between implementations should first be traced to input history, seed, smoothing and degenerate-case rules before being called a market signal.

Read the behavior with price

The animation introduces a gap at observation 24 and a wide but non-directional bar at observation 48. Both can raise ATR for different reasons. Quiet observations afterward gradually reduce the smoothed value. The second view changes the smoothing period from 14 to 7 while retaining the same input sequence, making the response/memory tradeoff visible.

A multiple of ATR converts the current range estimate into a price distance. If ATR=2 and the chosen illustrative multiplier is 3, the distance is 6. Doubling ATR doubles that distance with the same multiplier. A fixed loss budget would then support half as many shares before costs if all other assumptions were unchanged. This is dimensional arithmetic, not a recommendation to use a particular multiplier or proof that an ATR-based exit will hold.

Initialization and implementation differences

This implementation includes the first high-minus-low range in its seed. Implementations that begin with the first available previous-close comparison can start one observation later and retain a different seed. Wilder smoothing uses α=1/n; an EMA using α=2/(n+1) is a different calculation. A simple rolling mean is different again because an old shock leaves the window abruptly rather than decaying recursively.

Indicator values may differ across platforms because of calculation methods, initialization, data history, session settings and missing-data handling. The synthetic examples in this guide illustrate the stated calculation method and may differ from live indicator readings.

Compare the calculation, not just the shape

Input event

At observation 24, price gaps. High minus low misses part of the move from the previous close; true range includes that distance.
At observation 24, price gaps. High minus low misses part of the move from the previous close; true range includes that distance.

Later behavior

Ordinary ranges return, but ATR decays gradually. A distance based on ATR therefore changes even when current price barely moves.
Ordinary ranges return, but ATR decays gradually. A distance based on ATR therefore changes even when current price barely moves.

Controlled comparison

The alternate 7-period view uses the same prices with less smoothing. Faster reaction also means less stable distances; neither period bounds future gap loss. Comparison: 7-period smoothing on the same true ranges.
The alternate 7-period view uses the same prices with less smoothing. Faster reaction also means less stable distances; neither period bounds future gap loss. Comparison: 7-period smoothing on the same true ranges.

The comparison view changes the stated input or parameter while retaining the rest of the experiment. It is an optional demonstration, not an exercise. The captions explain the result directly; no answer or prediction is required.

What the output cannot establish

ATR in currency units is not directly comparable across differently priced assets. ATR/close expresses a dimensionless relative range, but is not the standard deviation of returns. A single gap can keep the value elevated long after ordinary ranges quiet down. Missing sessions, corporate-action artifacts and mismatched price adjustment can create false true-range shocks.

A threshold crossing is an observation about the formula. Turning it into a decision requires an entry convention, an exit convention, execution assumptions and a loss budget. Without those, an attractive indicator picture is not an investment strategy. Repeated signals derived from the same prices are also not automatically independent confirmations.

Parameter choices should follow the question being asked, not a search for the smoothest historical chart. A shorter memory can reveal change sooner while reacting to more transient variation. A longer memory can reduce some fluctuations while retaining obsolete conditions. Neither choice removes uncertainty, transaction costs or gap risk.

A practical reading sequence

First identify the price behavior and interval. Next inspect whether the indicator has enough completed observations to be initialized. Then describe the output in its actual units and compare it with the relevant input event. Finally consider a competing explanation, such as a window exit, an unusual volume weight or a change in the reference range. This sequence prevents a familiar line shape from replacing the calculation.

Preserve failed or ambiguous examples when evaluating a rule. Do not move an indicator backward in time to make it appear more responsive, exclude cases with unavailable outputs without describing the exclusion, or use a completed higher-timeframe value before that candle actually ended.

Related: smoothing and initialization, market context, completed and incomplete intervals, risk and adverse execution.

Methodology and source notes

J. Welles Wilder Jr., New Concepts in Technical Trading Systems (1978), original ATR methodology. Implementation comparison: TA-Lib function reference.

Source references checked 3 December 2026. Formulas are explained independently; no external illustration is reproduced. The original synthetic scenarios explain mechanisms and limitations, not validated investment advantages.