Summation (SUM)
Description
Summation is the sum over a predefined number of periods.
Usage
SUM(int period)
SUM(IDataSeries inSeries, int period)
SUM(int period)[int barsAgo]
SUM(IDataSeries inSeries, int period)[int barsAgo]
Return value
double
When using this method with an index (e.g. SUM(14)[int barsAgo] ), the value of the indicator will be issued for the referenced bar.
Parameters
inSeries Input data series for the indicator
period Number of bars included in the calculations
Visualization

Example
// Sum of the volume for the last 10 trading days
Print(SUM(Volume,10)[0]);
Last updated