SUM
SUM
Summary
Rolling sum of the input over a fixed period. Each output is the sum of the most recent optInTimePeriod input values.
Formula
, N = optInTimePeriod
Inputs
inReal— Values to sum
Outputs
outReal— Windowed sum over the period
Parameters
| Parameter | Type | Default | Accepted values | Description |
|---|---|---|---|---|
optInTimePeriod | integer | 30 | 2–100000 | Window length summed |
Properties
Numerical Stability: Start-Independent
| Display Flags |
|---|
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ☐ Candlestick |
Implementation
TA-Lib Definition: sum.c · sum.yaml
| Native | File |
|---|---|
| C | ta_SUM.c |
| Rust | sum.rs |
| Java | Core_SUM.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Summation, Rolling Sum, Moving Sum