# Market Breadth and Internals — fintech-algorithms > 28 algorithms in 5 families, sliced out of the > fintech-algorithms reference. Zero-dependency TypeScript: plain arrays and objects in, > plain values out. This file covers D04 only. D04 · 28 topics · 5 families · 28 verified Install: npm install fintech-algorithms Agent skill (install it rather than re-deriving this file): npx skills add IslamBaraka90/Fintech-Algorithms-Library what it is: https://docs.thefintechbuilder.com/guides/agent-skill/ Source: fintech-algorithms@0.12.0 · payload schema 2.0.0 Reference payload: https://docs.thefintechbuilder.com/reference/payload.json Version endpoint: https://docs.thefintechbuilder.com/version.json Domain page: https://docs.thefintechbuilder.com/market-breadth-and-internals/ Full index (324 topics across 13 domains): https://docs.thefintechbuilder.com/llms.txt Verification tiers: - verified — the worked example is the figure published in the algorithm's article, replayed and asserted by the test suite on every run. The arithmetic cannot drift without the build failing. Treat the numbers as reproducible. - contract — the module loads, the entry point is callable and its declared signature matches the compiled code. The example is real captured output, but no independently published figure asserts it. Treat the shape as reliable and the numbers as unattested. Full explanation: https://docs.thefintechbuilder.com/guides/verification/ Each entry: name — signature — archetype — verification tier — docs URL From the docs URL, mechanically: import subpath — swap the https://docs.thefintechbuilder.com/ prefix for fintech-algorithms/ and drop the trailing slash markdown page — append index.md; same contract as the HTML page, a fraction of the bytes ## D04-F01 — Advance/Decline Breadth https://docs.thefintechbuilder.com/market-breadth-and-internals/advance-decline-breadth/ - Net Advances — `calculateNetAdvances(request)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/advance-decline-breadth/net-advances/ - Advance/Decline Ratio — `calculateAdvanceDeclineRatio(snapshot)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/advance-decline-breadth/advance-decline-ratio/ - Cumulative Advance/Decline Line — `calculateCumulativeAdvanceDeclineLine(contract, events, knowledgeCutoff)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/advance-decline-breadth/cumulative-advance-decline-line/ - Normalized Advance/Decline Line — `calculateNormalizedAdLine(records, options)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/advance-decline-breadth/normalized-advance-decline-line/ - Absolute Breadth Index — `evaluateAbsoluteBreadthIndex(request)` — snapshot-evaluate — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/advance-decline-breadth/absolute-breadth-index/ ## D04-F02 — McClellan Family https://docs.thefintechbuilder.com/market-breadth-and-internals/mcclellan-family/ - Traditional McClellan Oscillator — `calculateMcClellanValues(netAdvances)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/mcclellan-family/traditional-mcclellan-oscillator/ - Ratio-Adjusted McClellan Oscillator — `calculate(records, cutoff)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/mcclellan-family/ratio-adjusted-mcclellan-oscillator/ - Traditional McClellan Summation Index — `calculate(records, cutoff)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/mcclellan-family/traditional-mcclellan-summation-index/ - Ratio-Adjusted Summation Index (RASI) — `calculate(records, cutoff)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/mcclellan-family/ratio-adjusted-summation-index-rasi/ - McClellan Volume Oscillator — `calculate(records, cutoff)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/mcclellan-family/mcclellan-volume-oscillator/ - McClellan Volume Summation Index — `calculate(records, cutoff)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/mcclellan-family/mcclellan-volume-summation-index/ ## D04-F03 — High/Low and Trend Breadth https://docs.thefintechbuilder.com/market-breadth-and-internals/high-low-and-trend-breadth/ - New Highs–New Lows — `calculate(records, decisionTime)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/high-low-and-trend-breadth/new-highs-new-lows/ - High-Low Ratio — `calculate(records, decisionTime)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/high-low-and-trend-breadth/high-low-ratio/ - High-Low Index — `calculate(records, decisionTime)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/high-low-and-trend-breadth/high-low-index/ - Percent Above 20-Day MA — `evaluateSnapshot(snapshot, decisionTime)` — snapshot-evaluate — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/high-low-and-trend-breadth/percent-above-20-day-ma/ - Percent Above 50-Day MA — `evaluateSnapshot(snapshot, decisionTime)` — snapshot-evaluate — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/high-low-and-trend-breadth/percent-above-50-day-ma/ - Percent Above 200-Day MA — `evaluateSnapshot(snapshot, decisionTime)` — snapshot-evaluate — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/high-low-and-trend-breadth/percent-above-200-day-ma/ ## D04-F04 — Thrust and Pressure https://docs.thefintechbuilder.com/market-breadth-and-internals/thrust-and-pressure/ - Zweig Breadth Thrust — `calculate(rows, emaLength, lowThreshold, highThreshold, maxSessions)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/thrust-and-pressure/zweig-breadth-thrust/ - Arms Index (TRIN) — `calculate(row)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/thrust-and-pressure/arms-index-trin/ - Advance/Decline Volume Line — `calculate(rows, seed)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/thrust-and-pressure/advance-decline-volume-line/ - Upside/Downside Volume Ratio — `calculate(row)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/thrust-and-pressure/upside-downside-volume-ratio/ - Cumulative TICK — `calculate(rows, seed, intervalSeconds)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/thrust-and-pressure/cumulative-tick/ - Breadth-Divergence Detector — `calculate(rows, left, right, minPriceChange, minBreadthSeparation, breadthScale)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/thrust-and-pressure/breadth-divergence-detector/ ## D04-F05 — Concentration and Diffusion https://docs.thefintechbuilder.com/market-breadth-and-internals/concentration-and-diffusion/ - Top-N Index Contribution — `calculate(rows, topN)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/concentration-and-diffusion/top-n-index-contribution/ - Herfindahl Constituent Concentration — `calculate(rows)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/concentration-and-diffusion/herfindahl-constituent-concentration/ - Effective Number of Constituents — `calculate(rows)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/concentration-and-diffusion/effective-number-of-constituents/ - Sector Diffusion Index — `calculate(rows, tolerance)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/concentration-and-diffusion/sector-diffusion-index/ - Factor Diffusion Index — `calculate(rows, tolerance)` — record-transform — verified — https://docs.thefintechbuilder.com/market-breadth-and-internals/concentration-and-diffusion/factor-diffusion-index/