RelativeMomentumIndex
StockSharp.Algo.Indicators
Relative Momentum Index (RMI).
Inherits: DecimalLengthIndicator
Constructors
RelativeMomentumIndex
public RelativeMomentumIndex()
relativeMomentumIndex = RelativeMomentumIndex()
Initializes a new instance of the RelativeMomentumIndex.
Properties
Measure
public override IndicatorMeasures Measure { get; }
value = relativeMomentumIndex.Measure
IndicatorMeasures.
MomentumPeriod
public int MomentumPeriod { get; set; }
value = relativeMomentumIndex.MomentumPeriod
relativeMomentumIndex.MomentumPeriod = value
Momentum period.
NumValuesToInitialize
public override int NumValuesToInitialize { get; }
value = relativeMomentumIndex.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 = relativeMomentumIndex.CalcIsFormed()
Calc IsFormed.
Returns: IsFormed
Load
public override void Load(SettingsStorage storage)
relativeMomentumIndex.Load(storage)
Load settings.
- storage
- Settings storage.
OnProcessDecimal
protected override decimal? OnProcessDecimal(IIndicatorValue input)
result = relativeMomentumIndex.OnProcessDecimal(input)
To handle the input value.
- input
- The input value.
Returns: The new value of the indicator.
Reset
public override void Reset()
relativeMomentumIndex.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).
Save
public override void Save(SettingsStorage storage)
relativeMomentumIndex.Save(storage)
Save settings.
- storage
- Settings storage.
ToString
public override string ToString()
result = relativeMomentumIndex.ToString()
Преобразовать к строковому представлению.
Returns: Строковое представление.