Table of Contents

Class BollingerBands

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

Bollinger Bands.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Bollinger", Description = "BollingerBands")]
public class BollingerBands : BaseComplexIndicator, IComplexIndicator, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
Inheritance
BollingerBands
Implements
IPersistable
ICloneable<IIndicator>
Inherited Members
Extension Methods

Remarks

Constructors

BollingerBands()

Initializes a new instance of the BollingerBands.

public BollingerBands()

BollingerBands(LengthIndicator<decimal>)

Initializes a new instance of the BollingerBands.

public BollingerBands(LengthIndicator<decimal> ma)

Parameters

ma LengthIndicator<decimal>

Moving Average.

Properties

Length

Period length. By default equal to 1.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Period", Description = "IndicatorPeriod", GroupName = "General")]
public int Length { get; set; }

Property Value

int

LowBand

Lower band -.

[Browsable(false)]
public BollingerBand LowBand { get; }

Property Value

BollingerBand

MovingAverage

Middle line.

[Browsable(false)]
public LengthIndicator<decimal> MovingAverage { get; }

Property Value

LengthIndicator<decimal>

UpBand

Upper band +.

[Browsable(false)]
public BollingerBand UpBand { get; }

Property Value

BollingerBand

Width

Bollinger Bands channel width. Default value equal to 2.

[Display(ResourceType = typeof(LocalizedStrings), Name = "ChannelWidth", Description = "ChannelWidthDesc", GroupName = "General")]
public decimal Width { get; set; }

Property Value

decimal

Methods

CalcIsFormed()

Calc IsFormed.

protected override bool CalcIsFormed()

Returns

bool

IsFormed

OnProcess(IIndicatorValue)

To handle the input value.

protected override IIndicatorValue OnProcess(IIndicatorValue input)

Parameters

input IIndicatorValue

The input value.

Returns

IIndicatorValue

The resulting value.

Reset()

To reset the indicator status to initial. The method is called each time when initial settings are changed (for example, the length of period).

public override void Reset()

ToString()

public override string ToString()

Returns

string