sum
Syntax Format
sum(series, period)
Overview
The sum
function provides the sum of the given series type over a specified period. This function is effective in showing the overall change of the given series value over time.
Parameters
Parameter | Type | Purpose |
---|---|---|
series | series | Input series, taken into calculation |
period | integer | Input period, taken into calculation |
Returns: series
.
Example
close_value = sum(close, 14)