SUM Function

You are here:
< All Topics

SUM(Vector, Periods) 

The SUM function (not to be confused with the SUMIF function) outputs a vector containing a running sum, as specified by the Periods argument. 

Example: 

SUM(CLOSE, 10) 

The script returns a vector of sums based on a 10-period window.

Previous REF Function
Next SUMIFS Function
Table of Contents