P
PipsGrowth

Key Takeaways

Difficulty:Beginner
Reliability:High
Category:momentum
Timeframes:15M, 1H, 4H

Relative Strength Index (RSI)

momentumšŸ“Š 15M, 1H, 4H, Daily

RSI measures the speed and magnitude of price changes, oscillating between 0-100 to identify overbought and oversold conditions.

Formula

Code
RSI = 100 - (100 / (1 + RS))
RS = Average Gain / Average Loss over period

Detailed Explanation

The Relative Strength Index (RSI) is a momentum oscillator developed by J. Welles Wilder Jr. in 1978. It measures the speed and change of price movements on a scale of 0 to 100.

Key Levels:
- Above 70: Overbought territory
- Below 30: Oversold territory
- 50 Line: Centerline, indicates trend direction

Trading Applications:
1. Overbought/Oversold: Trade reversals at extremes
2. Divergences: Price vs RSI disagreement signals reversals
3. Failure Swings: RSI pattern that can precede price reversals

Trading Setup Example

Entry, stop loss, and take profit levels.

šŸ“ˆ Buy Setup
Relative Strength Index (RSI)703050Oversold!EntryTake ProfitStop LossCandlesIndicatorOversoldBUY
šŸ“‰ Sell Setup
Relative Strength Index (RSI)703050Overbought!EntryTake ProfitStop LossCandlesIndicatorOverboughtSELL

Always wait for signal confirmation before entering a trade.

Where This Indicator Works Best

Trend context and market position.

šŸ“ˆ Bullish Context
OBOSOversold!Ranging MarketBest Fit āœ“Buy Signal
šŸ“‰ Bearish Context
OBOSOverbought!Ranging MarketBest Fit āœ“Sell Signal

Detects overbought/oversold in trending and ranging markets.

Live Chart — Relative Strength Index (RSI)

See Relative Strength Index (RSI) in action on a live chart. Try changing the settings and timeframe.

Parameters

Period
Default: 14
RSI calculation period
Overbought
Default: 70
Overbought threshold
Oversold
Default: 30
Oversold threshold

šŸ“ˆ Bullish Signals

RSI crosses above 30 from oversold, bullish divergence, crosses above 50

šŸ“‰ Bearish Signals

RSI crosses below 70 from overbought, bearish divergence, crosses below 50

Python Implementation

RSI with overbought/oversold detection

Python
import pandas_ta as ta
df['RSI'] = ta.rsi(df['close'], length=14)
# Overbought/Oversold signals
df['rsi_overbought'] = df['RSI'] > 70
df['rsi_oversold'] = df['RSI'] < 30

TradingView Pine Script

JavaScript
//@version=5
indicator("RSI", overlay=false)
rsi = ta.rsi(close, 14)
plot(rsi, "RSI", color=color.purple)
hline(70, "Overbought", color=color.red)
hline(30, "Oversold", color=color.green)
hline(50, "Midline", color=color.gray)
šŸ“Š Use TradingView for Advanced Charting
Professional analysis tools with 100+ technical indicators
Get TradingView Pro

MT5 MQL5 Code

C++
int rsi_handle = iRSI(_Symbol, _Period, 14, PRICE_CLOSE);
double rsi[];
CopyBuffer(rsi_handle, 0, 0, 3, rsi);

Common Mistakes

āœ—Selling just because RSI is overbought in strong uptrend
āœ—Ignoring divergences in favor of raw values
āœ—Not adjusting period for different timeframes

Confirmation Signals

Price action at support/resistance
Volume spike
Candlestick patterns

Best For

Overbought/oversold conditionsDivergence tradingMomentum confirmation

šŸ’” Pro Tips

  • •In strong trends, RSI can stay overbought/oversold for extended periods
  • •Divergence between RSI and price is a powerful reversal signal
  • •Default period is 14, but adjust based on trading style
Last updated: February 8, 2026

Educational Disclaimer

This content is for educational purposes only and does not constitute financial or investment advice. Trading involves significant risk and you may lose your capital. Always consult a licensed financial advisor before making investment decisions.

Frequently Asked Questions

Relative Strength Index (RSI) - Complete Guide with Python & TradingView Code