
Average True Range (ATR) is a volatility indicator developed by J. Welles Wilder Jr. It's essentially the average True Range over a period (usually 14 bars). True Range takes into account the current high-low range as well as the gap between the previous close and the current range.
The easiest way to calculate a day's price range is to subtract the low from the high. However, that doesn't account for the gap between the previous day's close and the current day's range. J. Welles Wilder Jr. developed the concept of the True Range and the Average True Range (ATR) to measure volatility.
ATR is a measure of volatility which is calculated by taking the average of the True Range values over a given period. It does not indicate the direction of price movement. You can therefore use it to gauge the size of moves, regardless of whether price is going up or down.
A high ATR in relation to its historical values indicates the instrument is experiencing wider price ranges. A low ATR would indicate narrower price ranges. ATR measures the magnitude of price movement and tells you nothing about whether the market is trending or consolidating.
ATR measures the average price movement over a specified period. The indicator first calculates the "True Range", which combines today’s high and low prices with the gap from the previous day’s close. Here are the components of the ATR:
True Range (TR): The greatest of the following three values:
Average True Range (ATR): A smoothed average of True Range values over a selected period, commonly 14 bars. Wilder's smoothing method is generally used to calculate subsequent ATR values.
This allows ATR to take into account the price gap between sessions as well as the high-low range of the current session. It therefore gives a more complete picture of the price range than the session’s high-low alone.
Calculating ATR involves two steps. First, calculate the True Range.
TR = the maximum of
Then the ATR is calculated using Wilder’s smoothing, which is not a simple moving average. The first ATR is the simple average of the first 14 TR values. After that, ATR = (previous ATR × 13 + current TR) ÷ 14. The default period is 14.

Here is a worked example on Reliance Industries (NSE) daily data. August 20 is the base day (PC = previous close). The following example uses historical daily OHLC data for Reliance Industries. The dates and data source should be specified for reference and reproducibility.
|
Date |
High |
Low |
Close |
H − L |
abs(H − PC) |
abs(L − PC) |
TR |
ATR(14) |
|
20-Aug |
1,316.50 |
1,307.00 |
1,313.20 |
|||||
|
21-Aug |
1,316.00 |
1,308.00 |
1,316.00 |
8.00 |
2.80 |
5.20 |
8.00 |
|
|
24-Aug |
1,320.00 |
1,302.40 |
1,309.80 |
17.60 |
4.00 |
13.60 |
17.60 |
|
|
25-Aug |
1,317.10 |
1,300.00 |
1,317.00 |
17.10 |
7.30 |
9.80 |
17.10 |
|
|
26-Aug |
1,315.60 |
1,298.00 |
1,298.00 |
17.60 |
1.40 |
19.00 |
19.00 |
|
|
27-Aug |
1,308.40 |
1,282.20 |
1,282.20 |
26.20 |
10.40 |
15.80 |
26.20 |
|
|
28-Aug |
1,291.80 |
1,280.00 |
1,287.00 |
11.80 |
9.60 |
2.20 |
11.80 |
|
|
31-Aug |
1,297.60 |
1,271.00 |
1,277.00 |
26.60 |
10.60 |
16.00 |
26.60 |
|
|
01-Sep |
1,311.80 |
1,280.00 |
1,309.00 |
31.80 |
34.80 |
3.00 |
34.80 |
|
|
02-Sep |
1,321.90 |
1,293.10 |
1,313.10 |
28.80 |
12.90 |
15.90 |
28.80 |
|
|
03-Sep |
1,316.80 |
1,302.50 |
1,302.50 |
14.30 |
3.70 |
10.60 |
14.30 |
|
|
04-Sep |
1,333.00 |
1,304.10 |
1,322.00 |
28.90 |
30.50 |
1.60 |
30.50 |
|
|
07-Sep |
1,324.20 |
1,301.90 |
1,309.50 |
22.30 |
2.20 |
20.10 |
22.30 |
|
|
08-Sep |
1,306.80 |
1,288.00 |
1,294.90 |
18.80 |
2.70 |
21.50 |
21.50 |
|
|
09-Sep |
1,294.70 |
1,277.20 |
1,279.00 |
17.50 |
0.20 |
17.70 |
17.70 |
21.16 |
|
10-Sep |
1,285.30 |
1,266.30 |
1,274.00 |
19.00 |
6.30 |
12.70 |
19.00 |
21.00 |
|
11-Sep |
1,267.40 |
1,253.00 |
1,257.50 |
14.40 |
6.60 |
21.00 |
21.00 |
21.00 |
|
15-Sep |
1,259.40 |
1,235.30 |
1,235.30 |
24.10 |
1.90 |
22.20 |
24.10 |
21.22 |
|
16-Sep |
1,255.00 |
1,240.00 |
1,240.00 |
15.00 |
19.70 |
4.70 |
19.70 |
21.12 |
|
17-Sep |
1,253.40 |
1,238.50 |
1,243.90 |
14.90 |
13.40 |
1.50 |
14.90 |
20.67 |
|
18-Sep |
1,247.30 |
1,226.40 |
1,226.40 |
20.90 |
3.40 |
17.50 |
20.90 |
20.69 |
First ATR (September 9) = sum of the first 14 TR values ÷ 14 = 296.20 ÷ 14 = 21.16.
Next, ATR (September 10) = (Previous ATR × 13 + Current TR) ÷ 14. Using the unrounded previous ATR value, the result is approximately ₹21.00.
Notice the TR on September 1 (34.80) comes from the gap versus the previous close, not from that day's own high-low range. This is why TR includes the previous close.
ATR is used to determine whether the market is volatile. Here is an example of Nifty on a 30-minute timeframe.

As we can see from the chart, Nifty was range-bound and moving sideways at the beginning. This led to ATR being flat. However, when Nifty suddenly fell, ATR also shot up, suggesting high volatility.
Even though Nifty fell, ATR rose because it measures volatility, not direction.
Here is a quick comparison between different indicators:
|
Feature |
ATR |
Bollinger Bands |
Standard Deviation |
|
Measures |
Price volatility |
Volatility and relative price levels |
Statistical dispersion |
|
Directly indicates trend direction |
No |
No |
No |
|
Best For |
Stop-loss placement and position sizing |
Volatility analysis and potential breakout identification |
Measuring price dispersion |
|
Ease of Interpretation |
Easy |
Moderate |
Moderate |
ATR has no direction. It only confirms that volatility is expanding. Direction comes from price action, here a breakout from a 20-day range. One popular strategy is the volatility breakout strategy. This is usually done on a daily timeframe. Here are the rules:
For short positions,
Note: A stop-loss order does not guarantee execution at the specified price. Gaps, slippage and liquidity conditions can result in execution at a less favourable price.
Option buyers need to be careful when using this strategy.
ATR measures the underlying’s historical price-range volatility, whereas implied volatility (IV) drives the option premium. The two can move in different directions.
The underlying can move in the expected direction while IV falls, which can reduce the option premium and negatively impact the trade. This is particularly relevant around events such as earnings when you can see the IV come down dramatically post-event (the so-called IV crush).
Buyers of options therefore need to be mindful of both the volatility of the underlying and the IV of the option prior to entering a trade.
Another major application of ATR is in position sizing. Since ATR measures a stock’s volatility, you can place the stop-loss based on it. Let us take an example using the Reliance data above. Suppose you buy at the September 18 close of ₹1,226.40. The 14-day ATR is ₹20.69, which we round to ₹20.70. We use 2 × ATR as the stop-loss distance.
Stop-Loss Distance = 2 × ₹20.70 = ₹41.40
Position sizing: If we are willing to risk ₹10,000 per trade, quantity = ₹10,000 ÷ ₹41.40 = 241 shares. Planned risk = 241 × ₹41.40 = ₹9,977, which is within the ₹10,000 budget.
The capital required to purchase these shares would be 241 × ₹1,226.40 = ₹2,95,562.40, or approximately ₹2.96 lakh, excluding applicable charges. This shows that position sizing based on risk must be considered alongside available trading capital.
Trailing the stop: A stop should only move toward profit, never away from it. Suppose the price rises to ₹1,290 and ATR is still ₹20.70. The new stop candidate is ₹1,290 − ₹41.40 = ₹1,248.60. That is higher than ₹1,185.00, so we move the stop up. The trade is now protected above the entry price.
If ATR rises: Suppose ATR rises to ₹30 while the price is flat at ₹1,226.40. The new candidate stop is ₹1,226.40 − ₹60 = ₹1,166.40, which is lower than our ₹1,185.00 stop. We do not lower the stop on an open trade, so the stop stays at ₹1,185 and the risk stays at ₹9,977.
The higher ATR affects the position sizing of new trades. Had we entered when ATR was ₹30, the stop distance would be 2 × ₹30 = ₹60 and the quantity = ₹10,000 ÷ ₹60 = 166 shares. So when volatility rises, the position size shrinks, and the risk stays at ₹10,000.
ATR offers several benefits to traders:
ATR has its limitations. It does not indicate market direction and is a lagging indicator, as it's based purely on historical price.
It is also in absolute price terms, so you can’t really compare ATR values across instruments which have very different price levels. It doesn't in any way predict future volatility or future price action.
ATR is therefore not a system in itself and should be used alongside other indicators.
The Average True Range (ATR) is one of the most commonly used volatility indicators. It doesn't tell you anything about the direction of price, it's simply a measure of volatility.
It is often used with other technical indicators to set stop-loss levels and determine position sizes. It should never be used as a standalone signal, though, as it's based on past price action and will not tell you whether your losses will stay within your predetermined limits.