High-Low Index
Install and import
npm install fintech-algorithmsimport { calculate } from "fintech-algorithms/market-breadth-and-internals/high-low-and-trend-breadth/high-low-index";Signature
calculate(records, decisionTime)Worked example
executed Captured by running this function on the input its own test provides. Real output of real code — but not asserted against a published figure.
Input
[
{
"session_date": "2026-01-02",
"effective_at": "2026-01-02T21:00:00Z",
"available_at": "2026-01-02T21:25:00Z",
"source_evidence_state": "ready",
"venue_id": "SYNTH-X",
"universe_id": "SYNTH-HL-120",
"methodology_id": "session-high-low-vs-prior-252-sessions-v1",
"lookback_sessions": 252,
"new_highs": 9,
"new_lows": 3,
"eligible_issues": 120,
"excluded_issues": 4,
"overlap_issues": 0
},
{
"session_date": "2026-01-05",
"effective_at": "2026-01-05T21:00:00Z",
"available_at": "2026-01-05T21:25:00Z",
"source_evidence_state": "ready",
"venue_id": "SYNTH-X",
"universe_id": "SYNTH-HL-120",
"methodology_id": "session-high-low-vs-prior-252-sessions-v1",
"lookback_sessions": 252,
"new_highs": 7,
"new_lows": 5,
"eligible_issues": 120,
"excluded_issues": 4,
"overlap_issues": 0
},
{
"session_date": "2026-01-06",
"effective_at": "2026-01-06T21:00:00Z",
"available_at": "2026-01-06T21:25:00Z",
"source_evidence_state": "ready",
"venue_id": "SYNTH-X",
"universe_id": "SYNTH-HL-120",
"methodology_id": "session-high-low-vs-prior-252-sessions-v1",
"lookback_sessions": 252,
"new_highs": 4,
"new_lows": 8,
"eligible_issues": 120,
"excluded_issues": 4,
"overlap_issues": 0
}
]Showing 3 of 30 elements.
"2026-03-01T00:00:00Z"Call
calculate(records, decisionTime)Returns
array of 30 objects
[
{
"session_date": "2026-01-02",
"new_highs": 9,
"new_lows": 3,
"value": null,
"status": "warming",
"reason": "requires_10_sessions"
},
{
"session_date": "2026-01-05",
"new_highs": 7,
"new_lows": 5,
"value": null,
"status": "warming",
"reason": "requires_10_sessions"
},
{
"session_date": "2026-01-06",
"new_highs": 4,
"new_lows": 8,
"value": null,
"status": "warming",
"reason": "requires_10_sessions"
}
]Showing 3 of 30 elements.
Diagrams
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
- Nasdaq Fundamental Data
- How High/Low and New High/New Low Are Calculated
- High-Low Index
- Rolling Mean Documentation
- Evidence decision