RSI Indicator Calculator
Calculate the Relative Strength Index (RSI) for technical analysis with our precise tool
RSI Calculation Results
Comprehensive Guide: How to Calculate RSI Indicator
The Relative Strength Index (RSI) is one of the most popular momentum oscillators in technical analysis, developed by J. Welles Wilder in 1978. This comprehensive guide will walk you through everything you need to know about calculating and interpreting the RSI indicator.
What is the RSI Indicator?
The RSI is a momentum oscillator that measures the speed and change of price movements. It oscillates between 0 and 100 and is typically used to identify overbought or oversold conditions in a market. The standard RSI period is 14, though this can be adjusted based on trading strategies.
Understanding RSI Levels
- Overbought: Typically above 70 (suggests potential selling opportunity)
- Oversold: Typically below 30 (suggests potential buying opportunity)
- Neutral: Between 30 and 70
The RSI Formula
The RSI calculation involves several steps:
- Calculate Price Changes: For each period, calculate the difference between the current closing price and the previous closing price.
- Separate Gains and Losses: Identify which of these changes are gains (positive) and which are losses (negative).
- Calculate Average Gain and Loss: Compute the average of gains and losses over the lookback period.
- Compute Relative Strength (RS): RS = Average Gain / Average Loss
- Calculate RSI: RSI = 100 – (100 / (1 + RS))
Step-by-Step RSI Calculation Example
Let’s calculate a 5-period RSI for the following closing prices: 44.34, 44.09, 44.15, 43.61, 44.33, 44.83, 45.10, 45.42, 45.83, 46.31
| Day | Close | Change | Gain | Loss | Avg Gain | Avg Loss | RS | RSI |
|---|---|---|---|---|---|---|---|---|
| 1 | 44.34 | – | – | – | – | – | – | – |
| 2 | 44.09 | -0.25 | 0 | 0.25 | – | – | – | – |
| 3 | 44.15 | 0.06 | 0.06 | 0 | – | – | – | – |
| 4 | 43.61 | -0.54 | 0 | 0.54 | – | – | – | – |
| 5 | 44.33 | 0.72 | 0.72 | 0 | 0.15 | 0.17 | 0.88 | 46.75 |
| 6 | 44.83 | 0.50 | 0.50 | 0 | 0.22 | 0.13 | 1.69 | 62.92 |
Different RSI Periods and Their Meanings
| RSI Period | Characteristics | Best For | Typical Overbought/Oversold |
|---|---|---|---|
| 9-period | More sensitive, reacts quickly to price changes | Short-term trading, scalping | 75/25 |
| 14-period (standard) | Balanced sensitivity | Swing trading, general analysis | 70/30 |
| 21-period | Less sensitive, smoother | Longer-term trends, position trading | 65/35 |
| 28-period | Very smooth, slow to react | Long-term investing | 60/40 |
RSI Divergences: Advanced Trading Signals
RSI divergences occur when the price movement and RSI movement don’t align, potentially signaling trend reversals:
- Bullish Divergence: Price makes a lower low while RSI makes a higher low (potential upward reversal)
- Bearish Divergence: Price makes a higher high while RSI makes a lower high (potential downward reversal)
Common RSI Trading Strategies
-
Overbought/Oversold Strategy:
Buy when RSI crosses below 30 (oversold) and sell when it crosses above 70 (overbought). Works best in ranging markets.
-
RSI Trendline Breaks:
Draw trendlines on the RSI chart. Breaks of these trendlines often precede price trendline breaks.
-
RSI Failure Swings:
Also known as “RSI reversals,” these occur when RSI makes a higher high or lower low that isn’t confirmed by price.
-
RSI Support/Resistance:
RSI levels can act as support/resistance. For example, RSI finding support at 40 in an uptrend.
Limitations of the RSI Indicator
- Can give false signals in strong trending markets (RSI may stay overbought/oversold for extended periods)
- Works best in ranging markets rather than strong trends
- Single indicator – should be used with other technical tools for confirmation
- Period selection affects sensitivity (shorter periods are more volatile)
RSI vs. Other Momentum Indicators
While RSI is popular, traders often compare it to other momentum indicators:
| Indicator | Range | Best For | Key Difference from RSI |
|---|---|---|---|
| Stochastic Oscillator | 0-100 | Identifying overbought/oversold in ranging markets | Compares closing price to price range over period |
| MACD | Unbounded | Trend following and momentum | Uses moving average convergence/divergence |
| ROC (Rate of Change) | Unbounded | Measuring pure momentum | Shows percentage change over period |
| CCI (Commodity Channel Index) | Typically -100 to +100 | Identifying cyclical turns | Measures deviation from statistical mean |
Academic Research on RSI Effectiveness
Several academic studies have examined the effectiveness of the RSI indicator:
- A 2012 study published in the Journal of Technical Analysis found that RSI-based strategies outperformed buy-and-hold in sideway markets but underperformed in strong trends.
- Research from the University of Cincinnati (2015) showed that combining RSI with moving average crossovers improved strategy performance by 18% compared to using either alone.
- A 2018 paper in the International Journal of Economics and Financial Issues demonstrated that RSI divergences had a 62% success rate in predicting reversals in S&P 500 stocks over a 5-year period.
Practical Tips for Using RSI
- Adjust the RSI period based on your trading timeframe (shorter for day trading, longer for swing trading)
- Use RSI in conjunction with trend indicators (like moving averages) to filter signals
- Watch for RSI to cross the 50 line as potential trend confirmation
- In strong trends, consider using 80/20 as overbought/oversold levels instead of 70/30
- Backtest your RSI strategy on historical data before using real capital