How much does this market usually move? ATR and historical volatility
Short answerTwo standard measures answer this from past prices. The average true range (ATR) is the average size of one bar's full move, counting any gap from the previous close, in the market's own price units: a daily ATR(14) of 1.20 on a $40 stock means it has recently covered about $1.20, or 3.0% of its price, per day. Historical volatility is the standard deviation of close-to-close returns, scaled to a year: 20% means that recent daily returns, scaled up to a full year, correspond to a standard deviation of about 20% a year. Both describe the recent past only. Volatility comes in clusters, so a reading taken in a quiet stretch can badly understate the next shock.
With these readings you can place a stop outside a market's ordinary daily movement, size a position so that hitting the stop costs a set amount, and compare markets at very different prices in percent: a 2,400 USDT pair with a daily ATR of 72 USDT covers about 3.0% of its price a day, the same as the $40 stock.
Valmy noteValmy's v1 strategy language includes the simple moving average and no other indicator, so ATR and historical volatility are taught here for reading charts (as of 26 November 2026).
Average true range (ATR): the typical bar's full move, gaps included#
The average true range (ATR) measures how far price typically travels within one bar, including any jump from the previous bar's close. J. Welles Wilder Jr. introduced it in his 1978 book New Concepts in Technical Trading Systems. Its inputs are each bar's high, low and the previous close. It uses no volume and no opening price. ATR is quoted in price units, such as US dollars for a US stock or USDT for a USDT-quoted crypto pair, so a $50 stock and a 2,400 USDT pair cannot be compared by ATR alone. The default lookback is 14 bars on any timeframe, written ATR(14), and the average uses Wilder's smoothing, explained below. ATR has no direction: a market falling 2% a day and one rising 2% a day can have the same ATR.
True range: why gaps count#
The true range of a bar is the largest of three distances:
- high − low, the bar's own range;
- |high − previous close|, the distance from the previous close up to this bar's high;
- |low − previous close|, the distance from the previous close down to this bar's low.
The vertical bars mean "ignore the sign". The second and third distances matter only when the bar gaps, that is, opens away from the previous close. A US stock that closes at 50.90, then opens at 52.40 the next morning after news and trades between 52.10 and 53.20, has a high − low of only 1.10. Anyone holding it overnight saw price travel from 50.90 to 53.20, which is 2.30, and that is the true range.
Most crypto pairs trade around the clock, so each bar usually opens at or very near the previous close and the true range is close to high − low. A US stock's regular session closes overnight and at weekends, and news released then often shows up as a gap at the next regular open. The very first bar of a data set has no previous close, so its true range is simply high − low.
Calculating ATR step by step#
ATR starts as a simple average of true ranges and then updates with Wilder's smoothing. The first ATR is the average of the first n true ranges. After that, ATR = ((n − 1) × previous ATR + today's true range) ÷ n, which for the default n = 14 is (13 × previous ATR + true range) ÷ 14. To keep the table short, this example uses n = 4. The arithmetic is the same.
| Day | Open | High | Low | Close | High − low | True range | ATR(4) |
|---|---|---|---|---|---|---|---|
| 1 | 50.00 | 50.80 | 49.60 | 50.40 | 1.20 | (no previous close) | |
| 2 | 50.50 | 51.20 | 50.10 | 51.00 | 1.10 | 1.10 | |
| 3 | 50.90 | 51.30 | 50.40 | 50.60 | 0.90 | 0.90 | |
| 4 | 50.70 | 51.10 | 50.20 | 50.90 | 0.90 | 0.90 | |
| 5 | 52.40 | 53.20 | 52.10 | 52.80 | 1.10 | 2.30 | 1.300 |
| 6 | 52.70 | 53.00 | 52.00 | 52.30 | 1.00 | 1.00 | 1.225 |
| 7 | 52.20 | 52.90 | 51.80 | 52.60 | 1.10 | 1.10 | 1.194 |
| 8 | 51.20 | 51.60 | 50.80 | 51.40 | 0.80 | 1.80 | 1.345 |
The prices are invented for this example (synthetic data).
- True ranges. On day 5 the stock gapped up: high − low is 1.10, but high − previous close is 53.20 − 50.90 = 2.30, so the true range is 2.30. On day 8 it gapped down: high − low is 0.80, but previous close − low is 52.60 − 50.80 = 1.80. On the other days high − low is the largest of the three distances.
- First ATR (day 5). The simple average of the first four true ranges: (1.10 + 0.90 + 0.90 + 2.30) ÷ 4 = 5.20 ÷ 4 = 1.300.
- Day 6. (3 × 1.300 + 1.00) ÷ 4 = 4.90 ÷ 4 = 1.225.
- Day 7. (3 × 1.225 + 1.10) ÷ 4 = 4.775 ÷ 4 = 1.194 (1.19375 before rounding).
- Day 8. (3 × 1.19375 + 1.80) ÷ 4 = 5.38125 ÷ 4 = 1.345.
With the default n = 14, each new bar carries a weight of 1/14, about 7%. Over days 2 to 8, the average high − low is 0.986 while the average true range is 1.300. Ignoring the two gaps would have understated this stock's typical daily move by about 24%.
Variant used. This is Wilder's smoothing as implemented in TA-Lib, a widely used open-source library: the first ATR is the simple average of the first n true ranges, and later values keep (n − 1)/n of the previous one. TradingView's ATR also uses Wilder's smoothing by default (TradingView calls it RMA) and lets users switch to a simple, exponential or weighted average, which gives different values. Platforms can also start the average differently. Because each update keeps 13/14 of the old value, a different starting value still accounts for about 1.2% of the ATR after 60 bars, so compare ATRs only after a long warm-up.
ATR as a percent of price: comparing different markets#
Dividing ATR by the latest close turns it into a percentage that can be compared across markets: ATR% = ATR ÷ close × 100. On day 8 of the table, 1.345 ÷ 51.40 × 100 = 2.62%.
Take a $40 stock with an ATR(14) of 1.20 and a crypto pair at 2,400 USDT with an ATR(14) of 72 USDT on daily bars. The pair's ATR is 60 times larger, but both work out to 3.0% of price per day. Two cautions apply. A stock's daily bar covers one trading session plus the overnight gap before it, while a crypto pair's daily bar covers 24 hours every day of the week. And ATR% describes the current price level: if the price halves while the dollar ATR stays the same, ATR% doubles.
Reading ATR on a chart#
On the synthetic daily stock chart below, ATR sat near 0.47 for weeks, jumped when the stock gapped down 7.0% on day 71, and then kept climbing as the following days stayed wild. The labeled points show how a reading builds up and fades.
- A, day 70: ATR 0.47. That is 0.94% of the 50.61 close. In the first 70 days the largest single true range was 1.85, so even the quiet stretch had an occasional big day.
- B, day 71: true range 4.21. The stock opened at 47.09, 7.0% below the previous close, after news released while the market was closed. The day's own high − low was only 0.99, but the true range from the previous close down to the low of 46.40 was 4.21, which is 8.9 times the previous ATR. ATR rose only to 0.74, because the new bar gets a weight of 1/14: (13 × 0.4744 + 4.21) ÷ 14 ≈ 0.74.
- C, day 100: peak ATR 1.20. The days after the gap kept wide ranges, so ATR kept rising until day 100, 29 trading days after the gap. On day 120 it was 0.91, still about 1.9 times its level before the gap.
ATR therefore describes the last few weeks, weighted toward the most recent bars. It rises with a lag after a shock and stays elevated well after the shock day.
Using ATR to set a stop distance and a position size#
A common use of ATR is to place a protective stop a multiple of ATR away from the entry, so that ordinary daily movement is less likely to trigger it, and then to size the position so that hitting the stop costs a fixed share of the account. The stop distance comes from the market's recent movement and the position size comes from the stop distance, so a calmer market allows a larger position for the same risk.
A worked example, with hypothetical numbers:
- Account: 5,000 USDT. Risk per trade: 1%, which is 50 USDT.
- A crypto pair trades at 2,400 USDT with a daily ATR(14) of 72 USDT (3.0% of price).
- A stop placed 2 × ATR below the entry sits 144 USDT lower, at 2,256 USDT.
- Position size = risk ÷ stop distance = 50 ÷ 144 = 0.347 units of the base asset, worth about 833 USDT.
- In a quieter market with ATR at 1.5% of price (36 USDT), the stop sits 72 USDT away and the same 50 USDT risk allows 0.694 units, worth about 1,667 USDT.
This sketch ignores fees and assumes the stop fills at its level, which it may not. What is a stop order, and why can it fill worse than its trigger price? explains why fills can be worse. The full sizing method is in How much should I risk on one trade?, and Where would a trailing stop sit? covers stops that move with ATR, such as the Chandelier Exit. The multiple of 2 is an example, not a recommendation: a tighter multiple is hit more often by noise, and a wider one risks more per unit.
When ATR misleads#
ATR is a summary of the recent past, and volatility tends to arrive in clusters. Benoit Mandelbrot observed in 1963 that "large changes tend to be followed by large changes—of either sign", and small changes by small ones. Later surveys list this volatility clustering among the most robust patterns in asset returns (Cont, 2001), and a 2023 replication on intraday data for the 30 Dow Jones stocks found it still present (Ratliff-Crain and others). A quiet stretch can end abruptly, and an ATR measured during it then understates the next move.
In Figure 2, a trader buys the synthetic stock at the open of day 65, at 50.42. The ATR(14) known at that point, from day 64, is 0.48, so a stop 2 × ATR below the entry sits at 49.46, a planned loss of 0.96 per share. Nothing touches the stop for six days. Then the stock opens at 47.09 on day 71. A sell stop that is triggered by a gap fills at or near the opening price, not at its trigger, so the loss is 50.42 − 47.09 = 3.33 per share, 3.5 times the plan.
Stocks and crypto differ here. A US stock's regular session closes overnight, and trading outside it is limited, so overnight news often arrives all at once as a gap at the next open (see When can I trade, and what happens to prices outside market hours?). Most crypto pairs trade continuously, including weekends, so the same news would push price through the stop level while trading is open, and the stop would trigger closer to its level. That is not a guarantee: in a fast market a triggered stop can still fill well below its trigger, and a futures position can also face liquidation (see What does leverage change, and when is a position liquidated?).
Other ways ATR misleads:
- It mixes up and down. A high ATR says nothing about direction.
- It is in price units. After a large price change, compare ATR% rather than ATR.
- It depends on the bar size. A daily ATR and a five-minute ATR answer different questions, and a five-minute ATR multiplied by the number of bars in a day does not give the daily ATR, because moves within the day partly cancel out.
Historical volatility: how widely returns varied, scaled to a year#
Historical volatility, also called realized or statistical volatility, is the standard deviation of returns over a lookback window, scaled to one year and quoted in percent. The usual version is close-to-close: it uses only closing prices, so it includes overnight gaps (they are part of the move from one close to the next) but ignores how far price traveled within each bar. Returns are measured as natural log returns, ln(close ÷ previous close). Lookbacks of about one month of daily bars, 20 or 21 bars, are common, and this lesson uses 20. The result is annualized by multiplying by the square root of the number of bars in a year: √252 for daily bars of US stocks, which trade about 252 days a year, and √365 for daily bars of a market that trades every day, such as most crypto pairs. It is a standard statistic rather than one person's invention.
Calculating historical volatility step by step#
The recipe: compute the log return of each bar, take their mean, square each return's deviation from the mean, add the squares, divide by the number of returns minus one, take the square root, and multiply by the square root of the bars per year. This example uses eight daily closes, which give seven log returns. Values are in percent and rounded, and the totals use unrounded values.
| Day | Close | Log return (%) | Return − mean (%) | Squared (%²) |
|---|---|---|---|---|
| 1 | 100.00 | |||
| 2 | 101.50 | 1.489 | 1.011 | 1.023 |
| 3 | 100.80 | −0.692 | −1.170 | 1.368 |
| 4 | 102.30 | 1.477 | 0.999 | 0.999 |
| 5 | 101.20 | −1.081 | −1.559 | 2.430 |
| 6 | 103.00 | 1.763 | 1.285 | 1.652 |
| 7 | 102.10 | −0.878 | −1.355 | 1.837 |
| 8 | 103.40 | 1.265 | 0.788 | 0.620 |
The prices are invented for this example (synthetic data).
- Log returns. Day 2: ln(101.50 ÷ 100.00) = 1.489%. Log returns add up over time: the seven returns sum to 3.343%, which equals ln(103.40 ÷ 100.00).
- Mean. 3.343% ÷ 7 = 0.478% per day.
- Deviations and squares. Subtract the mean from each return and square the result. The squares sum to 9.929 (in percent squared).
- Variance and standard deviation. The sample formula divides by the number of returns minus one: 9.929 ÷ 6, whose square root is 1.286% per day. The population formula divides by the number of returns: 9.929 ÷ 7, giving 1.191% per day.
- Annualize. For a stock: 1.286% × √252 = 1.286% × 15.875 = 20.4% per year (18.9% with the population formula). If the same daily returns came from a market that trades every day: 1.286% × √365 = 1.286% × 19.105 = 24.6%.
The sample formula, used in this lesson and in an MIT OpenCourseWare case study on estimating volatility, corrects for estimating the mean from the same data. The two formulas differ by the factor √(7 ÷ 6) = 1.080 here. With 20 returns the gap shrinks to √(20 ÷ 19) = 1.026, small but enough to make two platforms disagree by about 2.6%.
252 or 365: annualizing stock and crypto volatility#
Annualizing assumes daily returns are roughly independent, so their variance adds up over the year and the standard deviation grows with the square root of the number of bars. The count must match the market's calendar. US stocks trade on weekdays except exchange holidays: NYSE's 2026 calendar has 261 weekdays and 10 holiday closures, which leaves 251 trading days, and 252 is the usual round figure. The weekend still counts, because Monday's close-to-close return includes everything that happened since Friday. A crypto pair that trades every day has 365 daily returns a year.
The same daily standard deviation therefore gives a crypto pair an annual figure √(365 ÷ 252) = 1.204 times, about 20%, higher than a stock. That is correct, because the pair has more trading days in which to move, but it means two numbers are comparable only if each used its own market's count. A tool that annualizes a crypto pair with √252, or a stock with √365, misstates it by about 17% or 20%. When in doubt, compare daily standard deviations directly.
For intraday bars, the count is bars per day times days per year: 365 × 288 = 105,120 five-minute bars a year for a crypto pair, and 252 × 78 = 19,656 for the regular 9:30 a.m. to 4:00 p.m. session of a US stock. Intraday stock data needs extra care, because each overnight gap lands in the first bar of a session and makes that one return far larger than the others.
Reading historical volatility on a chart#
On the same synthetic stock as Figure 1, 20-day historical volatility was 9.4% a year before the gap, jumped the day the gap entered the window, and fell sharply exactly 20 trading days later, when the gap day left it.
- A, day 70: 9.4%. In daily terms that is 9.4% ÷ √252 = 0.59% per day.
- B, day 71: 32.0%. The close-to-close log return on the gap day was −8.5%. One return of that size in a 20-day window multiplied the reading by 3.4. It kept rising to 41.3% on day 90 as the following days stayed volatile.
- C, day 91: down from 41.3% to 27.5%. Every return in the window has equal weight, so the gap day counted fully for 20 days and then dropped out all at once. ATR over the same two days moved only from 1.09 to 1.06, because Wilder's smoothing lets an old shock fade gradually.
When historical volatility misleads#
- A quiet window says little about the next shock. Measured against the 0.59% daily standard deviation before the gap, the −8.5% gap-day return was about 14 standard deviations. If returns followed a normal (bell-shaped) distribution, such a move would essentially never happen. Real returns have fat tails: very large moves occur far more often than a normal distribution predicts. Mandelbrot reported in 1963 that the distributions of price changes he studied were too peaked, with too many large changes, to come from a normal distribution, and later surveys list fat tails among the standard patterns in returns (Cont, 2001).
- A sudden drop may be an artifact. The fall on day 91 in Figure 3 came from the 20-day window, not from a calmer market.
- Conventions differ. √252 or √365, sample or population, 20 or 30 bars, log or simple returns: two platforms can show different numbers for the same data. Check the settings before comparing.
- Closes hide the path. A market can swing widely within each day and close where it opened. Close-to-close volatility would stay low while ATR rises.
- It has no direction. A steady rally and a crash can show the same volatility.
Check your understanding: ATR and historical volatility#
Part 1, ATR. A stock closed yesterday at 48.00, and its ATR(14) was 1.40. After bad news overnight, it opens today at 45.50, trades between 45.10 and 46.20, and closes at 45.80.
- What is today's true range, and what is the new ATR(14)?
- A trader who bought at 48.00 had a stop 2 × ATR below, at 45.20. Did the stop trigger, and how does that differ from the gap in Figure 2?
Part 2, historical volatility. Over the last 20 days, the daily log returns of a US stock had a sample standard deviation of 1.8%, and those of a crypto pair had 2.9%.
- Annualize both.
- A website annualized the crypto pair with √252. What would it show, and by how much would it understate the pair?
Show the answers
Answer.
Part 1. (1) The three distances are high − low = 46.20 − 45.10 = 1.10, |high − previous close| = |46.20 − 48.00| = 1.80, and |low − previous close| = |45.10 − 48.00| = 2.90. The true range is the largest, 2.90, which is 2.07 times yesterday's ATR. The new ATR is (13 × 1.40 + 2.90) ÷ 14 = (18.20 + 2.90) ÷ 14 = 21.10 ÷ 14 ≈ 1.507. One wild day moves a 14-day ATR only a little. (2) Yes. The stock opened at 45.50, above the 45.20 stop, and later traded down to 45.10, so the stop triggered during the session. Unlike Figure 2, the market traded through the stop level instead of opening below it, so the fill could be near 45.20, although a fast market can still fill a stop worse than its trigger.
Part 2. (1) The stock: 1.8% × √252 = 1.8% × 15.875 ≈ 28.6% a year. The crypto pair trades every day: 2.9% × √365 = 2.9% × 19.105 ≈ 55.4% a year. Per day the pair is 2.9 ÷ 1.8 = 1.61 times as volatile, and per year 55.4 ÷ 28.6 = 1.94 times, because it has 365 trading days instead of 252. (2) 2.9% × √252 ≈ 46.0%, which understates the pair's annual volatility by 1 − √(252 ÷ 365) ≈ 16.9%.
Related lessons#
- Before this lesson: What does a candle tell me, and what does it hide?
- Next: What do Bollinger Bands measure, and does touching a band mean anything?, which builds bands from the standard deviation of prices.
- See also: How much should I risk on one trade?, Where would a trailing stop sit?, What is a stop order, and why can it fill worse than its trigger price?, When can I trade, and what happens to prices outside market hours? and How strong is this trend?, which builds ADX on true range.