BollingerBand

StockSharp.Algo.Indicators

Bollinger band.

Inherits: BaseIndicator

Constructors

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

Initializes a new instance of the BollingerBand.

ma
Moving Average.
dev
Standard deviation.

Properties

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

Number of values that need to be processed in order for the indicator to initialize (be IsFormed equals ). if undefined.

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

Channel width.

Methods

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

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

OnProcess
protected override IIndicatorValue OnProcess(IIndicatorValue input)
result = bollingerBand.OnProcess(input)

To handle the input value.

input
The input value.

Returns: The resulting value.

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

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

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

Returns a string representation of the tuple, with values separated by commas.

Returns: A string representing the tuple's values.