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
-
IPersistableICloneable<IIndicator>
- Derived
- 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
LowBand
Lower band -.
[Browsable(false)]
public BollingerBand LowBand { get; }
Property Value
MovingAverage
Middle line.
[Browsable(false)]
public LengthIndicator<decimal> MovingAverage { get; }
Property Value
UpBand
Upper band +.
[Browsable(false)]
public BollingerBand UpBand { get; }
Property Value
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
Methods
CalcIsFormed()
Calc IsFormed.
protected override bool CalcIsFormed()
Returns
OnProcess(IIndicatorValue)
To handle the input value.
protected override IIndicatorValue OnProcess(IIndicatorValue input)
Parameters
input
IIndicatorValueThe 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()