Indicators›Momentum›McClellan Oscillator
GET/indicator/mcclellan

McClellan Oscillator

Category: Momentum · Market breadth · Updated November 2026


The TAAPI.IO McClellan Oscillator API returns the McClellan Oscillator for the Nasdaq-100 as JSON. It is a market breadth indicator: instead of looking at one price, it counts how many of the index's members closed up and how many closed down each day, and smooths the difference. Request it on QQQ and TAAPI.IO does the counting over all 101 Nasdaq-100 securities for you, so there is no member list to maintain and no hundred symbols to download.

SpecValue
EndpointGET https://v2.taapi.io/indicator/mcclellan
Outputsvalue, advances, declines, unchanged, net
MarketUS stocks: symbol=QQQ for Nasdaq-100 breadth
Timeframe1d
HistoryAbout four years of daily values
DeliveryREST and bulk

Get the McClellan Oscillator with one API call

This request returns the Nasdaq-100 McClellan Oscillator for the last completed trading day with the classic 19 and 39 settings. backtrack=1 skips today's session while it is still trading. Add your API key to run it here.

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"

McClellan Oscillator API response

This response came from the live API on 23 November 2026 and is for the close of Friday 20 November.

200 OK
{
  "value": [-8.499582157127263],
  "advances": [21],
  "declines": [80],
  "unchanged": [0],
  "net": [-59],
  "timestamp": [1795132800]
}
FieldTypeDescription
valuenumber[]McClellan Oscillator: the fast average of net minus the slow one. Below zero when declines have been dominating, above zero when advances have
advancesinteger[]Members that closed above their previous close
declinesinteger[]Members that closed below their previous close
unchangedinteger[]Members that closed at their previous close
netnumber[]advances − declines, or the ratio-adjusted value when ratioAdjusted=true
timestampinteger[]Unix time of each daily candle, in seconds

McClellan Oscillator API parameters

NameTypeRequiredDefaultDescription
exchangestringYes—stocks
symbolstringYes—QQQ (Nasdaq-100 breadth)
timeframestringYes—1d
fastPeriodintegerNo19Length of the fast average of net advances, 1 to 500
slowPeriodintegerNo39Length of the slow average, 2 to 500; must be larger than fastPeriod
ratioAdjustedbooleanNofalsetrue uses 1000 × (advances − declines) ÷ (advances + declines) instead of advances − declines
resultsintegerNo1Number of values to return, or max
backtrackintegerNo0Candles to skip from the most recent

What is the McClellan Oscillator?

The McClellan Oscillator was developed by Sherman and Marian McClellan in 1969 to measure participation: whether a move in an index is carried by most of its stocks or by a few large ones. Each day it takes the number of advancing members minus the number of declining members, then subtracts a slow exponential average of that difference from a fast one. When most members keep falling, the fast average drops below the slow one and the oscillator goes negative; a sharp negative reading means selling has been broad and one-sided, which is what traders call oversold breadth.

McClellan Oscillator formula

OutputCalculation
Advances, declinesMembers whose close is above / below their previous close
Netadvances − declines
Net, ratio-adjusted1000 × (advances − declines) ÷ (advances + declines)
OscillatorEMA(net, fastPeriod) − EMA(net, slowPeriod)

The 19 and 39 day averages are the original "10% trend" and "5% trend": an exponential average with a smoothing factor of 0.10 or 0.05. Each average starts from its first input, so the earliest values of a results=max series are a warm-up.

Which stocks are counted

For symbol=QQQ the count runs over the 101 securities in the Nasdaq-100 (100 companies; Alphabet's two share classes both count, as they do in the index). The QQQ candles only supply the trading days. The member list is the current one and is updated after each reconstitution, which happens every December. Past values are counted over today's members, and a member that listed recently counts from its second trading day, the first with a previous close to compare against.

Closes are those of TAAPI.IO's daily stock candles, which cover the extended session from 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.

What McClellan Oscillator levels mean

How far the oscillator can swing depends on how many stocks are counted. On the whole NYSE, swings of ±100 and more are normal; with about 100 Nasdaq-100 members, the classic reading rarely goes past ±10. From September 2023 to November 2026 only a handful of closes fell below −8.5, each during a sharp sell-off. To compare across indexes, or to use the familiar ±100 scale, set ratioAdjusted=true: it divides net advances by the number of stocks that moved, so the reading no longer depends on the size of the index. On 20 November 2026 the ratio-adjusted reading was −84.1.

Reading (Nasdaq-100, classic)Ratio-adjustedWhat it suggests
Above +5Above +50Broad, strong buying; can be overbought after a run
−5 to +5−50 to +50Mixed participation, no breadth extreme
Below −5Below −50Broad selling
Below −8Below −80Extreme, one-sided selling: historically near short-term lows

Case study: Nasdaq-100 breadth on 20 November 2026

QQQ closed at 617.72 on Friday 20 November 2026, 18.7% below its 6 October close of 759.84. The day before, only 5 of the 101 Nasdaq-100 members closed higher and 96 closed lower. On Friday the Nasdaq-100 McClellan Oscillator closed at −8.50. That is its lowest close since 8 April 2025 and level with the lows of December 2024. The chart puts the reading next to those two earlier lows.

QQQ daily closes and the Nasdaq-100 McClellan Oscillator, September 2024 to 20 November 2026 On 20 November 2026 the Nasdaq-100 McClellan Oscillator closed at -8.50, its lowest close since 8 April 2025 (-10.00) and level with the December 2024 lows. QQQ closed at 617.72, 18.7% below its 6 October 2026 close of 759.84. 400 500 600 700 800 -10 -5 5 10 0 Jan 2025 Jul 2025 Jan 2026 Jul 2026 QQQ daily close Nasdaq-100 McClellan Oscillator (19, 39) 19 Dec 2024: −8.85 8 Apr 2025: −10.00 20 Nov 2026: −8.50 6 Oct: 759.84 20 Nov: 617.72 (−18.7%) QQQ close Above zero Below zero 20 Nov level QQQ · US stocks, daily · McClellan Oscillator over the 101 Nasdaq-100 members · 3 Sep 2024 – 20 Nov 2026
Top: QQQ daily closes. Bottom: the Nasdaq-100 McClellan Oscillator from mcclellan on QQQ, green above zero and red below. The dashed line is the 20 November 2026 close of −8.50; circles mark it and the two earlier lows it is compared with.

The table shows what QQQ did after the deepest readings of the earlier sell-offs since September 2023, counted in trading days from the low close. It covers only four cases, so treat it as context, not as a forecast.

Low closeOscillatorAdvances / declinesQQQ closeQQQ 5 days laterQQQ 20 days later
21 Sep 2023−9.133 / 91357.55+0.2%+0.4%
19 Apr 2024−9.7328 / 67413.85+4.2%+9.1%
19 Dec 2024−8.8530 / 67511.70+2.1%+3.6%
8 Apr 2025−10.002 / 97410.18+10.3%+17.8%
20 Nov 2026−8.5021 / 80617.72——

An extreme reading shows that selling has been unusually broad, not that it has finished. In April 2025 the oscillator was already below −8.5 two trading days before the low close, and after the September 2023 reading QQQ kept falling for another five weeks, to 345.43 on 27 October (−3.4%). Breadth tells you how stretched the sell-off is; price tells you when it turns.

How to read the McClellan Oscillator in your code

SignalMeaningCondition
Oversold breadthSelling broad and one-sidedvalue far below zero, e.g. below −8 (classic) or −80 (ratio-adjusted)
Overbought breadthBuying broad and stretchedvalue far above zero
Zero-line crossParticipation shiftingvalue changes sign
Breadth thrustMost members rising at onceadvances far above declines on one day, e.g. 90 or more up
DivergenceFewer stocks joining the moveQQQ makes a new low and value does not (or a new high without breadth)

Limitations: Breadth extremes can last for days, and the oscillator gives no price target. Readings depend on the member list and on how many stocks are counted, so levels differ from charts of other indexes or exchanges. Nothing on this page is financial advice.

Find the lowest reading since a given date

Request a long series with results and walk back from the latest close to the last lower one. This answers "is this the most oversold since…?" in a few lines. Arrays run oldest first.

import requests
from datetime import datetime, timezone

resp = requests.get(
    'https://v2.taapi.io/indicator/mcclellan',
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    params={'exchange': 'stocks', 'symbol': 'QQQ', 'timeframe': '1d',
            'results': 500, 'backtrack': 1},
)
data = resp.json()
day = lambda ts: datetime.fromtimestamp(ts, timezone.utc).date()

values, stamps = data['value'], data['timestamp']
last = values[-1]
print(f'{day(stamps[-1])}: {last:.2f} '
      f'({data["advances"][-1]} up, {data["declines"][-1]} down)')

# Walk back to the last close that was lower
for value, ts in zip(reversed(values[:-1]), reversed(stamps[:-1])):
    if value is not None and value < last:
        print(f'lowest close since {day(ts)} ({value:.2f})')
        break
else:
    print('lowest close in the whole series')

Get historical McClellan Oscillator values

Add results to return a daily series for backtesting or charting, up to about four years. The last element is the most recent day.

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 "results=250"

Combine breadth with other indicators

Request the McClellan Oscillator next to price-based indicators on QQQ in one call. The exchange, symbol and timeframe combination counts as one construct.

POST/bulk
curl -X POST https://v2.taapi.io/bulk \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "constructs": [
    {
      "id": "qqq_1d",
      "exchange": "stocks",
      "symbol": "QQQ",
      "timeframe": "1d",
      "indicators": [
        {
          "id": "breadth",
          "indicator": "mcclellan",
          "backtrack": 1
        },
        {
          "id": "rsi",
          "indicator": "rsi",
          "backtrack": 1
        }
      ]
    }
  ]
}'

Why McClellan values can differ between platforms

Breadth depends on what is counted. Other charts may use the whole Nasdaq exchange instead of the Nasdaq-100, the historical member list instead of the current one, a different data vendor's closing prices, the ratio-adjusted formula, or a different warm-up for the averages. The direction and the timing of extremes usually agree; the exact numbers and rankings can differ.

McClellan Oscillator API FAQ

Which indexes are supported?

The Nasdaq-100, requested with exchange=stocks and symbol=QQQ. Other symbols return a 400 error that lists the supported ones.

Why do I request QQQ and not NDX?

QQQ is the ETF that tracks the Nasdaq-100 and trades like a stock, so its daily candles give the trading days. The breadth itself is counted over the index members, not over QQQ.

Is today's value final?

No. During the session the newest value uses the latest prices and changes until the close. Add backtrack=1 to read the last completed day.

Can I stream it or use other timeframes?

No. The McClellan Oscillator is a daily breadth indicator, so it is available on 1d over REST and bulk only.

Can I calculate it from my own candles?

No. It needs every member's prices, so it can't be calculated from posted candles.

Which plan do I need?

The McClellan Oscillator uses US stock data, which is included on the Pro plan and above.

See the full list of indicators, or start for free.