At a glance
- What it measures
- Average movement per bar, including gaps
- Standard setting
- 14 periods
- Primary uses
- Stop distance, position sizing, volatility filtering
- What it does not do
- Indicate direction of any kind
Key takeaways
- ATR measures typical movement including overnight gaps, which is why it is more useful than simple high-minus-low range.
- Using ATR for stop distance means every instrument gets room proportional to its own behaviour, rather than an arbitrary percentage.
- ATR-based position sizing equalises risk across markets, which is what allows one strategy to trade stocks, currencies, and commodities together.
- ATR is an absolute value in price units, so comparisons across instruments require dividing by price to get a percentage.
- ATR rises during declines in equity markets, which automatically reduces position sizes at the moments when volatility is highest.
How ATR is calculated
True Range for each bar = the greatest of:
(1) High - Low
(2) |High - Previous Close|
(3) |Low - Previous Close|
ATR = a smoothed average of True Range over N periods
(usually Wilder smoothing, similar to an EMA)
Why (2) and (3) matter:
Previous close 100. Today opens at 94 and trades 93 to 95.
High - Low = 2.00 (understates the move)
|Low - prev close| = 7.00 (captures the gap)
True Range = 7.00
A stop sized on high-minus-low alone would ignore gap risk
entirely, which is precisely the risk that matters most.Using ATR for stops
A percentage stop treats all instruments identically, which guarantees it is wrong for most of them. An ATR stop places the exit at a distance proportional to how much the instrument actually moves.
| Instrument | Price | ATR(14) | 2 ATR stop | As a percentage |
|---|---|---|---|---|
| Utility stock | 72.00 | 0.85 | 1.70 | 2.4% |
| Technology stock | 180.00 | 5.20 | 10.40 | 5.8% |
| Index ETF | 520.00 | 4.60 | 9.20 | 1.8% |
| Crude oil future | 78.00 | 1.90 | 3.80 | 4.9% |
| Major FX pair | 1.0850 | 0.0062 | 0.0124 | 1.1% |
| Large-cap crypto | 64,000 | 2,100 | 4,200 | 6.6% |
Each stop is 2 ATR away, and the percentage distances range from 1.1 to 6.6 percent. A single percentage rule would be simultaneously too tight for some and far too wide for others, producing inconsistent risk and inconsistent behaviour.
ATR position sizing
Position size = (Equity x Risk%) / (ATR multiple x ATR x value per point)
Equity 80,000, risk 0.5% = 400 USD, stop = 2.5 ATR
Stock at 46.00, ATR = 1.15:
Stop distance = 2.875 per share
Shares = 400 / 2.875 = 139 (6,394 USD position)
Micro gold future, ATR = 22 points, 10 USD per point:
Stop distance = 55 points = 550 USD per contract
Contracts = 400 / 550 = 0.73 -> 0 contracts at this risk level
Both positions are evaluated on identical terms: what does a
normal adverse move cost, and how many units make that equal
to my risk budget?The second case is instructive. ATR sizing does not tell you to take the trade with a smaller stop; it tells you the trade does not fit this account at this risk level. That honesty is the point of the method.
Other uses for ATR
- Trailing stops. The chandelier exit trails at the highest high since entry minus a multiple of ATR, adapting automatically as volatility changes. See trailing stops.
- Volatility filters. Comparing ATR(10) to ATR(50) identifies compression and expansion. Low ratios indicate a quiet market, which favours breakout setups and penalises trend-following entries.
- Profit targets. Setting targets in ATR units makes them comparable across instruments and adapts them to conditions.
- Normalising for comparison. ATR divided by price converts to a percentage, allowing volatility comparison across instruments at different price levels.
- Regime detection. A sustained rise in ATR relative to its own history indicates a change in market conditions, which many strategies use to reduce exposure.
- Stop-out probability estimation. Knowing the typical daily movement lets you estimate how likely a given stop is to be reached by noise alone.
Limitations and practical notes
- It is backward looking. ATR reports what movement has been, not what it will be. A sudden regime change is reflected only after it occurs.
- It is in price units. ATR of 2.00 means nothing without knowing the price. Divide by price for cross-instrument comparison.
- Smoothing choice matters slightly. Wilder smoothing responds more slowly than a simple average; results are similar but not identical.
- Short lookbacks are unstable. ATR(5) jumps around; ATR(20) is smoother. Most uses favour 14 to 20 periods.
- It ignores direction entirely. ATR rises in both crashes and rallies, which is correct behaviour but means it cannot inform which way to trade.
- In 24-hour markets, gaps are rarer, so true range approaches simple range and the gap-handling advantage diminishes.
Frequently asked questions
What is a good ATR setting?
14 periods is the standard and works well for most purposes. Shorter settings such as 10 respond faster to volatility changes and are noisier; longer settings such as 20 are smoother and slower. The setting matters far less than consistently using ATR rather than fixed percentages.
How do I use ATR to set a stop loss?
Multiply ATR by a factor appropriate to your timeframe, typically 1.5 to 3, and place the stop that distance from entry. Then compute position size so that this distance equals your fixed risk percentage. The stop distance and the position size are determined together, never separately.
Does a high ATR mean a stock is risky?
It means the stock moves more, which is risk in the sense of variance. Whether that is dangerous depends entirely on position size: a high-ATR instrument held in small size can carry less risk than a low-ATR instrument held in large size. ATR is an input to sizing rather than a verdict on the instrument.
Can ATR predict direction?
No. It measures magnitude of movement regardless of direction, rising during both crashes and sharp rallies. Any use of ATR as a directional signal is a misreading. Its value lies entirely in the risk and sizing decisions that come after a directional signal from elsewhere.
Why use ATR instead of standard deviation?
ATR uses the true range including gaps, while standard deviation of closes ignores intrabar movement and gap behaviour. For stop placement, what matters is how far price can travel against you within a bar, which ATR captures directly. Standard deviation remains useful for portfolio-level volatility measurement.
Test this idea before you trade it
Describe the rules in plain language and AlgoTrader AI turns them into a structured strategy blueprint with a configurable historical backtest, cost assumptions, and exportable code.
Build a backtestKeep reading
- RiskPosition Sizing Guide: How Many Shares or Contracts to Trade
- RiskStop Loss Strategies: Placement, Types, and What They Cannot Do
- RiskTrailing Stops: Letting Winners Run Without Giving It All Back
- RiskVolatility Targeting: Sizing by Risk Instead of by Capital
- IndicatorsKeltner Channels: ATR Bands and the Squeeze Setup
- IndicatorsTechnical Indicators Explained: What They Measure and What They Cannot
Referenced by
Educational use only. This guide explains how a strategy works. It is not investment advice, not a recommendation, and no result described here is a forecast. Test any approach on historical and out-of-sample data, size positions conservatively, and never risk money you cannot afford to lose.