SummationFC (Function)
The SummationFC series function uses a fast calculation method to add a series of prices over a specified number of bars.
Syntax
SummationFC(Price, Length)
Returns (Double)
A numeric value containing the sum of the last Length occurrences of Price.
Parameters
Name |
Type |
Description |
Price |
Numeric |
Specifies which bar value (price, function, or formula) to sum. |
Length |
Numeric |
Sets the number of bars to use in the calculation. |
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 input parameter Price can be a bar value such as Close, High, Low, Open, or Volume. It can also be any mathematical calculation such as: ( High + Low) / 2, or a numeric function such as RSI, Stochastic, or ADX.
This series function returns exactly the same values as Summation except that it uses a fast calculation method that takes slightly more memory than the non-FC version.
Example
Value1= SummationFC( High-Close, 14);