4.6.9Trading Strategies

Understand RSI-based trading systems

1,907 words9 min readdifficulty · medium

WHY does RSI exist?

Price alone is noisy. If a stock went up 5 days in a row, is that strength (buy!) or exhaustion (sell soon)? Traders wanted a bounded, normalized measure of momentum that:

  • Sits between 0 and 100 (so "overbought/oversold" thresholds make sense across any stock),
  • Compares the size of up-moves vs down-moves, not just their direction.

That is exactly what J. Welles Wilder's Relative Strength Index (RSI) does.


WHAT is RSI — the definition


HOW do we DERIVE the formula (from scratch)?

We want a single number in [0,100][0,100] that answers: "What fraction of recent movement was upward?"

Step 1 — Measure the tug-of-war. Bulls contribute total upward motion Uˉ\bar U; bears contribute total downward motion Dˉ\bar D. The natural "who's winning" ratio is RS=UˉDˉ.RS=\frac{\bar U}{\bar D}. Why this step? A ratio is scale-free — a ₹10 stock and a ₹5000 stock both give comparable RSRS.

Step 2 — Problem: RSRS is unbounded. If Dˉ0\bar D \to 0 (no down days), RSRS\to\infty. We need to squash [0,)[0,\infty) into [0,100][0,100].

Step 3 — The squashing trick. Consider the fraction of upward force: f=UˉUˉ+Dˉ.f=\frac{\bar U}{\bar U+\bar D}. This is already in [0,1][0,1]. Multiply by 100 to get a percentage. Now rewrite it in terms of RSRS by dividing top and bottom by Dˉ\bar D: f=Uˉ/DˉUˉ/Dˉ+1=RS1+RS.f=\frac{\bar U/\bar D}{\bar U/\bar D+1}=\frac{RS}{1+RS}. Why this step? We prefer RSRS because it's the intuitive "bull:bear" ratio.

Step 4 — Wilder's algebra. Note that 100f=100RS1+RS=100(1+RS)11+RS=1001001+RS.100\cdot f=100\cdot\frac{RS}{1+RS}=100\cdot\frac{(1+RS)-1}{1+RS}=100-\frac{100}{1+RS}.

So RSI=1001001+RS\boxed{RSI = 100-\frac{100}{1+RS}} is literally just the percentage of recent movement that was upward. That is the whole secret.

Wilder's smoothing (why 14 doesn't reset each bar): after the first simple average, updates use Uˉt=(n1)Uˉt1+Utn,Dˉt=(n1)Dˉt1+Dtn.\bar U_t=\frac{(n-1)\bar U_{t-1}+U_t}{n},\qquad \bar D_t=\frac{(n-1)\bar D_{t-1}+D_t}{n}. Why? This is an exponential-style memory so RSI reacts smoothly instead of jumping when an old bar drops out of the window.


RSI-based Trading SYSTEMS

A system = entry rule + exit rule + risk rule. Common ones:

Figure — Understand RSI-based trading systems

Worked Examples


Common Mistakes (Steel-man them)


Forecast-then-Verify

Recall Predict before you read the answer

Q: A stock had changes over 5 bars: −2, −1, −3, +1, +1. Guess: is RSI above or below 50? Then compute.

Gains: 0,0,0,1,1 → Uˉ=2/5=0.4\bar U = 2/5 = 0.4. Losses: 2,1,3,0,0 → Dˉ=6/5=1.2\bar D = 6/5 = 1.2. RS=0.4/1.2=1/3RS = 0.4/1.2 = 1/3. RSI=100100/(1+1/3)=10075=25RSI = 100 - 100/(1+1/3) = 100 - 75 = 25. Below 50, oversold. Your intuition ("mostly down") should have said "low RSI" — verified.


Feynman: explain to a 12-year-old

Recall Explain like I'm 12

Imagine a tug-of-war between a "buy" team and a "sell" team over the last 14 days. RSI is just the scoreboard from 0 to 100. If the buy team pulled way harder, the scoreboard climbs toward 100 (they're winning big — maybe too tired to keep it up). If the sell team dominated, it drops toward 0. When it's 50, it's a perfect tie. Traders watch: when one team is winning super hard (above 70 or below 30), sometimes the other team is about to fight back — but in a stampede, the strong team can keep winning for a long time, so you don't bet against them blindly.


Mnemonic


Active-Recall Flashcards

#flashcards/stock-market

What does RSI measure?
The speed/strength of recent price momentum — the % of recent movement that was upward, bounded 0–100.
State the RSI formula.
RSI=1001001+RSRSI = 100 - \dfrac{100}{1+RS} where RS=Uˉ/DˉRS = \bar U/\bar D.
Why is RSI bounded between 0 and 100?
Because it equals 100Uˉ/(Uˉ+Dˉ)100\cdot \bar U/(\bar U+\bar D), a fraction of total movement times 100.
What RSI value corresponds to equal average gains and losses?
50 (since RS=1RS=1).
What RSI results when there were no down-moves?
RS→∞ so RSI→100.
Default RSI lookback period (Wilder)?
14 periods.
What are the classic overbought/oversold thresholds?
70 (overbought) and 30 (oversold).
What is bearish RSI divergence?
Price makes a higher high but RSI makes a lower high → weakening momentum.
Why can't you blindly short at RSI 70 in a strong uptrend?
In strong trends RSI stays overbought (pins near 80+) for long periods; you'd short into a rally.
What is the RSI 50-line system?
Use RSI>50 to confirm uptrend (take longs) and RSI<50 for downtrend — a trend filter, not a reversal signal.
Wilder's smoothing update for average gain?
Uˉt=(n1)Uˉt1+Utn\bar U_t = \dfrac{(n-1)\bar U_{t-1}+U_t}{n}.
In RSI, how are losses entered into the formula?
As positive magnitudes (absolute value of down-moves).

Connections

  • Momentum Indicators
  • Moving Averages (200-day MA as trend filter for RSI(2))
  • MACD (another momentum/divergence tool)
  • Overbought and Oversold Concepts
  • Mean Reversion vs Trend Following
  • Stochastic Oscillator (cousin of RSI)
  • Divergence Analysis
  • Risk Management and Stop Loss

Concept Map

motivates need for

realized by

defines

form ratio

unbounded problem

fraction of up-force

times 100 gives

equals

updated by

gives smooth reaction

thresholds signal

drives

Noisy price data

Bounded momentum measure

RSI 0 to 100

Wilder n=14 window

Avg Gain U and Avg Loss D

Relative Strength RS = U/D

Squash into 0-100

f = RS / 1+RS

Percent of upward movement

Wilder smoothing

Overbought or Oversold

Trading system buy/sell rules

Hinglish (regional understanding)

Intuition Hinglish mein samjho

RSI ko samjho ek momentum ka speedometer ki tarah. Yeh price ka direction nahi batata, balki batata hai ki pichhle 14 din mein buyers ne kitni zor se ya sellers ne kitni zor se price ko khincha. Number hamesha 0 se 100 ke beech rehta hai. Formula bhi darasal simple hai: RSI = pichhle movement ka woh percentage jo upar ki taraf tha. Isiliye jab sirf up-days hote hain toh RSI 100 ke paas, sirf down-days pe 0 ke paas, aur barabar tug-of-war pe theek 50.

Trading system banane ke liye rules chahiye. Sabse popular: RSI 30 ke neeche = oversold = buy ka soch, aur 70 ke upar = overbought = sell/bye ka soch. Par yahan ek bada trap hai — strong uptrend mein RSI 80 ke upar hafton tak chipka reh sakta hai, toh blindly 70 pe short karoge toh rally mein ghus ke loss khaoge. Isiliye smart traders 50-line ko trend filter ki tarah use karte hain: uptrend mein sirf long lo (RSI mostly above 50), downtrend mein short.

Ek aur powerful tool hai divergence: agar price naya high bana raha hai lekin RSI ka high pehle se neeche hai, iska matlab momentum kamzor ho raha hai — reversal aa sakta hai. Yaad rakho losses ko hamesha positive number ki tarah count karte ho warna formula toot jaata hai. Bottom line: RSI akele signal nahi, balki confirmation aur context dene wala dost hai — price structure aur trend ke saath milaake use karo, tab strategy solid banti hai.

Test yourself — Trading Strategies

Connections