BollingerBand
StockSharp.Algo.Indicators
Bollinger band.
Inherits: BaseIndicator
Constructors
BollingerBand
public BollingerBand(DecimalLengthIndicator ma, StandardDeviation dev)
bollingerBand = BollingerBand(ma, dev)
Initializes a new instance of the BollingerBand.
- ma
- Moving Average.
- dev
- Standard deviation.
Properties
NumValuesToInitialize
public override int NumValuesToInitialize { get; }
value = bollingerBand.NumValuesToInitialize
Number of values that need to be processed in order for the indicator to initialize (be IsFormed equals ). if undefined.
Width
public decimal Width { get; set; }
value = bollingerBand.Width
bollingerBand.Width = value
Channel width.
Methods
Load
public override void Load(SettingsStorage storage)
bollingerBand.Load(storage)
Load settings.
- storage
- Settings storage.
OnProcess
protected override IIndicatorValue OnProcess(IIndicatorValue input)
result = bollingerBand.OnProcess(input)
To handle the input value.
- input
- The input value.
Returns: The resulting value.
Save
public override void Save(SettingsStorage storage)
bollingerBand.Save(storage)
Save settings.
- storage
- Settings storage.
ToString
public override string ToString()
result = bollingerBand.ToString()
Преобразовать к строковому представлению.
Returns: Строковое представление.