BollingerBandsPainter
StockSharp.Xaml.Charting.IndicatorPainters
The chart element for BollingerBands.
继承自: BaseChartIndicatorPainter<BollingerBands>
构造函数
BollingerBandsPainter
public BollingerBandsPainter()
bollingerBandsPainter = BollingerBandsPainter()
创建实例 。
属性
MovingAverage
public IChartLineElement MovingAverage { get; }
value = bollingerBandsPainter.MovingAverage
MovingAverage.
方法
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = bollingerBandsPainter.LoadAsync(storage, cancellationToken)
Load settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
返回值: 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
返回值: Task