sum

forge.tafunctionSince Forge API 1
Functionpython
forge.ta.sum(source: ArrayLike, period: int = 30) -> np.ndarray

The sum of the last period values. A window that holds a missing value has no value.

Parameters

NameTypeDefault
sourceArrayLike
periodint30

Indicator: Rolling sum

Classpython
forge.ta.Sum(**inputs: Any) -> None

The sum of the last values over a number of bars.

Inputs

NameTypeDefaultRange
sourcesourceclose
periodint301 to 5000

The sum of the last period values. A window holding a missing value has no value.