Functions
talib.sum()
Adds up the last `length` values of `source`. It is a moving window, which is what separates it from `talib.cum`.
Syntax
talib.sum(series float source, series int length) → series float
Arguments
source required series float Series of values to process. length required series int Number of bars (length). Return Type
series float Example
//@lipi=2
indicator("Sum of Close Prices", overlay=false)
length = input(10, "Sum Length")
sumClose = talib.sum(close, length)
plot(sumClose, color=color.blue, title="Sum of Close Prices")