talib.cum

Accumulates source as the script advances through the chart. There is no length argument: this is a running total rather than a moving window. For a window, use talib.sum.

talib.cum(series float source) → series float
ParameterTypeRequiredDescription
sourceseries floatyesThe series to accumulate.

Returns series float — A series float holding the running total.

indicator("Cumulative volume")
plot(talib.cum(volume))

See also talib.alma · talib.atr · talib.barssince

Part of the function index.

Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.
Upgrade