RelativeMomentumIndex

StockSharp.Algo.Indicators

Relative Momentum Index (RMI)

Erbt von: DecimalLengthIndicator

Konstruktoren

RelativeMomentumIndex
public RelativeMomentumIndex()
relativeMomentumIndex = RelativeMomentumIndex()

Initialisiert eine neue Instanz von RelativeMomentumIndex.

Eigenschaften

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

IndicatorMeasures.

MomentumPeriod
public int MomentumPeriod { get; set; }
value = relativeMomentumIndex.MomentumPeriod
relativeMomentumIndex.MomentumPeriod = value

Momentum-Zeitraum.

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

Anzahl der Werte, die verarbeitet werden müssen, damit der Indikator initialisiert werden kann (be IsFormed @ = ).

Methoden

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

Calc IsFormed.

Rückgabe: IsFormed

LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = relativeMomentumIndex.LoadAsync(storage, cancellationToken)

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Rückgabe: Task

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

Um den Eingabewert zu verarbeiten.

input
Der Eingangswert.

Rückgabe: Der neue Wert des Indikators.

Reset
public override void Reset()
relativeMomentumIndex.Reset()

Zustand zurücksetzen.

SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = relativeMomentumIndex.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Rückgabe: Task

ToString
public override string ToString()
result = relativeMomentumIndex.ToString()

Konvertieren Sie in eine Liniendarstellung.

Rückgabe: String-Leistung.