Momentum

StockSharp.Algo.Indicators

Momentum.

Inherits: DecimalLengthIndicator

Constructors

Momentum
public Momentum()
momentum = Momentum()

Initializes a new instance of the Momentum.

Properties

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

IndicatorMeasures.

NumValuesToInitialize
public override int NumValuesToInitialize { get; }
value = momentum.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 = momentum.CalcIsFormed()

Calc IsFormed.

Returns: IsFormed

GetCapacity
protected override int GetCapacity()
result = momentum.GetCapacity()

Gets the capacity of the buffer for data storage.

Returns: The capacity of the buffer. By default, it is equal to Length.

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

To handle the input value.

input
The input value.

Returns: The new value of the indicator.