RSI Calculator: Relative Strength Index
Calculate the Relative Strength Index (RSI) for any asset using historical price data. Enter the required parameters below.
RSI Calculation Results
How RSI (Relative Strength Index) is Calculated: A Comprehensive Guide
The Relative Strength Index (RSI) is one of the most widely used momentum oscillators in technical analysis. Developed by J. Welles Wilder in 1978, RSI measures the speed and change of price movements to identify overbought or oversold conditions in traded assets.
Understanding the RSI Formula
The RSI calculation involves several steps that transform raw price data into a normalized oscillator that ranges between 0 and 100. Here’s the complete breakdown:
- Price Changes Calculation: For each period, calculate the difference between the current closing price and the previous closing price.
- Average Gain and Loss: Compute the average of positive price changes (gains) and negative price changes (losses) over the lookback period.
- Relative Strength (RS): Divide the average gain by the average loss to get the Relative Strength ratio.
- RSI Calculation: Apply the RSI formula to convert the RS ratio into an oscillator value between 0 and 100.
The Complete RSI Calculation Process
The standard RSI formula is:
RSI = 100 – (100 / (1 + RS))
Where RS = Average Gain / Average Loss
For the first calculation (when n=14 periods):
- Average Gain = Sum of gains over past 14 periods / 14
- Average Loss = Sum of losses over past 14 periods / 14
For subsequent calculations (smoothing):
- Average Gain = [(Previous Average Gain) × 13 + Current Gain] / 14
- Average Loss = [(Previous Average Loss) × 13 + Current Loss] / 14
Interpreting RSI Values
| RSI Range | Interpretation | Trading Implications |
|---|---|---|
| 0-30 | Oversold | Potential buying opportunity (price may reverse upward) |
| 30-70 | Neutral | No clear signal – price in equilibrium |
| 70-100 | Overbought | Potential selling opportunity (price may reverse downward) |
Note: These are general guidelines. In strong trends, RSI can remain in overbought/oversold territory for extended periods.
RSI Period Selection
The standard RSI period is 14, but traders often adjust this based on their trading style:
| RSI Period | Sensitivity | Best For | Typical Signals/Year |
|---|---|---|---|
| 5-10 | High | Short-term trading | 50-100+ |
| 14 | Medium | Standard analysis | 20-50 |
| 20-30 | Low | Long-term trends | 5-20 |
Common RSI Trading Strategies
- Overbought/Oversold Strategy: Buy when RSI crosses above 30 (from below), sell when it crosses below 70 (from above).
- RSI Divergence: Look for discrepancies between RSI and price action (bullish divergence when price makes lower lows but RSI makes higher lows).
- RSI Failure Swings: Four-part pattern that signals potential reversals (top failure swing above 70 or bottom failure swing below 30).
- RSI Support/Resistance: Use RSI levels (like 50) as dynamic support/resistance in trending markets.
Limitations of RSI
- False Signals: RSI can give false overbought/oversold signals in strong trending markets.
- Lagging Indicator: Like all momentum oscillators, RSI is based on past prices and doesn’t predict future movements.
- Parameter Sensitivity: Different periods can give different signals – the 14-period default isn’t always optimal.
- Whipsaws: In choppy markets, RSI can oscillate rapidly between signals.
Advanced RSI Variations
Traders have developed several RSI variations to address its limitations:
- Stochastic RSI: Applies the stochastic formula to RSI values, creating an oscillator of an oscillator for increased sensitivity.
- Relative Momentum Index (RMI): Incorporates both price and time into the calculation for potentially more accurate signals.
- Connor’s RSI: Uses three different RSI periods (3, 2, 1) to identify short-term overbought/oversold conditions.
- Larry Williams’ %R: Similar to stochastic but uses different scaling (0 to -100) and calculation method.
Academic Research on RSI Effectiveness
Several academic studies have examined RSI’s predictive power:
- A 2011 study by Lo, Mamaysky, and Wang (“Foundations of Technical Analysis”) found that head-and-shoulders patterns (often used with RSI) have statistical significance in predicting reversals.
- Research from the University of Cincinnati (2015) showed that combining RSI with volume indicators improved signal accuracy by 12-18% in S&P 500 stocks.
- The Federal Reserve Bank of St. Louis published a working paper (2018) noting that momentum indicators like RSI can help identify market regimes, though they’re less effective during high-volatility periods.
Practical Applications of RSI
Professional traders use RSI in various ways:
- Trend Confirmation: RSI above 50 suggests uptrend, below 50 suggests downtrend.
- Entry/Exit Timing: Combine with other indicators (like MACD) for confirmation.
- Risk Management: Use extreme RSI readings to adjust position sizes.
- Market Regime Identification: RSI behavior changes in trending vs. ranging markets.
Authoritative Resources on RSI
For further reading on RSI calculation and application:
- U.S. Securities and Exchange Commission – Technical Analysis Basics
- Investor.gov – Technical Analysis Glossary (including RSI)
- Corporate Finance Institute – RSI Guide
Frequently Asked Questions About RSI
What’s the best RSI period for day trading?
Most day traders use 5-10 period RSI for shorter-term signals, though this increases false positives. The 14-period remains popular for its balance between responsiveness and reliability.
Can RSI be used for cryptocurrencies?
Yes, RSI works for any asset with price history. However, crypto’s extreme volatility often requires adjusted thresholds (e.g., 80/20 instead of 70/30) due to frequent overbought/oversold conditions.
How does RSI differ from MACD?
While both are momentum indicators, RSI is bounded (0-100) and measures speed of price changes, while MACD is unbounded and shows the relationship between two moving averages of prices.
What’s the “RSI secret” many traders don’t know?
The original RSI formula uses exponential smoothing after the initial calculation, which many trading platforms don’t properly implement. This can lead to slight discrepancies between different charting software.