WhitmanTrading

What Is the McClellan Oscillator?

McClellan oscillator measures market breadth by taking the difference between advancing and declining stocks and smoothing it with two exponential averages. It describes participation rather than price, so an index can be rising while the oscillator falls — which is the divergence it exists to show.

An index price is a weighted average, and averages hide distributions. The McClellan oscillator exists to look at the distribution — how many things are actually going up.

How it works

A price series with advancing and declining counts marked.
The mcclellan oscillator measures advances minus declines. Illustrative chart - not real market data.

Start with net advances. Count the stocks that rose on the day, subtract those that fell. That single number is the raw breadth reading.

A steady series with two smoothing lines applied.
It is breadth, not price. Illustrative chart - not real market data.

Then smooth it twice and take the difference. A fast exponential average minus a slow one, applied to net advances rather than to price. The construction is the same idea as a MACD, pointed at participation.

A rising index with narrowing participation.
An index can rise while breadth falls. Illustrative chart - not real market data.

The output is a line oscillating around zero. Positive means breadth is improving relative to its recent trend; negative means deteriorating.

A falling series with a divergence between price and breadth.
That divergence is the whole point of it. Illustrative chart - not real market data.

And the interesting case is disagreement. An index making new highs on falling breadth means fewer and fewer names are doing the work, which the price chart cannot show you.

Why the index hides this

A choppy series where a few names dominate the average.
It needs a full exchange to compute. Illustrative chart - not real market data.

Most indices are weighted by size. A handful of very large companies can move the index by more than hundreds of small ones combined, so the headline number reflects a few names rather than the market.

Breadth counts every constituent equally. One company is one vote regardless of size, which is why the two measures can point in opposite directions for extended periods.

A slow series with breadth computed across a whole exchange.
So it does not exist for a single instrument. Illustrative chart - not real market data.

That also limits where it applies. You need a whole exchange or index membership to compute it. There is no McClellan oscillator for one stock, one currency pair or one commodity — the measure has no meaning below the level of a market.

A worked example

Suppose an index rises 8% over two months while the oscillator falls steadily.

What that describes is narrowing. The index gained, so the largest components rose. The oscillator fell, so more constituents were declining than advancing. Both are true, and only one is on the chart most people watch.

A calm series with breadth and price plotted together.
And it says nothing about when. Illustrative chart - not real market data.

This is genuine information and it is not a timing signal. Narrowing can persist for months. The divergence says the advance rests on fewer names; it does not say when that matters, and acting on it early is the standard way the observation costs money.

Direction runs on this site’s shared series average 2.01 bars with a longest of 11, which is the scale at which price moves. A breadth divergence unfolding over months is a completely different timescale, and pairing a slow observation with a fast instrument is where the mismatch bites.

A falling series with a stop level marked.
A stop fills where the market is. Illustrative chart - not real market data.

What it is good for

Context rather than entries. Knowing whether an advance is broad or narrow changes how much confidence a position deserves, without dictating the position.

Spotting exhaustion in an index without a price signal. The price chart looks healthy by definition at a high; breadth is one of the few places the weakness is visible while the price is not.

And confirming a low. A washed-out breadth reading with heavy declines is at least a measurement of capitulation, which price alone does not supply.

The original data

On this site’s shared series: direction runs average 2.01 bars with a longest of 11. Breakouts continued in 85% of 39 twenty-bar events. A round trip costs 0.0098, about 2% of the median bar range of 0.493.

The 85% continuation figure is the caution that matters here. Breadth divergence is an argument that an advance is fragile, and the measured tendency on this series is for advances to continue. Being early against that is expensive, and the oscillator provides no timing to reduce the exposure.

A candlestick chart annotated with the cost of a round trip.
A round trip costs a share of a bar. Illustrative chart - not real market data.
A price series with volume shown beneath.
Volume and price measure different things. Illustrative chart - not real market data.

The summation index

Running totals of the oscillator give the McClellan Summation Index, which is the same data accumulated rather than differenced.

It moves far more slowly and turns far less often. Where the oscillator swings around zero many times a year, the summation index describes multi-month conditions — so the two answer different questions from the same input.

The oscillator is the derivative; the summation is the level. Reading them as two signals rather than one measurement at two speeds is a common mistake, and it produces contradictions that are not really contradictions.

Both share the same limitation. Neither is a timing tool, both require a whole market to compute, and both describe participation rather than price. Adding the second one doubles the reading without adding a single piece of information about when anything happens.

When it fails

The characteristic failure is shorting an index on a breadth divergence. The observation is real and often correct eventually, and “eventually” is doing enormous work. Narrowing advances have continued for months at a time, and a short taken when the divergence first appears carries financing, pays costs, and faces a market that on this site’s measured data continues after a breakout 85% of the time. Being right about fragility and wrong about timing produces the same outcome as being wrong.

A candlestick series with a gap through a level.
A gap skips the level entirely. Illustrative chart - not real market data.

A second failure is applying it to a single instrument, where it does not exist.

A third is comparing readings across exchanges. The scale depends on how many stocks are listed, so one market’s extreme is not another’s.

A fourth is treating index membership changes as breadth changes, when constituents are added and removed for administrative reasons.

A declining series cut short at a decision point.
Breadth is falling while the index rises. Act? Illustrative chart - not real market data.

And a fifth is using it alone. It is a context measure, and a context measure with no entry rule attached is an opinion rather than a plan.

One practical note on the data. The advance-decline line it is built from counts every listed issue, including preferred shares, funds and trusts on some exchanges. Those are not operating companies, and on a venue with many of them the breadth reading is partly measuring something other than the stock market. Which issues are included is a detail worth checking before treating any extreme as meaningful.

Volume covers the other participation measure and how it differs. Market trend covers the price structure breadth is being compared against. And technical analysis covers the wider tradition.

What I actually do

Breadth is the one thing an index price genuinely hides. A handful of very large companies can carry an index higher while most of the market falls, and the index chart shows none of it. That is a real blind spot and this is the tool that looks into it.

— Michael Whitman

This page is educational, not financial advice. Test every idea on your own charts before risking money.