Sum

StockSharp.Algo.Indicators

Sum of N last values.

Inherits: DecimalLengthIndicator

Constructors

Sum
public Sum()
sum = Sum()

Initializes a new instance of the Sum.

Properties

Measure
public override IndicatorMeasures Measure { get; }
value = sum.Measure

IndicatorMeasures.

Methods

OnProcessDecimal
protected override decimal? OnProcessDecimal(IIndicatorValue input)
result = sum.OnProcessDecimal(input)

To handle the input value.

input
The input value.

Returns: The new value of the indicator.