Class BollingerBand
- Namespace
- StockSharp.Algo.Indicators
- Assembly
- StockSharp.Algo.dll
Bollinger band.
public class BollingerBand : BaseIndicator, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
- Inheritance
-
BollingerBand
- Implements
-
IPersistableICloneable<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
StandardDeviationStandard 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
storage
SettingsStorageSettings storage.
OnProcess(IIndicatorValue)
To handle the input value.
protected override IIndicatorValue OnProcess(IIndicatorValue input)
Parameters
input
IIndicatorValueThe input value.
Returns
- IIndicatorValue
The resulting value.
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.