McClellan Oscillator Calculator

Calculate the McClellan Oscillator and Summation Index from advances and declines data. Identify overbought/oversold market breadth conditions and breadth thrust signals.

Advances & Declines Data

Format: Advancing Issues, Declining Issues (comma separated)

McClellan Oscillator Formula

Net Advances = Advances − Declines

McClellan = 19-day EMA(A-D) − 39-day EMA(A-D)

Summation Index = Cumulative Sum of McClellan

McClellan Oscillator
+119.25
Summation Index
+1,119
Net Advances
+600
19-Day EMA
538.51
39-Day EMA
419.26
Market Breadth:Overbought

Market breadth is extremely strong. Consider taking profits or waiting for pullback.

Quick Reference

  • > +100: Overbought (potential pullback)
  • +50 to +100: Strong bullish breadth
  • -50 to +50: Neutral zone
  • -100 to -50: Strong bearish breadth
  • < -100: Oversold (potential bounce)
DayAdvancesDeclinesNet A-D19-EMA39-EMAMcClellanSummation
12,0001,800+200200.00200.00+0.00+0
22,1001,700+400220.00210.00+10.00+10
31,9001,900+0198.00199.50-1.50+9
42,2001,600+600238.20219.53+18.67+27
52,0501,750+300244.38223.55+20.83+48
61,8501,950-100209.94207.37+2.57+51
72,1501,650+500238.95222.00+16.95+68
82,3001,500+800295.05250.90+44.15+112
92,1001,700+400305.55258.36+47.19+159
101,9501,850+100284.99250.44+34.55+193
112,2501,550+700326.49272.92+53.58+247
122,4001,400+1,000393.84309.27+84.57+332
132,2001,600+600414.46323.81+90.65+422
142,0501,750+300403.01322.62+80.40+503
152,3501,450+900452.71351.49+101.23+604
162,1501,650+500457.44358.91+98.53+702
172,0001,800+200431.70350.97+80.73+783
182,3001,500+800468.53373.42+95.11+878
192,4501,350+1,100531.67409.75+121.93+1,000
202,2001,600+600538.51419.26+119.25+1,119

How to Use the McClellan Oscillator Calculator

  1. Enter Breadth Data: Input daily advancing and declining issues, one day per line, comma-separated. You can get this data from NYSE, NASDAQ, or other exchanges.
  2. Review the Oscillator: The McClellan Oscillator shows the difference between the 19-day and 39-day EMAs of net advances. Positive values indicate bullish breadth; negative values indicate bearish breadth.
  3. Check the Summation Index: The cumulative sum of the McClellan Oscillator provides a longer-term view of market breadth trends.
  4. Identify Extremes: Values above +100 suggest overbought conditions; below -100 suggest oversold conditions. Watch for breadth thrusts as potential trend signals.

What is the McClellan Oscillator?

The McClellan Oscillator is a market breadth indicator developed by Sherman and Marian McClellan in 1969. It measures the momentum of advancing versus declining stocks by calculating the difference between two exponential moving averages (19-day and 39-day) of net advances (advancing issues minus declining issues).

Unlike price-based indicators that focus on index levels, the McClellan Oscillator reveals the underlying health of the market by showing whether the majority of stocks are participating in a move. This makes it invaluable for confirming trends and identifying potential reversals.

McClellan Oscillator Formula

The calculation involves three steps:

  1. Net Advances: Calculate the difference between advancing and declining issues each day (A - D).
  2. Calculate EMAs: Compute the 19-day EMA and 39-day EMA of the net advances. The EMA formula uses a multiplier of 2/(period + 1).
  3. McClellan Oscillator: Subtract the 39-day EMA from the 19-day EMA. This gives you the oscillator value.

McClellan Summation Index

The McClellan Summation Index is the cumulative sum of daily McClellan Oscillator values. While the oscillator is a short-term indicator, the Summation Index provides a longer-term perspective on market breadth trends.

  • Rising Summation Index: Indicates sustained bullish breadth and a healthy uptrend.
  • Falling Summation Index: Indicates sustained bearish breadth and a weakening market.
  • Zero Line Crossings: Crossings above or below zero can signal intermediate-term trend changes.

Interpreting the McClellan Oscillator

  • Above +100 (Overbought): Extremely strong breadth. While bullish, the market may be due for a pullback or consolidation.
  • +50 to +100 (Bullish): Healthy positive breadth momentum. More stocks advancing than declining.
  • -50 to +50 (Neutral): No strong directional bias in market breadth.
  • -100 to -50 (Bearish): Negative breadth momentum. More stocks declining than advancing.
  • Below -100 (Oversold): Extremely weak breadth. While bearish, the market may be due for a bounce.

Breadth Thrust Signals

A breadth thrust occurs when the McClellan Oscillator moves rapidly from oversold territory (below -50) to overbought territory (above +50) within a short period. This rare signal historically precedes significant market rallies.

The famous "Zweig Breadth Thrust" looks for the 10-day EMA of advances/(advances + declines) to move from below 0.40 to above 0.615 within 10 days. While our calculator uses a simplified version, the concept remains the same: rapid breadth improvement is bullish.

Trading with the McClellan Oscillator

  • Confirm Trends: Use the oscillator to confirm price trends. A rising market with positive breadth is more sustainable than one with negative breadth.
  • Identify Divergences: When price makes new highs but the oscillator doesn't, it may signal weakening breadth and a potential reversal.
  • Overbought/Oversold: Use extreme readings as potential entry or exit signals, but always confirm with other indicators.
  • Zero Line Crossings: Crossings above zero can signal bullish momentum; crossings below zero can signal bearish momentum.

Where to Get Advances/Declines Data

  • NYSE: The New York Stock Exchange publishes daily advancing and declining issues data.
  • NASDAQ: Similar breadth data is available for NASDAQ-listed stocks.
  • Financial Data Providers: Services like Bloomberg, Reuters, and free sources like Yahoo Finance provide historical breadth data.
  • TradingView: The $ADV and $DECL symbols show advancing and declining issues.

FAQs

What is a good McClellan Oscillator reading?

A "good" reading depends on context. Positive values indicate bullish breadth, while negative values indicate bearish breadth. Readings between +50 and -50 are considered neutral. Extreme readings above +100 or below -100 often precede reversals.

How is the McClellan Oscillator different from RSI?

RSI measures price momentum of a single security, while the McClellan Oscillator measures market breadth—the number of stocks advancing versus declining. The oscillator shows whether the broader market is participating in a move, not just the index itself.

What is the McClellan Summation Index used for?

The Summation Index is the cumulative total of daily McClellan Oscillator values. It provides a longer-term view of market breadth trends and is useful for identifying intermediate-term market direction.

Why use 19-day and 39-day EMAs?

These periods were chosen by Sherman McClellan based on extensive research. The 19-day EMA captures short-term breadth momentum, while the 39-day EMA captures intermediate-term trends. The difference between them reveals changes in breadth momentum.

Track Market Breadth? Build Custom Alerts with Pine Script

Now that you understand market breadth, let Pineify's AI create custom Pine Script indicators that alert you when the McClellan Oscillator reaches extreme levels or crosses key thresholds—all automatically on TradingView.