DoubleExponentialMovingAverage

StockSharp.Algo.Indicators

Double Exponential Moving Average.

Inherits: DecimalLengthIndicator

Constructors

DoubleExponentialMovingAverage
public DoubleExponentialMovingAverage()
doubleExponentialMovingAverage = DoubleExponentialMovingAverage()

Initializes a new instance of the DoubleExponentialMovingAverage.

Properties

NumValuesToInitialize
public override int NumValuesToInitialize { get; }
value = doubleExponentialMovingAverage.NumValuesToInitialize

Number of values that need to be processed in order for the indicator to initialize (be IsFormed equals ). if undefined.

Methods

CalcIsFormed
protected override bool CalcIsFormed()
result = doubleExponentialMovingAverage.CalcIsFormed()

Calc IsFormed.

Returns: IsFormed

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

To handle the input value.

input
The input value.

Returns: The new value of the indicator.

Reset
public override void Reset()
doubleExponentialMovingAverage.Reset()

To reset the indicator status to initial. The method is called each time when initial settings are changed (for example, the length of period).