Traditional McClellan Oscillator
Compare Fast and Slow Raw Breadth
Install and import
npm install fintech-algorithmsimport { calculateMcClellanValues } from "fintech-algorithms/market-breadth-and-internals/mcclellan-family/traditional-mcclellan-oscillator";Signature
calculateMcClellanValues(netAdvances)Worked example
No runnable example is available for this topic yet. The article works the calculation through by hand.
Other exports
This module also exports
calculateMcClellan. Every module additionally exports run as an alias of its
primary function, and a meta object carrying its catalog id, domain, family,
shape and article URL.
Diagrams
Calculation flow
Traditional McClellan Oscillator calculation flow
flowchart LR
A["Source revisions"] --> B["Keep available-at or before cutoff"]
B --> C["Resolve one head per expected session"]
C --> D{"All evidence ready, complete, and coherent?"}
D -- "No" --> E["Emit non-resolved result with no points"]
D -- "Yes" --> F["Net Advances = A - D"]
F --> G["Seed or update fast 10% trend"]
F --> H["Seed or update slow 5% trend"]
G --> I{"Both states ready?"}
H --> I
I -- "No" --> J["Emit resolved warm-up point"]
I -- "Yes" --> K["Oscillator = fast - slow"]
K --> L["Emit point with revision and diagnostics"]
How it works
This page states the contract — how to call it correctly. The article explains the concept: why it works, and where it breaks.
References
- Calculating the McClellan Oscillator — McClellan Financial Publications; explanation by Tom McClellan
- The McClellan Oscillator and Summation Index — McClellan Financial Publications
- 2004 MTA Lifetime Achievement Award booklet — Sherman and Marian McClellan / McClellan Financial Publications
- StockCharts ChartSchool methodology — StockCharts.com
- Schwab thinkorswim McClellanOscillator — Charles Schwab / thinkorswim
- Nasdaq A-D definition — Nasdaq, Inc.
- Nasdaq Trader Daily Market Files — Nasdaq, Inc.
- Daily Market Summary Data Fields and Definitions — Nasdaq, Inc.
- Evidence and design reconciliation