Stocks course · Section 4: Charts, Indicators and Strategies
RSI and ATR Explained: Momentum and Volatility Indicators for Stocks
How the RSI and ATR are calculated, what overbought and oversold really mean, and how to use ATR to set stop-losses and size positions by volatility.
Intermediate6 min read·7:04 video·Lesson 15 of 26·quiz: 4 questions
▶ Video lesson · 7:04Watch on YouTube ↗
On this page +
The Relative Strength Index (RSI) measures how strong a stock's recent gains have been compared with its recent losses, on a scale from 0 to 100, and readings above 70 are often called overbought and below 30 oversold. The Average True Range (ATR) measures how far a stock typically moves in a day, in dollars. RSI helps you judge momentum and stretched moves, and ATR helps you set stop-losses and position sizes that suit each stock's volatility.
Both indicators were introduced by J. Welles Wilder Jr. in his 1978 book New Concepts in Technical Trading Systems, and both are built into almost every charting platform.
The Relative Strength Index (RSI)
The standard RSI uses 14 periods (14 days on a daily chart):
- Work out the average gain on up days and the average loss on down days over the last 14 periods (Wilder used a smoothed average).
- RS = average gain / average loss.
- RSI = 100 - 100 / (1 + RS).
Example
Over 14 days a stock's average gain is $1.20 and its average loss is $0.60. RS = 1.20 / 0.60 = 2, and RSI = 100 - 100 / 3 = 66.7. If instead the average gain were $0.50 and the average loss $1.50, RS would be 0.33 and RSI = 100 - 100 / 1.33 = 25, in "oversold" territory.
What RSI levels really mean
- Above 70: recent gains have been much bigger than losses. In a range, that often means the stock is stretched. In a strong uptrend, RSI can stay above 70 for weeks while the price keeps rising.
- Below 30: recent losses have dominated. In a downtrend, RSI can stay low while the price keeps falling.
- Around 40-50: in healthy uptrends, pullbacks often stop with RSI in this zone; in downtrends, rallies often stall near 50-60.
Risk
Selling or shorting a stock only because its RSI is above 70 means betting against strength. Many of the biggest winners in any year spend long stretches "overbought". Use RSI with the trend, not against it.
Three ways traders use RSI
- As trend context. An RSI that keeps holding above 40 on pullbacks supports an uptrend.
- For pullback entries. In a stock above its rising 200-day average (see moving averages), a dip that pushes RSI towards 30-40 can offer a lower-risk entry than chasing a breakout.
- For divergence. If the price makes a higher high but RSI makes a lower high, momentum is fading. Divergence is a warning to tighten stops, not a sell signal by itself; it can last a long time.
The Average True Range (ATR)
ATR starts from the true range of each day, the largest of:
- today's high minus today's low;
- the gap between today's high and yesterday's close;
- the gap between yesterday's close and today's low.
Using yesterday's close means overnight gaps count, which matters a lot for stocks.
Example
Yesterday's close was $100. Today's high is $104 and low $101, so the true range is the largest of $3, $4 and $1, which is $4. On another day bad news sends the stock down: high $92, low $88. The day's own range is only $4, but the true range is the largest of $4, $8 and $12, which is $12.
The ATR is the average true range over a period, usually 14 days. It is in dollars, so to compare stocks, divide by the price:
| Stock | Price | ATR (14) | ATR as % of price |
|---|---|---|---|
| A | $200 | $4.00 | 2.0% |
| B | $50 | $2.50 | 5.0% |
Stock B is more than twice as volatile as Stock A, even though its ATR in dollars is smaller.
Using ATR to set stops
A fixed-percentage stop, such as 5% below entry, is too tight for a volatile stock (normal noise will hit it) and too loose for a calm one. An ATR stop places the stop a multiple of ATR away, often 2 to 3 times:
- Stock A: 2.5 x $4.00 = $10 below a $200 entry, so the stop is at $190.
- Stock B: 2.5 x $2.50 = $6.25 below a $50 entry, so the stop is at $43.75.
A trailing ATR stop (sometimes called a chandelier stop) sits a multiple of ATR below the highest close since entry and only moves up. For example, 3 x ATR under the highest close.
Using ATR to size positions
Combine the ATR stop with a fixed dollar risk per trade, covered in depth in position sizing and stop-losses.
Example
Your account is $25,000 and you risk 1%, or $250, per trade, with stops at 2.5 x ATR.
- Stock A: stop distance $10, so $250 / $10 = 25 shares, a $5,000 position.
- Stock B: stop distance $6.25, so $250 / $6.25 = 40 shares, a $2,000 position.
You put less money into the more volatile stock, but a stop-out costs the same $250 on either. When markets become more volatile, ATR rises and your positions shrink automatically.
Pro note
Because ATR includes gaps, it is a better guide to real risk than the day's high-low range. It still cannot tell you about the next gap: around earnings, size for a gap of several ATRs (see earnings season).
Putting them together
A simple, testable swing setup that uses both:
- Trend: the stock closes above its rising 200-day moving average.
- Entry: RSI(14) dips below 40, then closes back above it; buy at the next open.
- Stop: 2.5 x ATR(14) below the entry price.
- Exit: a trailing stop of 3 x ATR under the highest close, or a close below the 200-day average.
- Size: risk 1% of the account per trade.
This is an example to learn from, not a recommendation. Before trading anything like it, test it over many stocks and years, with costs, as shown in backtesting stock strategies. Some of the rules on the DanioX stocks backtest use ATR-based stops in exactly this way, and the page lists each rule's stop.
Tip
Resist adding more indicators. RSI, moving averages and ATR are all calculated from the same prices, so stacking five of them mostly repeats the same information and makes it easier to fool yourself in a test.
Next: how these tools combine into full strategies, in stock trading strategies.
Key takeaways
- RSI compares average gains with average losses on a 0-100 scale; 70 and 30 are common but not magic levels.
- In strong uptrends RSI can stay above 70 for weeks, so 'overbought' is not a sell signal on its own.
- ATR measures a stock's typical daily range in dollars, including overnight gaps.
- ATR-based stops and position sizes keep your dollar risk the same across calm and volatile stocks.
Quiz: check what you learned
0/4 answeredAnswer every question to finish the lesson. Wrong answers are fine: read the explanation and try again.
⚠ Not financial advice — educational signals only. Read the disclaimer.