[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"indicator-sum-ko":3},"# Sum N (SUM)\n\n> StratCraft indicator page for a rolling sum over the lookback window.\n\n**Route**: `\u002Findicators\u002Fsum\u002F`\n\n## What It Does\n\nSUM adds up the last `period` price values into a running total.\n\n## Formula\n\n`SUM = price(t) + price(t-1) + ... + price(t-n+1)`\n\n## Parameters\n\n- `period` - default `14`\n\n## C++23 API\n\n```cpp\n#include \u003Cnonabt\u002Findicators\u002Fsum.hpp>\nauto sum = std::make_unique\u003Cnonabt::SUM>(data().close(), 14);\n```\n\n## Common Usage\n\n- Use it when you need a rolling aggregate instead of an average.\n- Pair it with threshold logic or cumulative-flow style rules.\n- Helpful for measuring total contribution over a fixed lookback.\n"]