Relative Strength Index (RSI)
The Relative Strength Index (RSI) is a momentum oscillator that measures the speed and magnitude of price movements on a scale from 0 to 100. Developed by J. Welles Wilder Jr. in 1978, it is one of the most widely used technical indicators for identifying overbought and oversold conditions.
TL;DR
- RSI is a oscillator indicator used in technical analysis
- RSI above 70 indicates overbought conditions (potential reversal down), below 30 indicates oversold conditions (potential reversal up). RSI at 50 is the neutral centerline.
- Best timeframes: M15, H1, H4, D1
- Skip to API docs →
What is Relative Strength Index?
The Relative Strength Index (RSI) was introduced by J. Welles Wilder Jr. in his 1978 book "New Concepts in Technical Trading Systems." It has since become one of the most popular and widely used momentum oscillators in technical analysis.
RSI measures the magnitude of recent price changes to evaluate whether an asset is overbought or oversold. It oscillates between 0 and 100, with traditional interpretation using 70 as the overbought threshold and 30 as the oversold threshold.
Unlike simple price-based indicators, RSI compares the average gains to average losses over a specified period, providing insight into the internal strength of price movement — hence the name "Relative Strength."
How RSI is Calculated
RSI = 100 - (100 / (1 + RS))
where RS = Average Gain / Average Loss
Step 1: Calculate average gain and loss over N periods (default N=14)
Step 2: RS = Average Gain / Average Loss
Step 3: RSI = 100 - (100 / (1 + RS))
Smoothed version (after first N periods):
Avg Gain = (Prev Avg Gain × (N-1) + Current Gain) / N
Avg Loss = (Prev Avg Loss × (N-1) + Current Loss) / N Step 1: For each period, calculate the change from the previous close. Separate gains (positive changes) from losses (absolute value of negative changes).
Step 2: Calculate the average gain and average loss over the lookback period (default 14). The first calculation uses a simple average; subsequent calculations use exponential smoothing.
Step 3: Divide average gain by average loss to get the Relative Strength (RS). Then apply the RSI formula to normalize the result between 0 and 100.
How to Interpret RSI
Overbought (70+)
Price has risen significantly and may be due for a pullback. Consider taking profits on longs or looking for short entries with confirmation.
Neutral (30–70)
The centerline at 50 separates bullish (above) from bearish (below) momentum. Crossing 50 can signal trend changes.
Oversold (30–)
Price has fallen significantly and may be due for a bounce. Consider looking for long entries with trend confirmation.
Key insight: RSI levels are not buy/sell signals on their own. They indicate conditions that may lead to reversals. Always confirm with price action and other indicators.
Trading Strategies Using RSI
Strategy 1: Overbought/Oversold Reversal
The classic RSI strategy trades reversals when the indicator reaches extreme levels. This works best in ranging markets where price oscillates between support and resistance.
Entry Rules
Buy when RSI crosses above 30 from below (leaving oversold). Sell when RSI crosses below 70 from above (leaving overbought).
Exit Rules
Exit long when RSI reaches 70. Exit short when RSI reaches 30. Use ATR-based stop loss for risk management.
Strategy 2: RSI Divergence
Divergence occurs when price makes a new high/low but RSI does not confirm. This signals weakening momentum and potential trend reversal. Bullish divergence: price makes lower low, RSI makes higher low. Bearish divergence: price makes higher high, RSI makes lower high.
Entry Rules
Enter long on bullish divergence when price bounces off support. Enter short on bearish divergence when price rejects resistance.
Exit Rules
Target the previous swing high/low. Trail stop loss using 2× ATR. Exit if divergence is invalidated by new extreme.
Strategy 3: RSI Trend Confirmation
In trending markets, RSI stays in specific ranges. In uptrends, RSI tends to stay between 40-90. In downtrends, RSI stays between 10-60. Use these ranges to confirm trend direction and find pullback entries.
Entry Rules
In an uptrend (confirmed by moving averages), buy when RSI pulls back to 40-50 zone. In a downtrend, sell when RSI rallies to 50-60 zone.
Exit Rules
Exit when RSI breaks out of the trending range (e.g., drops below 40 in uptrend or rises above 60 in downtrend).
Combining RSI with Other Indicators
RSI works best when combined with complementary indicators that provide different types of market information:
- RSI + MACD: Use MACD for trend direction and RSI for entry timing. Enter when both align.
- RSI + Bollinger Bands: When RSI is oversold and price touches the lower Bollinger Band, the probability of a bounce increases significantly.
- RSI + Moving Averages: Use SMA(200) for trend direction, only take RSI oversold signals in uptrends and overbought signals in downtrends.
- RSI + ADX: Use ADX to determine if the market is trending. In trending markets (ADX > 25), shift RSI thresholds to 80/20.
RSI Across Different Timeframes
RSI interpretation varies by timeframe. Here's how to adapt your approach:
- M1–M15 (Scalping): RSI(9) or RSI(7) with 80/20 thresholds. Very fast signals but more noise.
- M30–H1 (Day Trading): RSI(14) with standard 70/30. Most common setup for intraday traders.
- H4 (Swing Trading): RSI(14) divergence signals are highly reliable. Best for multi-day positions.
- D1 (Position Trading): RSI(14) or RSI(21) for smoother signals. Divergence on daily charts can signal major trend reversals.
Accessing RSI via TickAtlas API
https://tickatlas.com/v1/indicator Python Example
import requests
url = "https://tickatlas.com/v1/indicator"
headers = {"X-API-Key": "YOUR_API_KEY"}
params = {
"symbol": "EURUSD",
"indicator": "RSI_14",
"timeframe": "H1"
}
response = requests.get(url, headers=headers, params=params)
data = response.json()
print(data) Sample Response
{
"symbol": "EURUSD",
"indicator": "RSI_14",
"timeframe": "H1",
"timestamp": "2026-03-21T14:00:00Z",
"value": 58.43,
"signal": "neutral",
"metadata": {
"period": 14,
"source": "live"
}
} Common Mistakes to Avoid
- 1
Trading RSI overbought/oversold signals in strong trends — RSI can stay overbought for extended periods during strong uptrends, leading to premature exits or counter-trend trades.
- 2
Using default RSI(14) period for all timeframes — shorter timeframes may benefit from longer RSI periods (21-25) to reduce noise, while longer timeframes may work better with shorter periods (7-9).
- 3
Ignoring divergence context — not all divergences lead to reversals. Hidden divergence (trend continuation) is often overlooked but equally powerful.
- 4
Treating 70/30 as rigid thresholds — in strong trends, consider adjusting to 80/20 for overbought/oversold. Some traders use 60/40 in ranging markets.
- 5
Using RSI in isolation — RSI works best when combined with price action, support/resistance, and trend indicators like moving averages or ADX.
Frequently Asked Questions
What is a good RSI setting for day trading?
For day trading on 5-minute to 1-hour charts, many traders use RSI(14) with adjusted levels of 80/20 instead of 70/30. Some prefer RSI(9) for faster signals on very short timeframes. The key is to backtest different settings for your specific market and timeframe.
What does RSI above 70 mean?
RSI above 70 indicates the asset is potentially overbought, meaning price has risen significantly and may be due for a pullback or consolidation. However, in strong uptrends, RSI can remain above 70 for extended periods, so this should not be used as a standalone sell signal.
How do you use RSI for swing trading?
For swing trading, use RSI(14) on the H4 or D1 timeframe. Look for RSI divergence at key support/resistance levels. Enter trades when RSI confirms a reversal pattern and exits oversold/overbought territory. Combine with trend analysis using moving averages.
What is RSI divergence?
RSI divergence occurs when price and RSI move in opposite directions. Bullish divergence: price makes a lower low while RSI makes a higher low (signals potential upward reversal). Bearish divergence: price makes a higher high while RSI makes a lower high (signals potential downward reversal).
Is RSI a leading or lagging indicator?
RSI is classified as a leading indicator because it can signal potential reversals before they occur through overbought/oversold readings and divergence patterns. However, like all indicators, it works best as a confirming tool rather than a standalone predictor.
How to access RSI data via API?
TickAtlas provides real-time RSI data across 7 timeframes via a simple REST API call: GET /v1/indicator?symbol=EURUSD&indicator=RSI_14&timeframe=H1. Sign up for a free API key to start accessing RSI data programmatically.
Continue learning
More oscillator indicators
- Indicator
Stochastic Oscillator (Stochastic)
The Stochastic Oscillator compares the closing price to the price range over a given period.
Read more - Indicator
Moving Average Convergence Divergence (MACD)
MACD is a trend-following momentum indicator that shows the relationship between two EMAs.
Read more - Indicator
Bollinger Bands (BB)
Bollinger Bands consist of a middle SMA band with upper and lower bands at standard deviations.
Read more - Indicator
Commodity Channel Index (CCI)
CCI measures the deviation of price from its statistical mean.
Read more
Ready to use RSI data in your application?
Start your free trial and access real-time RSI data across 7 timeframes.