Academy · · 11 min · By Álvaro García
ATR Indicator (Average True Range): Formula & Stop Loss
The ATR indicator measures an asset's average volatility. Step-by-step formula, stock and forex examples, and how to use it for stop loss and sizing.

In short: the ATR indicator (Average True Range) measures how far an asset moves on average per candle, without saying which way. It is calculated by averaging the "true range" of the last 14 periods, and it is used mainly to place a stop loss at a distance that respects normal price noise and to size the position.
The ATR indicator measures volatility: it tells you how many euros, dollars or pips an asset covers in a normal session. It does not say whether price will rise or fall, but it answers a key question for every trader: how far away should I put my stop so that an ordinary move does not trigger it?
What is the ATR indicator (Average True Range)?
The ATR (Average True Range) is a volatility indicator created by J. Welles Wilder Jr. and published in 1978 in his book New Concepts in Technical Trading Systems. It averages the true range of each candle, normally over the last 14 periods, and is expressed in the same unit as the price.
Wilder designed it for commodities, where gaps between sessions were common. That is why it does not simply subtract the low from the high: it also takes the previous close into account, so a gap counts as volatility. Today it is available on every platform (TradingView, MetaTrader, ProRealTime) and applies equally to stocks, indices, forex pairs and cryptocurrencies.
What the ATR is not
- It is not a directional indicator. A rising ATR can accompany a sharp drop just as easily as a sharp rally.
- It is not a percentage. An ATR of 2 means 2 euros (or 2 dollars, or 2 points), not 2%.
- It does not predict. It describes recent volatility; if news hits tomorrow, the range can multiply.
ATR formula: how to calculate it step by step
The calculation has two steps: first the true range (TR) of each candle, then its smoothed average.
Step 1: the true range (TR)
The true range of a candle is the largest of these three values:
- Today's high − today's low.
- Absolute value of (today's high − yesterday's close).
- Absolute value of (today's low − yesterday's close).
If there is no gap, the first value almost always wins. If price opens far from the previous close, the second or third wins, and that is how the gap enters the measurement.
Step 2: Wilder's average
The first time, the 14-period ATR is the simple average of the first 14 TR values. From then on it is updated with Wilder's smoothing:
Today's ATR = (yesterday's ATR × 13 + today's TR) / 14
This smoothing is equivalent to an exponential moving average (EMA) that gives the new data point a weight of 1/14, slower than the usual exponential moving average (which would use 2/15). That is why some platforms show slightly different values if they use another type of average; check which one yours applies.
ATR calculation example
Let's look at an illustrative example with a fictional stock that closed yesterday (day 0) at €50.00. The data is invented to explain the calculation and is not real market prices.
| Day | High | Low | Close | High − low | |High − prev. close| | |Low − prev. close| | TR |
|---|---|---|---|---|---|---|---|
| 1 | 51.20 | 49.60 | 50.80 | 1.60 | 1.20 | 0.40 | 1.60 |
| 2 | 52.00 | 50.90 | 51.70 | 1.10 | 1.20 | 0.10 | 1.20 |
| 3 | 49.80 | 48.50 | 49.10 | 1.30 | 1.90 | 3.20 | 3.20 |
Look at day 2: the candle's range is €1.10, but the TR is €1.20 because the high was €1.20 above the previous close. And on day 3 the stock opened with a gap down: the candle measures only €1.30, but the TR is €3.20, because the low (48.50) was €3.20 below the close of day 2 (51.70). That is the move anyone holding the stock actually suffered.
For step 2 we need a previous ATR. Let's assume, as a hypothetical figure, that the 14-day ATR calculated at the close of day 2 (using that day and the 13 before it) was €1.50. With the €3.20 TR of day 3:
ATR = (1.50 × 13 + 3.20) / 14 = (19.50 + 3.20) / 14 = 22.70 / 14 = €1.62
A single gap day lifts the ATR from €1.50 to €1.62, 8% higher. If the stock trades at €49.10, that ATR equals 3.3% of the price (1.62 / 49.10), a useful figure for comparing assets with very different prices.
How to use the ATR to set your stop loss
This is its most widespread use. The idea: if the asset moves €1.62 a day on average, a stop €0.50 from your entry will be hit by normal noise, even though your analysis has not failed. That is why the stop is placed at a multiple of the ATR:
- Buy (long): stop = entry price − (ATR × multiplier).
- Sell (short): stop = entry price + (ATR × multiplier).
With our example, entry at €49.10 and an ATR of €1.62:
| Multiplier | Distance | Stop (buy) | Typical profile |
|---|---|---|---|
| 1.5 × ATR | €2.43 | €46.67 | Short trades, more stop-outs |
| 2 × ATR | €3.24 | €45.86 | Common starting point |
| 3 × ATR | €4.86 | €44.24 | Trend following, more room for price |
There is no single correct multiplier. The higher it is, the less often the stop is hit by noise, but the larger the loss per trade if it is hit. Test the distance on your own history and combine it with the chart structure: if there is a clear support level slightly below the ATR stop, it makes sense to place the stop under that support. You can calculate the levels with our stop loss and take profit calculator.
An ATR stop does not protect you from gaps
A stop is an order that is executed at the first available price. If the asset opens below it, it is filled lower than planned. We explain this in more detail in our guide on why your stop fails on a gap. The ATR helps you avoid placing the stop too close, but it does not remove that risk.
ATR and position size
The second major use of the ATR is deciding how many shares or lots to buy so that the maximum loss is always the same, even when volatility changes. The formula is the position-size formula, with the stop distance measured in ATR:
Units = (capital × % risk) / (ATR × multiplier)
Example: a €10,000 account risking 1% per trade (€100).
- Stop at 2 × ATR (€3.24): 100 / 3.24 = 30.9 → 30 shares. Exposure: 30 × 49.10 = €1,473. Loss if the stop is hit: 30 × 3.24 = €97.20.
- Stop at 3 × ATR (€4.86): 100 / 4.86 = 20.6 → 20 shares. Exposure: €982. Loss if the stop is hit: 20 × 4.86 = €97.20.
The risk is identical in both cases; what changes is the size. When volatility rises, the ATR grows and the formula makes you buy less. That is exactly what you want on volatile market days. Run the numbers with the position size calculator.
Forex example: lots from the ATR in pips
Take a $10,000 account risking 1% ($100). EUR/USD has a daily ATR of 65 pips (illustrative figure) and you set the stop at 1.5 × ATR: 97.5 pips. On EUR/USD, a standard lot is worth about $10 per pip, so:
Lots = 100 / (97.5 × 10) = 0.103 → 0.10 lots. Loss if the stop is hit: 0.10 × 97.5 × 10 = $97.50.
If tomorrow the ATR rises to 90 pips (a 135-pip stop), the same rule gives 100 / 1,350 = 0.074 → 0.07 lots. Check the pip value of your pair with the pip calculator.
A dynamic ATR stop: the Chandelier Exit
The ATR also works for a stop that follows price (a trailing stop). The best known is the Chandelier Exit, developed by Charles Le Beau and popularized by Alexander Elder, according to StockCharts. According to the description from Barchart, with its default parameters:
- Longs: highest high of the last 22 periods − 3 × ATR(22).
- Shorts: lowest low of the last 22 periods + 3 × ATR(22).
With our example, if the high of the last 22 sessions were €52.00 and the ATR €1.62, the stop would sit at 52.00 − 4.86 = €47.14. If price makes new highs, the stop rises with it; if price falls, the stop does not move down. Wilder himself had already proposed a similar system in 1978, his "volatility stops," which according to Incredible Charts used a 7-day ATR with a multiple of 3.
ATR in forex, stocks and cryptocurrencies
| Market | ATR unit | Example reading | What to watch |
|---|---|---|---|
| Forex | Pips | ATR of 0.0065 on EUR/USD = 65 pips a day | Rises on macro data days and central bank decisions |
| Stocks | Euros or dollars | ATR of €1.62 on a €49.10 stock = 3.3% | Quarterly earnings and opening gaps |
| Indices | Points | ATR of 300 points on a 20,000 index = 1.5% | Rises as markets fall |
| Crypto | Dollars | 24/7 market: the daily ATR is usually much larger in % terms | Cascading liquidations of leveraged positions |
To compare assets with each other, divide the ATR by the price (ATR in %). That shows you that a stock moving €3 a day can be less volatile than one moving €1, if the first costs €300 and the second €20. You can see the volatility of the main markets in our volatility tool.
When volatility spikes: a recent case
On December 4, 2026, at 1:01 p.m. ET, Nvidia was down 8.17%, AMD 8.90%, Broadcom 8.65% and CoreWeave 12.23%, according to StockTitan, as we covered in why the Nasdaq is down today. These are intraday figures, not closing prices, and they are not calculated ATR values, but they illustrate the point: an 8% move in a single day far exceeds the usual range of a large company, and it plays out just as in our example: the ATR jumps, stops based on it move further away, and the position-size formula reduces the units. The ATR is designed to reflect that change instead of relying on a fixed distance.
How to add ATR to TradingView and MetaTrader
- TradingView: under "Indicators," search for "Average True Range." By default it uses 14 periods and, depending on the version, Wilder's smoothing (which the platform calls RMA); in the settings you can choose another type of average.
- MetaTrader 4 and 5: go to "Insert" → "Indicators" → "Oscillators" → "Average True Range." Depending on the version, its standard indicator may average the TR values with a simple moving average, so its readings can differ somewhat from those on TradingView.
- Timeframe: the ATR is calculated on the candles of the chart you have open. For the stop on a multi-day trade, look at the ATR on the daily chart.
| Style | Typical chart | Period | Most-cited stop multiplier |
|---|---|---|---|
| Intraday | 5 to 15 minutes | 14 | 1 to 1.5 × ATR |
| Swing (days or weeks) | Daily | 14 | 1.5 to 2.5 × ATR |
| Trend following | Daily or weekly | 20 to 22 | 3 × ATR (Chandelier) |
These are common starting points, not rules: no multiplier guarantees the maximum loss, because a stop can be filled worse than its price if the market gaps.
Common mistakes with the ATR
- Using it to find direction. A high ATR does not tell you whether to buy or sell; only that price is moving a lot.
- Mixing timeframes. The ATR of 5-minute candles is no use for setting the stop on a multi-day trade. Use the one from the chart on which you make the decision.
- Placing the stop at 1 × ATR by default. At that distance, normal noise will stop out many valid trades.
- Forgetting position size. Moving the stop further away without reducing the units multiplies the possible loss.
- Trusting it ahead of an event. Before an earnings report or a rate decision, the ATR of the previous days underestimates the possible move.
- Comparing absolute ATR values. An ATR of 5 is not "more volatile" than one of 2 if the prices are very different: use the ATR in %.
ATR summary table
| Concept | Summary |
|---|---|
| What it measures | Average volatility per candle, in the unit of the price |
| Creator | J. Welles Wilder Jr., 1978 |
| Standard period | 14 (22 in the Chandelier Exit) |
| TR formula | Largest of: high − low, |high − prev. close|, |low − prev. close| |
| Smoothing | (previous ATR × 13 + TR) / 14 |
| Main use | Stop distance and position size |
| Limitation | It shows no direction and does not anticipate news |
The ATR works best combined with other trend or volatility indicators, such as Bollinger Bands. If you trade CFDs or use leverage, remember that a move of several ATRs can use up a good part of your margin: read our risk warning.
Frequently asked questions
What does a high ATR mean?
That the asset is moving a lot on each candle compared with its own history. It usually happens in sharp sell-offs, after news or when price breaks out of a range. It does not tell you whether price will rise or fall.
Which ATR period is better, 14 or 20?
14 is the one Wilder proposed and the default on almost every platform. Shorter periods react sooner to changes in volatility; longer ones, such as 20 or 22, are steadier. What matters is to always use the same one and to test it on your strategy.
How many ATRs should I use for my stop loss?
There is no universal figure. Between 1.5 and 3 times the ATR is the most-cited range: the low end for short trades and the high end for trend following. Always adjust the position size to that distance so that the risk in euros does not change.
Does the ATR work for cryptocurrencies?
Yes, it is calculated the same way. Because the crypto market trades 24 hours a day, the "close" is the candle's close according to your platform's time settings. Its ATR as a percentage is usually much higher than for stocks or forex pairs, so stops and position sizes need to be adjusted.
Why does my platform show a different ATR?
Because it may use another type of average (simple, exponential or Wilder's), another period, or candles with different closing times. Check the indicator settings before comparing values.