Advance/Decline Volume Line
Install and import
npm install fintech-algorithmsimport { calculate } from "fintech-algorithms/market-breadth-and-internals/thrust-and-pressure/advance-decline-volume-line";Signature
calculate(rows, seed)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-05",
"advances": 520,
"declines": 480,
"unchanged": 20,
"advancing_volume": 92000000,
"declining_volume": 78000000,
"ready": true
},
{
"session_date": "2026-01-06",
"advances": 480,
"declines": 520,
"unchanged": 20,
"advancing_volume": 86000000,
"declining_volume": 94000000,
"ready": true
},
{
"session_date": "2026-01-07",
"advances": 540,
"declines": 460,
"unchanged": 20,
"advancing_volume": 108000000,
"declining_volume": 72000000,
"ready": true
}
]Showing 3 of 24 elements.
0Call
calculate(rows, seed)Returns
object with 3 fields: status, value, series
{
"status": "resolved",
"value": 96000000,
"series": [
{
"date": "2026-01-05",
"net": 14000000,
"value": 14000000
},
{
"date": "2026-01-06",
"net": -8000000,
"value": 6000000
},
{
"date": "2026-01-07",
"net": 36000000,
"value": 42000000
}
]
}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
- Claim-to-source map
- Advance-Decline Volume Line — StockCharts ChartSchool
- Advance-Decline Indicators — StockCharts ChartSchool
- Volume Summary Client Specification v1.1d — New York Stock Exchange
- Historical-example decision