DirectionalIndex
StockSharp.Algo.Indicators
Welles Wilder Directional Movement Index.
Erbt von: BaseComplexIndicator<IDirectionalIndexValue>
Konstruktoren
DirectionalIndex
public DirectionalIndex()
directionalIndex = DirectionalIndex()
Initialisiert eine neue Instanz von DirectionalIndex.
Eigenschaften
Length
public int Length { get; set; }
value = directionalIndex.Length
directionalIndex.Length = value
Periodendauer.
Measure
public override IndicatorMeasures Measure { get; }
value = directionalIndex.Measure
IndicatorMeasures.
NumValuesToInitialize
public override int NumValuesToInitialize { get; }
value = directionalIndex.NumValuesToInitialize
Anzahl der Werte, die verarbeitet werden müssen, damit der Indikator initialisiert werden kann (be IsFormed @ = ).
Methoden
CreateValue
protected override IDirectionalIndexValue CreateValue(DateTime time)
result = directionalIndex.CreateValue(time)
Erstellen .
- time
- Uhrzeit
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = directionalIndex.LoadAsync(storage, cancellationToken)
Load settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Rückgabe: Task
OnProcess
protected override IIndicatorValue OnProcess(IIndicatorValue input)
result = directionalIndex.OnProcess(input)
Um den Eingabewert zu verarbeiten.
- input
- Der Eingangswert.
Rückgabe: Der resultierende Wert.
SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = directionalIndex.SaveAsync(storage, cancellationToken)
Save settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Rückgabe: Task
ToString
public override string ToString()
result = directionalIndex.ToString()
Konvertieren Sie in eine Liniendarstellung.
Rückgabe: String-Leistung.