cum

forge.tafunctionSince Forge API 1
Functionpython
forge.ta.cum(source: ArrayLike) -> np.ndarray

The running total of the source from the first bar.

Parameters

NameType
sourceArrayLike

Indicator: Running total

A missing value has no total, and the total starts again on the next bar that has a value. The result depends on where the data starts.

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

The total of every value from the first bar.

Inputs

NameTypeDefault
sourcesourceclose

The running total of the source from the first bar. A missing value restarts the total on the next bar that has one. The value depends on where the data starts.