Accum (CUMSUM)
QuantNexus indicator page for CUMSUM accumulation logic.
Route: /quantnexus/indicators/cumsum/
What It Does
CUMSUM accumulates values over time starting from an optional seed. It is a general-purpose cumulative sum helper used in quantitative logic.
Formula
CUMSUM = cumulative sum of the chosen input series + optional seed
Parameters
seed- default0
C++23 API
#include <nonabt/indicators/cumsum.hpp>
auto cumsum = std::make_unique<nonabt::CUMSUM>(data().close(), 0);
Common Usage
- Use CUMSUM to build running totals.
- Combine it with event logic or threshold crossing.
- Useful for cumulative return or volume aggregation workflows.
Practical Pattern
When used on returns, CUMSUM can approximate a running equity-style curve.
