Relative Strength Index (RSI)
The Relative Strength Index (RSI) compares the size of a market’s recent gains with the size of its recent losses and scales the result from 0 to 100. A reading near 100 means almost all recent movement was upward; near 0, almost all downward; around 50, gains and losses were about equal. J. Welles Wilder Jr. introduced it in his 1978 book New Concepts in Technical Trading Systems, and the 14-period setting he used is still the most common.
At a glance
| Type | Momentum oscillator, bounded 0 to 100 |
| Created by | J. Welles Wilder Jr., 1978 |
| Standard setting | 14 periods |
| Classic levels | Above 70 overbought, below 30 oversold (Wilder) |
| TradingView rating | Buy if below 30 and rising; Sell if above 70 and falling; otherwise Neutral |
How it’s calculated
- Change. For each period, subtract the previous close from the current close.
- Split gains and losses. A positive change is a gain (and a loss of 0); a negative change is a loss, recorded as a positive number (and a gain of 0).
- First averages. Over the first 14 changes, average the gains and average the losses.
- Wilder’s smoothing. After that, each new average is the previous average times 13, plus the new value, divided by 14. This is the smoothing TradingView’s built-in RSI uses.
- RS and RSI.
RS = average gain ÷ average loss
RSI = 100 − 100 ÷ (1 + RS)
If the average loss is zero, RSI is 100.
Worked example: 17 days
A hypothetical stock closes as follows. The first 14 changes run from day 2 to day 15.
| Day | Close | Change | Gain | Loss |
|---|---|---|---|---|
| 1 | 100.00 | |||
| 2 | 100.80 | +0.80 | 0.80 | 0 |
| 3 | 100.30 | −0.50 | 0 | 0.50 |
| 4 | 101.20 | +0.90 | 0.90 | 0 |
| 5 | 101.90 | +0.70 | 0.70 | 0 |
| 6 | 101.40 | −0.50 | 0 | 0.50 |
| 7 | 102.30 | +0.90 | 0.90 | 0 |
| 8 | 103.00 | +0.70 | 0.70 | 0 |
| 9 | 102.60 | −0.40 | 0 | 0.40 |
| 10 | 103.50 | +0.90 | 0.90 | 0 |
| 11 | 104.10 | +0.60 | 0.60 | 0 |
| 12 | 103.70 | −0.40 | 0 | 0.40 |
| 13 | 104.60 | +0.90 | 0.90 | 0 |
| 14 | 105.20 | +0.60 | 0.60 | 0 |
| 15 | 104.90 | −0.30 | 0 | 0.30 |
| 16 | 105.80 | +0.90 | 0.90 | 0 |
| 17 | 105.20 | −0.60 | 0 | 0.60 |
Day 15 (the first RSI). The 14 gains from day 2 to day 15 add up to 7.00 and the losses to 2.10.
- Average gain = 7.00 ÷ 14 = 0.5000; average loss = 2.10 ÷ 14 = 0.1500
- RS = 0.5000 ÷ 0.1500 = 3.3333
- RSI = 100 − 100 ÷ 4.3333 = 76.92
Day 16. The close rose 0.90.
- Average gain = (0.5000 × 13 + 0.90) ÷ 14 = 0.5286; average loss = (0.1500 × 13 + 0) ÷ 14 = 0.1393
- RS = 3.7949, RSI = 79.14 (up from 76.92)
Day 17. The close fell 0.60.
- Average gain = (0.5286 × 13 + 0) ÷ 14 = 0.4908; average loss = (0.1393 × 13 + 0.60) ÷ 14 = 0.1722
- RS = 2.8504, RSI = 74.03 (down from 79.14)
Now apply TradingView’s rule to each day:
| Day | RSI | Above 70? | Direction | TradingView reading |
|---|---|---|---|---|
| 15 | 76.92 | Yes | (first value) | Neutral |
| 16 | 79.14 | Yes | Rising | Neutral: overbought, but not yet turning down |
| 17 | 74.03 | Yes | Falling | Sell: above 70 and falling |
The rule doesn’t call a market a sell just for being above 70. It waits until RSI is above 70 and turning down, which in this example takes one losing day.
How traders read the RSI
- Overbought and oversold. According to TradingView’s help page, Wilder considered readings above 70 overbought and below 30 oversold, 30 to 70 neutral and around 50 a sign of no trend. Some traders use 80 and 20 instead.
- Divergence. A bullish divergence is when price makes a new low but RSI makes a higher low; a bearish divergence is when price makes a new high but RSI makes a lower high. Both suggest the move is losing momentum.
- Trend context. In a strong uptrend RSI can stay above 70 for weeks, and in a strong downtrend below 30. Overbought isn’t the same as about to fall.
- The 50 line. Some traders treat RSI holding above 50 as a sign the uptrend is intact, and below 50 the downtrend.
How TradingView’s rating uses it
RSI (14) is one of the 11 oscillators in TradingView’s rating, scored like this:
| Reading | Condition |
|---|---|
| Buy (+1) | RSI below 30 and higher than the previous RSI |
| Sell (−1) | RSI above 70 and lower than the previous RSI |
| Neutral (0) | Anything else |
Most of the time RSI sits between 30 and 70, so its reading is Neutral more often than not.
Settings and variations
- Length. Shorter lengths (such as 7 or 9) make RSI swing more and reach the extremes more often; longer ones (such as 21) make it smoother.
- Levels. 70/30 is Wilder’s standard; 80/20 filters out weaker extremes.
- Smoothing. Some platforms let you switch Wilder’s smoothing to a simple or exponential average, which changes the values.
Limitations
- Extremes can last. A market can stay overbought through a long rally.
- Divergences can run for a long time before price turns, or never lead to a turn.
- It ignores everything except closing prices: no highs, lows or volume.
See it on a live chart
This market's chart has one value per day, with no daily high or low, so it draws as a line and these indicators, which need highs and lows, aren't shown on it.
RSI (14) under daily candles. The shaded band marks 30 to 70; the legend shows the latest RSI value.
For TradingView's current rating of any market, with this indicator among the 26, see the market analysis page or the technical signals for all markets.
Sources
- TradingView, Relative Strength Index (RSI), read Nov. 30, 2026
- TradingView, Technical Ratings, read Nov. 30, 2026
- J. Welles Wilder Jr., New Concepts in Technical Trading Systems (1978)
This page explains how an indicator is calculated and how traders commonly read it. The worked examples use hypothetical prices. Nothing here is a recommendation to buy or sell any investment. This content is for informational purposes only and does not constitute financial advice. Consult a qualified financial advisor before making investment or financial decisions.