Class BollingerBand
- Namespace
- StockSharp.Algo.Indicators
- Assembly
- StockSharp.Algo.dll
Bollinger band.
public class BollingerBand : BaseIndicator, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
- Inheritance
-
BollingerBand
- Implements
- Inherited Members
- Extension Methods
Constructors
BollingerBand(LengthIndicator<decimal>, StandardDeviation)
Initializes a new instance of the BollingerBand.
public BollingerBand(LengthIndicator<decimal> ma, StandardDeviation dev)
Parameters
maLengthIndicator<decimal>Moving Average.
devStandardDeviationStandard 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
Width
Channel width.
public decimal Width { get; set; }
Property Value
Methods
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storageSettingsStorageSettings storage.
OnProcess(IIndicatorValue)
To handle the input value.
protected override IIndicatorValue OnProcess(IIndicatorValue input)
Parameters
inputIIndicatorValueThe input value.
Returns
- IIndicatorValue
The resulting value.
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storageSettingsStorageSettings storage.
ToString()
public override string ToString()