Skip to content
Algo Trade Analytics Docs

ta.cum() - Pine Script Function

Cumulative (total) sum of source. In other words it’s a sum of all elements of source.

ta.cum(source) → series float
NameTypeDescription
sourceseries int/floatSource used for the calculation.

Total sum series.