New Indicator: Nasdaq-100 market breadth with the McClellan Oscillator
Most indicators look at one price. Market breadth looks at all the stocks behind it: when an index falls, did most of its members fall, or did a few heavyweights drag it down? That difference matters, and until now you had to download a hundred symbols and count them yourself to see it.
Today we’re adding the McClellan Oscillator to TAAPI.IO. Request it on QQQ and we count, every trading day, how many of the 101 Nasdaq-100 securities closed up and how many closed down, then smooth the result into one number. No member list to maintain, no hundred requests.
Endpoint: mcclellan
Market: US stocks, symbol=QQQ, timeframe=1d
Optional inputs:
fastPeriod(default:19) andslowPeriod(default:39): the lengths of the two averages.ratioAdjusted(default:false):truescales the reading by the number of stocks that moved, so it lands on the familiar ±100 scale.
What it measures
Each day we take the number of members that closed above their previous close (advances) minus the number that closed below it (declines). The oscillator is a fast exponential average of that difference minus a slow one.
- Above zero: advances have been winning. Most stocks are taking part in the move up.
- Below zero: declines have been winning.
- Far below zero: selling has been broad and one-sided, what traders call oversold breadth.
Every response also returns the raw advances, declines, unchanged and net counts, so you can see each day’s split directly.
Last week, in breadth
The new indicator arrived in the middle of a sharp sell-off, which makes for a good example. These are the live values for the last five closes:
| Close | QQQ | Advances / declines | McClellan |
|---|---|---|---|
| Tue 17 Nov | 665.93 | 36 / 65 | −2.35 |
| Wed 18 Nov | 668.65 | 49 / 52 | −2.21 |
| Thu 19 Nov | 642.03 | 5 / 96 | −6.48 |
| Fri 20 Nov | 617.72 | 21 / 80 | −8.50 |
| Mon 23 Nov | 652.19 | 88 / 13 | −3.48 |
On Thursday only 5 of the 101 members closed higher. By Friday the oscillator had reached −8.50, its lowest close since 8 April 2025. With about 100 stocks counted, the classic reading rarely goes past ±10, so that’s a deep reading.
Then on Monday the picture flipped: 88 members rose and only 13 fell, and QQQ gained 5.6%. The oscillator is still below zero, because it smooths over weeks, but the daily counts show how broad that rebound was.
A deep reading tells you selling has been unusually broad, not that it has finished. The McClellan Oscillator page compares this week with the earlier lows since 2023 and shows what QQQ did after each one.
How to call it
curl -G https://v2.taapi.io/indicator/mcclellan \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "exchange=stocks" \
--data-urlencode "symbol=QQQ" \
--data-urlencode "timeframe=1d" \
--data-urlencode "backtrack=1"
backtrack=1 skips today’s session while it’s still trading, so you get the last completed day:
{
"value": [-3.4821360983063725],
"advances": [88],
"declines": [13],
"unchanged": [0],
"net": [75],
"timestamp": [1795392000]
}
Add results (up to about four years of daily values) for a series to chart or backtest, or put mcclellan in a bulk request next to your price indicators on QQQ. It counts as part of the same construct.
Good to know
- Members: the current Nasdaq-100 list, updated after each December reconstitution. Past values are counted over today’s members.
- Closes: our daily stock candles cover the extended session, 4:00 AM to 8:00 PM New York time. A stock that ends the regular session up but slips after hours counts as a decline, so values can differ slightly from charts built on 4:00 PM closes.
- Delivery: REST and bulk.
The full reference, with the formula, reading levels, Python examples and the historical case study, is on the McClellan Oscillator page. If you’d like breadth for another index, let us know.