StockEducation
The advanced course

Chapter 27 · Oscillators

Divergence, failure swings and the settings that matter

The highest-value oscillator reading, its worst failure mode, and how period choice changes everything.

48 of 66 · 12 min

RSI and the two thresholds

1007050300overboughtoversoldRSI = 100 − 100 ÷ (1 + average gain ÷ average loss)
RSI is bounded at 0 and 100. Above 70 is called overbought and below 30 oversold, but in a strong trend it can sit at an extreme for weeks.

Threshold readings — above 70, below 30 — are the most quoted and least useful thing an oscillator produces. Divergence and failure swings are where the information is.

The four divergences

TypePriceOscillatorConventional reading
Regular bearishHigher highLower highAdvance losing force
Regular bullishLower lowHigher lowDecline losing force
Hidden bearishLower highHigher highContinuation of a downtrend
Hidden bullishHigher lowLower lowContinuation of an uptrend

Regular divergence suggests a reversal; hidden divergence suggests continuation. Most people learn only the first two and then find the indicator 'wrong' during strong trends, when hidden divergence is what is actually present.

Worked: reading a regular bearish divergence

First peakSecond peak
PriceRs 505Rs 528
RSI(14)7668
  • Price made a higher high; RSI made a lower high. That is regular bearish divergence.
  • What it actually says: the rate of advance into the second peak was lower than into the first. Nothing more.
  • It does not say the top is in. Divergence can persist through several higher highs in a powerful trend.
  • It is a reason to tighten risk, not a signal to sell short. Traders who short every divergence in a strong uptrend lose consistently.

Failure swings — Wilder's own preferred signal, largely forgotten

  1. 1In an uptrend: RSI rises above 70, falls back, then fails to exceed its prior peak on the next rally, and finally breaks its intervening low.
  2. 2In a downtrend: the mirror image below 30.
  3. 3The advantage over divergence is that a failure swing has a defined trigger — the break of the intervening RSI low — rather than being a judgement about two peaks.

Period length changes the reading entirely

RSI periodBehaviourSuits
7Reaches extremes constantlyShort holding periods, more false readings
14Wilder's defaultThe convention almost everyone plots
21Rarely reaches 70 or 30Longer horizons; extremes become meaningful

A stock that 'never gets oversold' on RSI(21) may be oversold constantly on RSI(7). Before comparing your reading with anyone else's, check you are plotting the same period.

MACD, signal line and histogram

zeroMACD = 12-EMA − 26-EMAsignal = 9-EMA of MACDhistogram = MACD − signal
The histogram is the gap between the MACD line and its signal line. It shrinks toward zero before every crossover, which is the part worth watching.

Saved in this browser only — there is no account to create. Clearing your browser data clears your progress.