McClellan Oscillator Calculator
Technical indicators
- Net advances: 1,840 advancing issues minus 960 declining issues gives a net of 880 for the session.
- Ratio EMAs: the fast average updates as 0.10 x 880 + 0.90 x 210.50 = 277.45; the slow one as 0.05 x 880 + 0.95 x 145.25 = 181.99.
- Spread: 277.45 - 181.99 = 95.46 - the McClellans' oscillator is the gap between the two trend speeds of breadth.
- McClellan oscillator result: 95.46, with positive readings marking breadth momentum in the buyers' favour.
An index can rise while most of its stocks fall, carried by a few heavyweights. The McClellan oscillator exists to catch that lie: it works on market breadth - the daily count of advancing versus declining issues - and turns the contest into a momentum gauge that no capitalisation weighting can distort.
Sherman and Marian McClellan's construction smooths net advances at two speeds using ratio-adjusted averages: the fast average gives today's net a weight of 0.10 (the 19-period form) and the slow one 0.05 (the 39-period form). The oscillator is the fast minus the slow. With 1,840 advancers against 960 decliners, a net of 880 updates the fast average to 277.45 and the slow to 181.99 in the first worked example, leaving an oscillator of 95.46.
This calculator takes today's advancing and declining counts and the two averages through yesterday, applies both updates, and returns the oscillator - so a breadth panel from any data vendor can be audited from four numbers.
Worked examples
McClellan oscillator on broad strength
(1840 · 960 · 210.5 · 145.25)
| McClellan oscillator | 95.46 |
| Net advances today | 880 |
| 19-period ratio EMA today | 277.45 |
| 39-period ratio EMA today | 181.99 |
McClellan oscillator in a breadth collapse
(720 · 2130 · -85.4 · -40.6)
| McClellan oscillator | -108.79 |
| Net advances today | -1,410 |
| 19-period ratio EMA today | -217.86 |
| 39-period ratio EMA today | -109.07 |
McClellan oscillator at stalemate
(1420 · 1385 · 12.75 · 9.5)
| McClellan oscillator | 4.20 |
| Net advances today | 35 |
| 19-period ratio EMA today | 14.98 |
| 39-period ratio EMA today | 10.78 |
Breadth at two speeds
The ratio-adjusted form is exponential smoothing written as a percentage update: each day, the average moves a fixed fraction of the way toward today's net advances. Ten percent a day compounds to the responsiveness of a 19-period average; five percent, to a 39-period one. The oscillator is then a MACD for breadth - the gap between how fast breadth is moving now and how fast it has been moving.
That gap is the information. A rising index on a rising oscillator is internally healthy; a rising index on a falling oscillator is being carried by fewer and fewer stocks, the classic late-trend signature. Because every issue counts once, the oscillator hears the median stock, which the index itself cannot.
| Oscillator zone | Reading | Typical context |
|---|---|---|
| Strongly positive | Breadth momentum surging | Breadth thrusts and healthy advances |
| Near zero | Breadth in balance | Chop, transitions, stalemate between buyers and sellers |
| Strongly negative | Breadth momentum collapsing | Corrections and internal washouts |
Thrusts, extremes and divergence
The oscillator's most studied pattern is the breadth thrust: a violent swing from deeply negative to strongly positive in a short span, marking the moment a washout flips into broad-based buying. Thrusts are rare and have historically clustered near durable market bottoms, because they require not just a bounce but a stampede - thousands of issues advancing at once, which is what the net of 880 in the first example begins to describe.
Divergence is the quieter signal. When an index makes successive new highs while the oscillator's highs descend, participation is narrowing under the surface. The second worked example shows the opposite extreme - a net of -1,410 driving the oscillator to -108.79 - which is capitulation arithmetic, not yet a bottom signal: bottoms are marked by the thrust that follows such readings, not by the readings themselves.
- Use one consistent universe - NYSE or Nasdaq - for the advance and decline counts; mixing universes breaks comparability.
- The previous-average inputs are yesterday's closing values of the two ratio EMAs; the calculator applies today's update.
- The oscillator is breadth momentum, not index momentum; the two diverging is the signal, not an error.
- The balanced third example nets just 35 issues and reads 4.20 - breadth in near-perfect stalemate.
- Extreme negative readings mark washouts; the tradable event is the thrust that follows, not the extreme itself.
Worked examples
Example 1: Advancing issues today 1840; Declining issues today 960; 19-period ratio EMA through yesterday 210.5; 39-period ratio EMA through yesterday 145.25. McClellan oscillator = 95.46. Supporting values: Net advances today 880; 19-period ratio EMA today 277.45; 39-period ratio EMA today 181.99. Net advances: 1,840 advancing issues minus 960 declining issues gives a net of 880 for the session. Ratio EMAs: the fast average updates as 0.10 x 880 + 0.90 x 210.50 = 277.45; the slow one as 0.05 x 880 + 0.95 x 145.25 = 181.99. Spread: 277.45 - 181.99 = 95.46 - the McClellans' oscillator is the gap between the two trend speeds of breadth. McClellan oscillator result: 95.46, with positive readings marking breadth momentum in the buyers' favour.
Example 2: Advancing issues today 720; Declining issues today 2130; 19-period ratio EMA through yesterday -85.4; 39-period ratio EMA through yesterday -40.6. McClellan oscillator = -108.79. Supporting values: Net advances today -1,410; 19-period ratio EMA today -217.86; 39-period ratio EMA today -109.07. Net advances: 720 advancing issues minus 2,130 declining issues gives a net of -1,410 for the session. Ratio EMAs: the fast average updates as 0.10 x -1,410 + 0.90 x -85.40 = -217.86; the slow one as 0.05 x -1,410 + 0.95 x -40.60 = -109.07. Spread: -217.86 - -109.07 = -108.79 - the McClellans' oscillator is the gap between the two trend speeds of breadth. McClellan oscillator result: -108.79, with positive readings marking breadth momentum in the buyers' favour.
Example 3: Advancing issues today 1420; Declining issues today 1385; 19-period ratio EMA through yesterday 12.75; 39-period ratio EMA through yesterday 9.5. McClellan oscillator = 4.20. Supporting values: Net advances today 35; 19-period ratio EMA today 14.98; 39-period ratio EMA today 10.78. Net advances: 1,420 advancing issues minus 1,385 declining issues gives a net of 35 for the session. Ratio EMAs: the fast average updates as 0.10 x 35 + 0.90 x 12.75 = 14.98; the slow one as 0.05 x 35 + 0.95 x 9.50 = 10.78. Spread: 14.98 - 10.78 = 4.20 - the McClellans' oscillator is the gap between the two trend speeds of breadth. McClellan oscillator result: 4.20, with positive readings marking breadth momentum in the buyers' favour.
McClellan oscillator vs summation index
The summation index is the oscillator's cumulative sibling: it simply adds each day's oscillator value to a running total, producing a line that behaves like a breadth-based index. The two answer different questions. The summation index describes breadth's long trend - its direction over months is a bull/bear regime gauge - while the oscillator, being the summation's rate of change, describes breadth's current momentum and turns far earlier.
A common workflow uses both: the summation index for permission (trade with its trend), the oscillator for timing and warnings (thrusts, extremes, divergences against the price index). Confusing them leads to a characteristic error - treating a negative oscillator as a bearish regime call, when deeply negative oscillator readings inside a rising summation trend are usually just the market breathing.
McClellan oscillator in practice
For index traders the oscillator's daily discipline is a sponsorship check: is today's index move broad or narrow? Moves on expanding breadth (oscillator rising with price) tend to persist; moves on narrowing breadth are loans against future participation. Position sizing that respects that distinction - full size on broad moves, reduced on narrow ones - is the indicator's most reliable contribution.
Audit your vendor before building on it: feed this calculator a day's advancers, decliners and the two prior averages, and confirm the updated averages and the oscillator. The arithmetic is four operations; any disagreement is a data-universe difference upstream, and knowing that early saves misreading every signal downstream.
Reading the three examples
The first example, at 95.46, is broad health: a net of 880 advancers pulling both averages up, the fast one decisively ahead. The third example is the opposite texture - net advances of just 35 and an oscillator of 4.20, a market split down the middle where index moves, if any, are being made by heavyweights rather than by the crowd.
The second example is the washout: 720 advancers against 2,130 decliners, net -1,410, oscillator -108.79. Read it as a measurement, not a forecast. It says breadth momentum has collapsed; whether that collapse is the end of a correction or the middle of one is a question the subsequent thrust - or its absence - answers.
Context from the summation index completes the oscillator's picture. A negative oscillator while the summation index still rises is breadth pausing inside an advancing regime - the commonest configuration in bull markets, and a poor reason to turn bearish. A negative oscillator with the summation index rolling over from a high is the genuinely dangerous pairing, breadth momentum and breadth trend failing together. The oscillator alone cannot distinguish those two situations, which is why this page insists on calling it a momentum gauge: momentum is what it measures, and regime questions must be carried to its cumulative sibling. Holiday-shortened weeks and half sessions distort the counts in a quieter way: fewer issues trade, net advances shrink mechanically, and the oscillator dips without any change in market character. Breadth veterans either ignore readings from visibly thin sessions or normalise by the number of issues traded. Either way, a breadth gauge is only as honest as the session behind it, and the calendar is part of the data.
FAQs
What McClellan oscillator value does the first example give?
95.46 - the updated 19-period ratio average of 277.45 minus the 39-period average of 181.99, on a day with net advances of 880.
What net advances does it start from?
880: 1,840 advancing issues minus 960 declining issues, the day's breadth before any smoothing.
What fast average results in that example?
277.45, from the update rule 0.10 x 880 + 0.90 x the previous average of 210.50.
What does the breadth-collapse example read?
-108.79, on net advances of -1,410 - capitulation arithmetic; the tradable signal would be a thrust following such a reading, not the reading itself.
What is the difference between the McClellan oscillator and the summation index?
The summation index cumulates the oscillator into a breadth trend line for regime judgement; the oscillator is its rate of change, used for momentum, thrusts and divergence - far earlier-turning and far noisier.
What oscillator value does the balanced example give?
4.20, from net advances of just 35 - breadth in near-perfect stalemate, where index moves are heavyweight-driven.