Summation (Function)

image\trumpet2.gif Disclaimer

The Summation function adds a series of numbers together over a specified number of bars.

Syntax

Summation(Price, Length)

Parameters

Name

Type

Description

Price

Numeric

Specifies which bar value (price, function, or formula) to sum.

Length

Numeric

Sets the number of bars to consider.

Returns (Double)

A numeric value containing the sum of the last Length occurrences of Price.

Remarks

The number of values in the series is determined by the input Length. The values added together are determined by the input Price. For example, if the inputs Price and Length were replaced by Close and 14, respectively, the function would add together the last fourteen closes.

  The current bar’s Price is included in the calculation, unless the function is offset.

Example

Value1= Summation( Close, 14);

See Also

SummationFC