The Average True Range (ATR) is a core volatility indicator developed by J. Welles Wilder Jr. for commodity trading, but its application is universal across all markets, including Indian equities and indices. Unlike directional indicators like Moving Averages or RSI, the ATR’s sole purpose is to measure the degree of price volatility or the ‘loudness’ of the market. It does not provide any information about price direction.
This lesson will cover the mathematical construction of the ATR, its practical calculation, interpretation, and its primary applications in a trading system for setting risk parameters like stop losses and position size.
The ATR indicator is a graphical representation of how much an asset’s price has moved, on average, over a specified number of periods. In simple terms, it measures the average size of the price candles, including any overnight or weekend gaps.
Crucially, the ATR is non-directional. A high ATR can be seen during a powerful, trending bull run, a panic-driven crash, or a choppy, violent sideways market. It only quantifies the magnitude of price movement, not its direction or trend quality.
The ATR is based on the concept of the **True Range (TR)**, which is calculated for each period. The TR is the greatest of the following three values:
In mathematical terms:
The ATR is then a smoothed moving average of the TR values, typically calculated over 14 periods. The calculation proceeds in two steps.
The first ATR value is a simple arithmetic mean of the first 14 TR values.
After the initial value, all subsequent ATR values are calculated using Wilder’s exponential smoothing method. This method gives more weight to recent values.
This ensures the ATR value is a continuously updated, smoothed measure of volatility.
Let’s calculate the TR and a 3-period ATR for a hypothetical stock to understand the mechanics.
| Day | High | Low | Close | TR Calculation | True Range (TR) |
|---|---|---|---|---|---|
| 1 | 105 | 101 | 104 | H-L = 4 | 4 |
| 2 | 108 | 103 | 107 | max[(108-103), abs(108-104), abs(103-104)] = max[5, 4, 1] | 5 |
| 3 | 106 | 100 | 101 | max[(106-100), abs(106-107), abs(100-107)] = max[6, 1, 7] | 7 |
| 4 | 112 | 105 | 111 | max[(112-105), abs(112-101), abs(105-101)] = max[7, 11, 4] | 11 |
The ATR is plotted as a single line in a panel below the main price chart.

As per the chart above, the ATR for Bank Nifty on the 30-minute timeframe is 84.55. This means that over the last 14 periods (14 x 30 minutes), the index has moved an average of 84.55 points per half-hour candle. This number provides a baseline expectation for volatility. If market conditions remain similar, one might anticipate price swings of this magnitude. It is not a prediction, but a statistical measure of recent behaviour.
The most robust use of ATR is for risk management, not for generating entry signals.
This is the primary and most effective use of the ATR. A common mistake is using tight, fixed-point or percentage-based stop losses. These do not adapt to changing market volatility. A stop loss that is appropriate in a quiet market will be too tight in a volatile one, leading to premature stop-outs from random market noise.
ATR-based stops solve this. A multiple of the ATR is used to set the stop loss distance from the entry price. A common multiple is 2x ATR.
For example, if you go long on BANKNIFTY at 45,000 and the current 14-period ATR is 85, a 2x ATR stop loss would be placed at 45,000 – (2 * 85) = 44,830. This gives the trade room to breathe and absorb the normal volatility of 170 points without getting stopped out by noise.

While less common, ATR can also be used to set realistic profit targets based on risk-reward ratios. If your stop loss is set at 2x ATR, you might set a profit target for a 1:1.5 risk-reward ratio at 3x ATR from your entry.
This keeps profit expectations grounded in the market’s recent volatility.
ATR is critical for volatility-adjusted position sizing. The goal is to risk the same rupee amount on every trade.
In a high volatility environment (high ATR), your stop loss will be wider in points. To maintain constant rupee risk, your position size must be smaller. Conversely, in a low volatility market (low ATR), your stop loss will be tighter, allowing for a larger position size.
The standard setting for ATR is 14 periods. Adjusting this will change its sensitivity.


There is no “best” setting; it must be aligned with your trading system’s logic and holding period. A short-term scalper might prefer a more responsive ATR, while a swing trader might prefer a smoother, longer-term ATR. Any changes should be rigorously backtested.
The utility of ATR is consistent across timeframes, but its value will differ significantly.