sum
forge.tafunctionSince Forge API 1
Functionpython
forge.ta.sum(source: ArrayLike, period: int = 30) -> np.ndarrayThe sum of the last period values. A window that holds a missing value has no value.
Parameters
| Name | Type | Default |
|---|---|---|
| source | ArrayLike | |
| period | int | 30 |
Classpython
forge.ta.Sum(**inputs: Any) -> NoneThe sum of the last values over a number of bars.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| source | source | close | |
| period | int | 30 | 1 to 5000 |
The sum of the last period values. A window holding a missing value has no value.