Rolling sum
The sum of the last values over a number of bars.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| source | source | close | |
| period | int | 30 | 1 to 5000 |
Outputs
| Name | Type | Required | Description |
|---|---|---|---|
| sum | value | Optional | color theme.accent, style line, width 1 |
- Warm-up
- period - 1 bars (29 at the defaults)
- Repaints
- No
- Parity
- TA-Lib, within 1e-9
Formula
The sum of the last period values. A window holding a missing value has no value.