MomentumOfMovingAverage
StockSharp.Algo.Indicators
Momentum des Moving Average Indikators.
Erbt von: SimpleMovingAverage
Konstruktoren
MomentumOfMovingAverage
public MomentumOfMovingAverage()
momentumOfMovingAverage = MomentumOfMovingAverage()
Initialisiert eine neue Instanz von MomentumOfMovingAverage.
Eigenschaften
Measure
public override IndicatorMeasures Measure { get; }
value = momentumOfMovingAverage.Measure
IndicatorMeasures.
MomentumPeriod
public int MomentumPeriod { get; set; }
value = momentumOfMovingAverage.MomentumPeriod
momentumOfMovingAverage.MomentumPeriod = value
Momentum-Zeitraum.
Methoden
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = momentumOfMovingAverage.LoadAsync(storage, cancellationToken)
Load settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Rückgabe: Task
OnProcessDecimal
protected override decimal? OnProcessDecimal(IIndicatorValue input)
result = momentumOfMovingAverage.OnProcessDecimal(input)
Um den Eingabewert zu verarbeiten.
- input
- Der Eingangswert.
Rückgabe: Der neue Wert des Indikators.
SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = momentumOfMovingAverage.SaveAsync(storage, cancellationToken)
Save settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Rückgabe: Task
ToString
public override string ToString()
result = momentumOfMovingAverage.ToString()
Konvertieren Sie in eine Liniendarstellung.
Rückgabe: String-Leistung.