cum
forge.tafunctionSince Forge API 1
Functionpython
forge.ta.cum(source: ArrayLike) -> np.ndarrayThe running total of the source from the first bar.
Parameters
| Name | Type |
|---|---|
| source | ArrayLike |
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) -> NoneThe total of every value from the first bar.
Inputs
| Name | Type | Default |
|---|---|---|
| source | source | close |
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.