BollingerBands

StockSharp.Algo.Indicators

Bollinger Bands.

Inherits: BaseComplexIndicator<IBollingerBandsValue>

Constructors

BollingerBands
public BollingerBands()
bollingerBands = BollingerBands()

Initializes a new instance of the BollingerBands.

BollingerBands
public BollingerBands(DecimalLengthIndicator ma)
bollingerBands = BollingerBands(ma)

Initializes a new instance of the BollingerBands.

ma
Moving Average.

Properties

Length
public int Length { get; set; }
value = bollingerBands.Length
bollingerBands.Length = value

Period length. By default equal to 1.

LowBand
public BollingerBand LowBand { get; }
value = bollingerBands.LowBand

Lower band -.

MovingAverage
public DecimalLengthIndicator MovingAverage { get; }
value = bollingerBands.MovingAverage

Middle line.

UpBand
public BollingerBand UpBand { get; }
value = bollingerBands.UpBand

Upper band +.

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

Bollinger Bands channel width. Default value equal to 2.

Methods

CalcIsFormed
protected override bool CalcIsFormed()
result = bollingerBands.CalcIsFormed()

Calc IsFormed.

Returns: IsFormed

CreateValue
protected override IBollingerBandsValue CreateValue(DateTime time)
result = bollingerBands.CreateValue(time)

Create .

time
Time
OnProcess
protected override IIndicatorValue OnProcess(IIndicatorValue input)
result = bollingerBands.OnProcess(input)

To handle the input value.

input
The input value.

Returns: The resulting value.

Reset
public override void Reset()
bollingerBands.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).

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

Преобразовать к строковому представлению.

Returns: Строковое представление.