Sum N (SUM)
QuantNexus indicator page for a rolling sum over the lookback window.
Route: /quantnexus/indicators/sum/
What It Does
SUM adds up the last period price values into a running total.
Formula
SUM = price(t) + price(t-1) + ... + price(t-n+1)
Parameters
period- default14
C++23 API
#include <nonabt/indicators/sum.hpp>
auto sum = std::make_unique<nonabt::SUM>(data().close(), 14);
Common Usage
- Use it when you need a rolling aggregate instead of an average.
- Pair it with threshold logic or cumulative-flow style rules.
- Helpful for measuring total contribution over a fixed lookback.
