Stockenza Method
Section · 3 metrics

RSI

The Relative Strength Index — a momentum oscillator.

01
RSI (14)
The Relative Strength Index is a momentum oscillator that measures the speed and magnitude of recent price movements on a 0–100 scale.
💡 The Idea

The Relative Strength Index is a momentum oscillator that measures the speed and magnitude of recent price movements on a 0–100 scale. It tells you whether a stock has been bought or sold too aggressively.

❓ Why It Matters

RSI is the most popular momentum indicator in the world. It answers one simple question: is the stock overbought or oversold? Above 70 suggests overbought; below 30 suggests oversold. Traders use it to time entries; investors use it to avoid chasing peaks. It's also the foundation of divergence analysis — one of the few leading indicators in technical analysis.

📐 The Formula
RSI = 100 − (100 ÷ (1 + RS)) Where: RS = Average Gain ÷ Average Loss over the last 14 periods Both averages use Wilder's smoothing method
🔌 Data Sources

Yahoo Finance, NSE

🔬 How We Compute It

We compute RSI using the standard 14-period Wilder smoothing method — the original, most widely used formula. Prices come from the stock's daily close history. Wilder's method gives more weight to recent data while still smoothing out the noise.

📊 How to Read It
  • Above 70 → overbought; may see a pullback.
  • 60 to 70 → strong momentum; trend is up.
  • 40 to 60 → neutral; no clear bias.
  • 30 to 40 → weakening momentum.
  • Below 30 → oversold; may see a bounce.
  • RSI can stay overbought or oversold for weeks in strong trends — never use it alone.
⚠️ Common Mistakes
  1. Assuming overbought = sell — in a strong uptrend, RSI stays above 70 for weeks.
  2. Buying just because RSI is below 30 — some stocks keep falling to RSI 10.
  3. Using RSI without trend context — combine with moving averages or price structure.
02
RSI Sentiment
A five-band interpretation of the RSI value, from Very Positive (oversold) to Very Negative (overbought).
💡 The Idea

A five-band interpretation of the RSI value, from Very Positive (oversold) to Very Negative (overbought). It converts the raw 0–100 number into an instantly readable label.

❓ Why It Matters

RSI is a continuous number that's hard to judge at a glance. This sentiment translates it into a clear reading. The bands are deliberately inverted from intuition: low RSI is 'Very Positive' because an oversold stock has higher bounce potential; high RSI is 'Very Negative' because an overbought stock is at higher reversal risk.

📐 The Formula
RSI → band (inverted): RSI < 30 → Very Positive - Oversold RSI < 40 → Positive - Near Oversold RSI < 60 → Neutral - Balanced RSI < 70 → Negative - Near Overbought RSI ≥ 70 → Very Negative - Overbought
🔌 Data Sources

Computed

🔬 How We Compute It

The RSI value is bucketed into five bands using fixed thresholds (30, 40, 60, 70). Note that lower RSI gets more positive sentiment — this reflects the mean-reverting bias of the oscillator.

📊 How to Read It
  • Very Positive → deeply oversold; strongest bounce potential.
  • Positive → near oversold.
  • Neutral → RSI in the middle of its range.
  • Negative → near overbought.
  • Very Negative → overbought; highest reversal risk.
  • Works best in ranging markets — less reliable in strong trends.
⚠️ Common Mistakes
  1. Trading purely on the sentiment band — context matters.
  2. Ignoring the trend — oversold in a downtrend isn't a buy.
  3. Forgetting that RSI can stay extreme for weeks.
03
RSI Divergence
Divergence occurs when price and RSI move in opposite directions — price making a new high while RSI makes a lower high, or vice versa.
💡 The Idea

Divergence occurs when price and RSI move in opposite directions — price making a new high while RSI makes a lower high, or vice versa. It's a warning that momentum is fading. We detect four types: Regular Bullish, Regular Bearish, Hidden Bullish, and Hidden Bearish.

❓ Why It Matters

Divergence is one of the few leading signals in technical analysis — it often precedes a reversal before price confirms. Regular divergence suggests a trend is about to reverse; hidden divergence suggests a trend is about to continue. It's a favourite of experienced traders for early entries.

📐 The Formula
Using swing points (order=3) over a 20-day lookback window: Regular Bullish → Price makes LOWER LOW, RSI makes HIGHER LOW Regular Bearish → Price makes HIGHER HIGH, RSI makes LOWER HIGH Hidden Bullish → Price makes HIGHER LOW, RSI makes LOWER LOW Hidden Bearish → Price makes LOWER HIGH, RSI makes HIGHER HIGH Otherwise → 'No divergence'
🔌 Data Sources

Computed

🔬 How We Compute It

We use argrelextrema to find swing highs and lows in both the price series and the RSI series. Then we compare the last two swing points in each series over a rolling 20-day window. When price and RSI disagree on direction, we classify the divergence type.

📊 How to Read It
  • Regular Bullish → potential reversal UP; strongest when RSI was oversold.
  • Regular Bearish → potential reversal DOWN; strongest when RSI was overbought.
  • Hidden Bullish → continuation of an uptrend expected.
  • Hidden Bearish → continuation of a downtrend expected.
  • 'No divergence' means price and momentum are aligned.
  • Divergence is a warning, not a trigger — wait for price confirmation.
⚠️ Common Mistakes
  1. Acting on divergence immediately — it can persist for weeks before price responds.
  2. Missing hidden divergences — they're less famous but equally useful.
  3. Over-trading — divergences are common; filter for ones that occur at obvious support/resistance.
🔗 Related Metrics