Skip to main content

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

ParameterTypePurpose
seriesseriesInput series, taken into calculation
periodintegerInput period, taken into calculation

Returns: series.

Example

close_value = sum(close, 14)