RelativeVigorIndexPainter

StockSharp.Xaml.Charting.IndicatorPainters

RelativeVigorIndex的图表元素.

继承自: BaseChartIndicatorPainter<RelativeVigorIndex>

构造函数

RelativeVigorIndexPainter
public RelativeVigorIndexPainter()
relativeVigorIndexPainter = RelativeVigorIndexPainter()

创建实例 。

属性

Average
public IChartLineElement Average { get; }
value = relativeVigorIndexPainter.Average

平均数。

Signal
public IChartLineElement Signal { get; }
value = relativeVigorIndexPainter.Signal

信号

方法

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

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

返回值: Task

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

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

返回值: Task