What is the McClellan Oscillator and how is it calculated?
The McClellan Oscillator is an indicator of market breadth momentum that measures the speed at which advancing and declining stocks are changing across an entire stock exchange. Sherman and Marian McClellan developed the tool in 1969, adapting exponential smoothing techniques introduced by rocket engineer Peter Haurlan.
Instead of tracking the price of a single asset, the McClellan Oscillator evaluates the net breadth of an exchange such as the New York Stock Exchange (NYSE) or the Nasdaq. Daily net advances equal the number of advancing stocks minus the number of declining stocks. The oscillator subtracts a slower 39-day exponential moving average (EMA) of net advances from a faster 19-day EMA:
- Net Advances: Advancing Stocks - Declining Stocks
- 19-Day EMA Multiplier: 2 / (19 + 1) = 0.10 (a 10% smoothing factor)
- 39-Day EMA Multiplier: 2 / (39 + 1) = 0.05 (a 5% smoothing factor)
- McClellan Oscillator Formula: (19-Day EMA of Net Advances) - (39-Day EMA of Net Advances)
Consider an exchange where 1,800 stocks advance and 1,200 stocks decline. The day's net advance is +600. If the prior day's 19-day EMA was +150, the updated 19-day EMA becomes (+600 - 150) * 0.10 + 150 = +195. If the prior day's 39-day EMA was +100, the updated 39-day EMA becomes (+600 - 100) * 0.05 + 100 = +125. The McClellan Oscillator for that session equals +195 minus +125, or +70.
Modern platforms frequently use Ratio-Adjusted Net Advances (RANA) to keep readings comparable across decades as the total number of listed companies changes. RANA divides net advances by total active issues: (Advances - Declines) / (Advances + Declines), typically multiplied by 1,000. In both versions, the math functions identically to a MACD indicator applied to market breadth rather than individual share price.
How do you spot a market breadth divergence?
A market breadth divergence occurs when a major index and the McClellan Oscillator move in opposite directions, revealing that the internal participation of stocks contradicts the index price. Because capitalization-weighted indexes like the S&P 500 give outsized weight to a handful of megacap companies, a headline index can reach new highs while the average stock is already declining.
In a healthy bull market, index highs coincide with broad participation across hundreds of individual stocks. When this happens, both the index and the McClellan Oscillator push upward in tandem. A divergence warns that the headline index is decoupling from the broad market.
| Divergence Type | Headline Index Action | McClellan Oscillator Action | Underlying Breadth Meaning |
|---|---|---|---|
| Bearish Divergence | Higher high | Lower high | Fewer stocks are participating; large caps mask underlying selling. |
| Bullish Divergence | Lower low | Higher low | Selling pressure is exhausting; more stocks are quietly stabilizing. |
| Confirmation | New trend high or low | Moves to new high or low | Broad participation supports the price move. |
| Breadth Thrust | Early breakout from lows | Surges above +100 | Sudden, broad-based buying wave invalidating bearish setups. |
During a bearish divergence, an index like the S&P 500 prints a higher swing high, but the McClellan Oscillator fails to exceed its previous peak. This reveals that the 19-day breadth momentum is decelerating relative to its 39-day trend. Conversely, during a bullish divergence, the index prints a lower swing low, but the oscillator forms a higher low, signaling that net declining issues are losing velocity.
Understanding these divergences requires tracking the underlying advance-decline line to observe whether capital is rotating into defensive pockets or broadening into cyclical leaders.
How do zero-line crosses confirm or invalidate divergences?
A divergence alone is only a potential warning sign, not an actionable signal. The McClellan Oscillator confirms a divergence only when it crosses its zero centerline in the direction of the divergence.
The zero line represents the exact point where the 19-day EMA equals the 39-day EMA. When the oscillator is positive, short-term net advances exceed intermediate-term net advances. When the oscillator is negative, short-term decliners dominate:
- Bearish Confirmation: A bearish divergence forms when the index hits a new high and the oscillator prints a lower high. The divergence is confirmed when the oscillator drops below zero. This cross confirms that net declining issues have overtaken advancing issues on a short-term basis.
- Bearish Invalidation: If an index keeps rising and the oscillator remains above zero, bouncing back toward +50 or +80, the bearish divergence is invalidated. In strong bull regimes, oscillators can show repeated lower highs while staying positive, indicating sustained, healthy breadth rather than a reversal.
- Bullish Confirmation: A bullish divergence forms when the index prints a lower low while the oscillator forms a higher low. The divergence is confirmed when the oscillator crosses above zero. This validates that short-term breadth has turned positive, ending the cascade of net declining days.
- Bullish Invalidation: If the oscillator forms a higher low but remains pinned deep below zero (such as between -40 and -80) before breaking lower, the divergence fails. Bear markets frequently display shallow oscillator bounces that cannot clear the zero line.
Pairing zero-line crosses with baseline moving averages helps investors filter out intraday noise and confirm multi-week shifts in market character.
Why do extreme overbought readings signal thrust rather than exhaustion?
Standard technical oscillators like RSI treat readings above 70 as overbought conditions ripe for a pullback. The McClellan Oscillator behaves differently: extreme readings above +100 or +120 often signal institutional accumulation rather than immediate exhaustion.
When the McClellan Oscillator moves from deeply oversold levels (below -100) to above +100 within a compressed window of 10 to 15 trading days, it triggers a breadth thrust. A breadth thrust reflects sudden, overwhelming demand where advancing stocks outnumber decliners by 3-to-1 or 4-to-1 ratios across multiple sessions.
When a breadth thrust occurs, any apparent bearish divergence on the chart is instantly wiped out. Rather than indicating that a market is unsustainably extended, an extreme positive spike shows that dry powder has returned to the market across cyclical, mid-cap, and value sectors simultaneously. History shows that sustained multi-month advances typically begin with an overbought McClellan Oscillator reading above +100, followed by a shallow pullback that holds above the zero line.
Conversely, an extreme reading below -100 indicates aggressive, indiscriminate liquidation. If the oscillator plummets below -100 without a prior divergence, it points to a momentum washout where stop-losses are triggered across the broader exchange.
Where does the McClellan Oscillator fail?
The McClellan Oscillator has clear structural limitations that lead to false signals if relied on in isolation.
First, sideways consolidation creates frequent whipsaws around the zero line. When the S&P 500 trades within a tight range, advancing and declining stocks oscillate day to day. The 19-day and 39-day EMAs converge, causing the oscillator to cross above and below zero every three to five sessions without any directional follow-through.
Second, exchange composition changes can distort headline breadth numbers. Historically, NYSE breadth included preferred shares, closed-end bond funds, and interest-rate-sensitive structured products alongside common operating companies. During periods of shifting interest rates, bond funds and preferreds can decline heavily due to bond yields even while operating equities rally, creating an artificial negative breadth divergence.
Third, strong bull markets can produce multiple unconfirmed divergences over several months. A powerful trend driven by high-quality balance sheets can push major indexes higher while lower-quality speculative stocks drop off. Calling tops based purely on an oscillator divergence often results in stepping out of strong uptrends prematurely.
At Cluenex, standalone technical patterns and breadth oscillators are evaluated as market context rather than mechanical trading signals. Quantitative testing shows that breadth momentum reflects broad sentiment shifts, but durable investment outcomes require evaluating company profitability, competitive moats, and financial health alongside breadth data.
What this means for you
If you manage your own portfolio through a standard brokerage account or workplace 401(k), the McClellan Oscillator is best used as a risk dial rather than an execution trigger:
- Check breadth before adding aggressive risk: If a headline index is breaking out to all-time highs but the McClellan Oscillator has dropped below zero after a lower high, avoid chasing extended momentum stocks. The divergence suggests the rally lacks widespread participation.
- Do not short solely on a divergence: A lower high on an oscillator only means breadth momentum has slowed, not that a market crash is imminent. Wait for the oscillator to break below zero, and wait for the price chart itself to break key support levels.
- Respect breadth thrusts: If the market drops sharply and then rebounds with the McClellan Oscillator blasting past +100, do not assume it is merely a dead-cat bounce. Treat an extreme breadth surge as evidence of institutional buying and look for quality setups on subsequent pullbacks.
- Maintain disciplined position sizing: Never alter an entire portfolio allocation based on a breadth indicator. Use systematic position sizing and predefined stop-loss rules so that any individual false signal causes minimal financial damage.