BollingerBand

StockSharp.Algo.Indicators

Bollinger Band.

Erbt von: BaseIndicator

Konstruktoren

BollingerBand
public BollingerBand(DecimalLengthIndicator ma, StandardDeviation dev)
bollingerBand = BollingerBand(ma, dev)

Initialisiert eine neue Instanz von BollingerBand.

ma
Moving Average.
dev
Standardabweichung.

Eigenschaften

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

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

Width
public decimal Width { get; set; }
value = bollingerBand.Width
bollingerBand.Width = value

Kanalbreite.

Methoden

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

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Rückgabe: Task

OnProcess
protected override IIndicatorValue OnProcess(IIndicatorValue input)
result = bollingerBand.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 = bollingerBand.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Rückgabe: Task

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

Konvertieren Sie in eine Liniendarstellung.

Rückgabe: String-Leistung.