Docs

ta.cum

Add up a series bar by bar, such as a running volume total, over the run or each period.

itm
ta.cum(source, reset)

Running total of the series from the first bar of the run, or of each period with reset.

Parameters

A series parameter takes a value on every bar. A constant parameter must be known before the first bar, such as a number or an input.

NameKindTypeDefaultRangeDescription
sourceSeriesnumber--The series to read.
resetConstantstring--Restarts the total at the first bar of each session, day, week, month, quarter or year (an option, written reset=session).

Output

NameType
valuenumber

Warm-up and missing values

Warm-up
1 bar.
Missing values
na observations are skipped. The running total keeps its value. Each period starts empty.

Example

itm
ta.cum(volume)
itm
plot(ta.cum(volume), "Running volume")