Table of Contents

Class BollingerBand

Namespace
StockSharp.Algo.Indicators
Assembly
StockSharp.Algo.dll

Bollinger band.

public class BollingerBand : BaseIndicator, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
Inheritance
BollingerBand
Implements
IPersistable
ICloneable<IIndicator>
Inherited Members
Extension Methods

Constructors

BollingerBand(LengthIndicator<decimal>, StandardDeviation)

Initializes a new instance of the BollingerBand.

public BollingerBand(LengthIndicator<decimal> ma, StandardDeviation dev)

Parameters

ma LengthIndicator<decimal>

Moving Average.

dev StandardDeviation

Standard deviation.

Properties

NumValuesToInitialize

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

public override int NumValuesToInitialize { get; }

Property Value

int

Width

Channel width.

public decimal Width { get; set; }

Property Value

decimal

Methods

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

OnProcess(IIndicatorValue)

To handle the input value.

protected override IIndicatorValue OnProcess(IIndicatorValue input)

Parameters

input IIndicatorValue

The input value.

Returns

IIndicatorValue

The resulting value.

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.