SimpleMovingAverage

StockSharp.Algo.Indicators

Simple moving average.

Inherits: DecimalLengthIndicator

Constructors

SimpleMovingAverage
public SimpleMovingAverage()
simpleMovingAverage = SimpleMovingAverage()

Initializes a new instance of the SimpleMovingAverage.

Methods

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

To handle the input value.

input
The input value.

Returns: The new value of the indicator.