Class Momentum
- Namespace
- StockSharp.Algo.Indicators
- Assembly
- StockSharp.Algo.dll
Momentum.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Momentum", Description = "Momentum")]
[Doc("topics/api/indicators/list_of_indicators/momentum.html")]
public class Momentum : LengthIndicator<decimal>, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
- Inheritance
-
Momentum
- Implements
- Derived
- Inherited Members
- Extension Methods
Remarks
Constructors
Momentum()
Initializes a new instance of the Momentum.
public Momentum()
Properties
Measure
public override IndicatorMeasures Measure { get; }
Property Value
NumValuesToInitialize
Number of values that need to be processed in order for the indicator to initialize (be IsFormed equals true). null if undefined.
public override int NumValuesToInitialize { get; }
Property Value
Methods
CalcIsFormed()
Calc IsFormed.
protected override bool CalcIsFormed()
Returns
GetCapacity()
Gets the capacity of the buffer for data storage.
protected override int GetCapacity()
Returns
OnProcessDecimal(IIndicatorValue)
To handle the input value.
protected override decimal? OnProcessDecimal(IIndicatorValue input)
Parameters
input
IIndicatorValueThe input value.
Returns
- decimal?
The new value of the indicator.