BollingerBandsPainter

StockSharp.Xaml.Charting.IndicatorPainters

The chart element for BollingerBands.

Inherits: BaseChartIndicatorPainter<BollingerBands>

Constructors

BollingerBandsPainter
public BollingerBandsPainter()
bollingerBandsPainter = BollingerBandsPainter()

Create instance.

Properties

Band
public IChartBandElement Band { get; }
value = bollingerBandsPainter.Band

Band.

MovingAverage
public IChartLineElement MovingAverage { get; }
value = bollingerBandsPainter.MovingAverage

MovingAverage.

Methods

LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = bollingerBandsPainter.LoadAsync(storage, cancellationToken)

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

OnDraw
protected override bool OnDraw(BollingerBands indicator, IDictionary<IIndicator, IList<IndicatorData>> data)
result = bollingerBandsPainter.OnDraw(indicator, data)
SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = bollingerBandsPainter.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task