Where should you put your stop-loss? Too tight, and normal price noise knocks you out of a good trade. Too wide, and one losing trade takes a big bite out of your account.
The answer depends on how much the market usually moves, and that is exactly what the ATR indicator (Average True Range) measures. ATR doesn’t tell you whether price will go up or down. It tells you how big the typical move is, so you can set stops, size positions and choose indicator settings that fit the market you are trading.
In this guide you will learn the full ATR formula with a step-by-step example, how to read it, how to choose settings, and four practical ways traders use ATR: stop-losses, trailing stops, position sizing and volatility filters.
ATR Quick Facts
| Feature | Detail |
|---|---|
| Creator | J. Welles Wilder Jr. |
| Year | 1978 |
| Indicator type | Volatility indicator (separate panel below the chart) |
| Measures | Average size of each bar’s movement, including gaps |
| Default settings | 14 periods, Wilder’s smoothing (RMA) |
| Best markets | All: stocks, indices, F&O, forex, crypto, commodities |
| Best timeframes | All |
Origin and History
The Average True Range was introduced by J. Welles Wilder Jr. in his 1978 book New Concepts in Technical Trading Systems, the same book that introduced the RSI indicator and the ADX.
Wilder developed ATR while working with commodity markets, where prices often gap: they open far above or below the previous close. A simple “High − Low” range misses these gaps. Wilder’s True Range fixes this by also measuring the distance from the previous close, so a gap is counted as part of the move.
Today, ATR is one of the most widely used building blocks in technical analysis. The Supertrend, Keltner Channels and many trailing-stop tools are all built on it.
The ATR Formula, Step by Step
Step 1: True Range (TR)
For each bar, True Range is the largest of these three values:
1. Current High − Current Low
2. |Current High − Previous Close|
3. |Current Low − Previous Close|
The vertical bars | | mean “absolute value”: ignore the minus sign.
- Case 1 is the normal bar range.
- Case 2 is largest when price gaps up above the previous close.
- Case 3 is largest when price gaps down below the previous close.
Step 2: The first ATR value
The first ATR is a simple average of the first 14 True Ranges:
First ATR = (TR₁ + TR₂ + … + TR₁₄) ÷ 14
Step 3: Wilder’s smoothing for every bar after that
ATR today = (ATR yesterday × 13 + TR today) ÷ 14
In general, for a length n: ATR today = (ATR yesterday × (n − 1) + TR today) ÷ n. This is Wilder’s smoothing, called RMA on TradingView. It reacts more slowly than a simple average, so one unusual bar doesn’t change ATR too much.
Worked example (ATR 14)
The previous close before Bar 1 was 101.0.
| Bar | High | Low | Close | High − Low | |High − Prev Close| | |Low − Prev Close| | True Range |
|---|---|---|---|---|---|---|---|
| 1 | 102.4 | 100.1 | 101.8 | 2.3 | 1.4 | 0.9 | 2.3 |
| 2 | 103.0 | 101.2 | 102.5 | 1.8 | 1.2 | 0.6 | 1.8 |
| 3 | 102.9 | 100.8 | 101.1 | 2.1 | 0.4 | 1.7 | 2.1 |
| 4 | 101.9 | 99.6 | 100.2 | 2.3 | 0.8 | 1.5 | 2.3 |
| 5 | 101.5 | 99.9 | 101.2 | 1.6 | 1.3 | 0.3 | 1.6 |
| 6 | 102.8 | 100.9 | 102.4 | 1.9 | 1.6 | 0.3 | 1.9 |
| 7 | 103.6 | 102.0 | 103.1 | 1.6 | 1.2 | 0.4 | 1.6 |
| 8 | 105.9 | 104.2 | 105.5 | 1.7 | 2.8 | 1.1 | 2.8 (gap up) |
| 9 | 106.2 | 104.6 | 104.9 | 1.6 | 0.7 | 0.9 | 1.6 |
| 10 | 105.4 | 103.5 | 103.9 | 1.9 | 0.5 | 1.4 | 1.9 |
| 11 | 104.8 | 102.9 | 104.4 | 1.9 | 0.9 | 1.0 | 1.9 |
| 12 | 105.7 | 104.0 | 105.3 | 1.7 | 1.3 | 0.4 | 1.7 |
| 13 | 106.4 | 104.9 | 106.0 | 1.5 | 1.1 | 0.4 | 1.5 |
| 14 | 106.9 | 105.1 | 105.4 | 1.8 | 0.9 | 0.9 | 1.8 |
| 15 | 107.6 | 105.6 | 107.2 | 2.0 | 2.2 | 0.2 | 2.2 |
Look at Bar 8: its High − Low was only 1.7, but it opened with a gap above the previous close (103.1). The distance from the previous close to the high was 2.8, so True Range = 2.8. A plain High − Low range would have missed 1.1 points of real movement.
Step 2: First ATR (Bars 1–14)
– Sum of the 14 True Ranges = 26.8
– First ATR = 26.8 ÷ 14 = 1.91
Step 3: Next ATR (Bar 15)
– ATR = (1.9143 × 13 + 2.2) ÷ 14
– ATR = (24.886 + 2.2) ÷ 14 = 27.086 ÷ 14 = 1.93
So on Bar 15, this market moves about 1.93 points per bar on average.

Platform differences
| Setting | TradingView default | Other options |
|---|---|---|
| Length | 14 | Any |
| Smoothing | RMA (Wilder’s) | SMA, EMA, WMA |
Changing the smoothing from RMA to SMA or EMA gives slightly different values. If your ATR doesn’t match another platform, check the smoothing type first.
ATR% (comparing different markets)
ATR is measured in price units, so an ATR of 1.93 means very different things for a ₹100 stock and a ₹10,000 stock. To compare, divide by price:
ATR% = ATR ÷ Close × 100
In our example: 1.93 ÷ 107.2 × 100 = 1.8%. The stock moves about 1.8% per bar on average.
How to Read the ATR Indicator
- Rising ATR: bars are getting bigger, so volatility is increasing. This often happens during sharp moves, breakouts and sell-offs.
- Falling ATR: bars are getting smaller and the market is calming down. Quiet periods often come before bigger moves.
- High ATR does not mean bullish or bearish. ATR rises in strong rallies and in panic sell-offs. It has no direction.
- ATR is relative. Compare today’s ATR with its own recent history, or use ATR% to compare different markets.

ATR Indicator Settings Deep Dive
| Parameter | Default | Raise it | Lower it |
|---|---|---|---|
| Length | 14 | Smoother ATR, slower to react to sudden volatility | Faster ATR, jumps after one or two big bars |
| Smoothing | RMA | — | SMA reacts more evenly; EMA reacts faster than RMA |
Starting points by trading style (to test, not proven best values):
| Trading style | Typical timeframe | ATR length | Common stop distance |
|---|---|---|---|
| Scalping | 1–5 min | 7–14 | 1–1.5 × ATR |
| Intraday | 5–15 min | 14 | 1.5–2 × ATR |
| Swing | 1H–Daily | 14 | 2–3 × ATR |
| Positional | Daily–Weekly | 14–21 | 3–4 × ATR |
How Traders Use ATR
These are educational examples, not recommendations. Test any rule on your own market and timeframe first.
Use 1: ATR stop-loss
Instead of a fixed number of points, place the stop a multiple of ATR away from your entry. This gives the trade room to breathe in volatile markets and keeps stops tighter in calm ones.
Long stop = Entry − (Multiplier × ATR)
Short stop = Entry + (Multiplier × ATR)
Example: buying at 107.20 with ATR 1.93 and a multiplier of 2:
– Stop distance = 2 × 1.93 = 3.87
– Stop-loss = 107.20 − 3.87 = 103.33
- Works best: when the multiplier matches your timeframe (see the settings table).
- Fails when: news or a gap moves price far beyond the stop. ATR describes normal moves, not unexpected events.
Use 2: ATR trailing stop
A trailing stop moves with price to protect profit. A popular version is the Chandelier Exit, developed by Chuck LeBeau and made widely known by Alexander Elder’s book Come Into My Trading Room (2002). For a long trade, it “hangs” the stop a multiple of ATR below a recent high:
Long trailing stop = Highest High (last n bars) − (Multiplier × ATR)
The most common setting is 22 bars and 3 × ATR. LeBeau’s original idea used the highest high since you entered the trade. Most charting versions use the highest high of the last 22 bars instead, and that line can move down when ATR rises or an old high drops out of the window. If you use it as your stop, many traders only ever move their own stop up, never down. The Supertrend uses a similar idea with a built-in “ratchet”, based on the bar’s midpoint instead of the highest high. The UT Bot Alerts indicator on TradingView uses the same idea, with Buy and Sell labels when price closes through the stop.
- Fails when: a strong trend has a deep pullback; the trailing stop can exit before the trend resumes.
Use 3: Position sizing with ATR
ATR helps you decide how many shares or units to buy, so every trade risks a similar amount of money.
Position size = Amount you are willing to risk ÷ Stop distance
Example: a $10,000 account risking 1% per trade:
– Risk amount = 1% × $10,000 = $100
– Stop distance = 2 × ATR = 2 × 1.93 = 3.87
– Position size = $100 ÷ 3.87 = 25.8 → 25 shares (round down)
If ATR doubles, the stop distance doubles and the position size halves, so the money at risk stays about the same. The same method works in rupees or any other currency.
Use 4: Volatility filter
Some traders only take breakout trades when ATR is rising (the market is “waking up”), or avoid trading when ATR is extremely high after big news. This doesn’t give entries on its own; it decides when other signals are worth taking.
Confluence: What to Pair With ATR
| Pair with | Why it helps |
|---|---|
| Supertrend | An ATR-based trailing stop with built-in trend direction. See also Best Supertrend Settings. |
| Keltner Channels | Turns ATR into a channel around an EMA, showing when price moves further than normal. |
| ADX | ATR shows how much price moves; ADX shows whether that movement is a trend. |
| Any entry signal (e.g., RSI, breakouts) | ATR handles stops and position size; the other tool handles entries. |
Redundant pairings to avoid: ATR with the Standard Deviation indicator or Bollinger BandWidth. All three measure volatility. Pick one for sizing and stops.
Limitations and Common Mistakes
- Using ATR for direction. ATR rises in rallies and in crashes. It never tells you which way to trade.
- Comparing raw ATR across markets. An ATR of 50 on Nifty and an ATR of 2 on a stock are not comparable. Use ATR%.
- Forgetting the timeframe. ATR on a 5-minute chart is much smaller than ATR on a daily chart. Use the ATR from the chart you trade.
- Stops too tight. A stop at 0.5 × ATR is within normal noise on most markets and gets hit often.
- Ignoring gaps and news. ATR measures typical movement. Results announcements, budget days and weekend gaps can move price far more than ATR suggests.
- Lag after volatility changes. Wilder’s smoothing makes ATR slow to adjust after a sudden change in volatility.
Frequently Asked Questions
What is a good ATR value?
There is no single good value. ATR depends on the market, price level and timeframe. Compare ATR with its own recent history, or use ATR% to compare markets.
What is the best ATR indicator setting?
The default of 14 periods works for most traders. Shorter lengths (7–10) react faster; longer lengths (20+) are smoother. The stop multiplier usually matters more than the length.
How do I use ATR for a stop-loss?
Multiply ATR by a number that fits your timeframe (often 1.5–3) and place the stop that distance from your entry: below it for longs, above it for shorts.
Does a high ATR mean the price will go up?
No. ATR measures the size of price moves, not their direction. High ATR can appear in strong rallies and in sharp sell-offs.
What is the difference between ATR and True Range?
True Range is the movement of a single bar, including any gap. ATR is the smoothed average of True Range over a number of bars, usually 14.
Does ATR repaint?
No. ATR values on closed bars are fixed. On the current open bar, ATR changes with price until the bar closes, like any indicator.
Keep Learning
ATR is the engine inside several popular indicators. See it in action in the Supertrend indicator and Keltner Channels, and compare it with the standard-deviation approach of Bollinger Bands. See how ATR fits with Bollinger Bands and Keltner Channels in our Volatility Indicators guide. Turn an ATR stop into a position size with our free Position Size Calculator.
Want practical indicator guides in your inbox? Join the IndicatorHQ newsletter. Subscribers will also get our free Indicator Settings Cheat Sheet when it launches.
How we checked this guide
- Method: True Range and ATR example verified in code
- Chart: Real TradingView data, Nifty 50 daily, at least 30 days old
- Repainting: Does not repaint on closed bars
Risk disclaimer: This article is for educational purposes only and is not investment advice. The stop-loss and position-sizing examples show how the calculations work; they are not recommendations for your account. Trading in stocks, derivatives, forex and crypto involves a substantial risk of loss and is not suitable for everyone. Consider speaking to a SEBI-registered investment adviser (or a licensed adviser in your country) before making trading decisions. See our full Disclaimer.