How Can We Help?
SUM Function
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.