Table of Contents

Class DefaultPainter

Namespace
StockSharp.Xaml.Charting.IndicatorPainters
Assembly
StockSharp.Xaml.Charting.dll

Indicator painter which is used by default.

public class DefaultPainter : BaseChartIndicatorPainter<IIndicator>, IChartIndicatorPainter, IPersistable
Inheritance
DefaultPainter
Implements
IPersistable
Derived
Inherited Members
Extension Methods

Constructors

DefaultPainter()

Create instance.

public DefaultPainter()

Properties

Line

Default indicator line element.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Line2", Description = "Line2")]
public IChartLineElement Line { get; }

Property Value

IChartLineElement

Methods

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

OnDraw(IIndicator, IDictionary<IIndicator, IList<IndicatorData>>)

Draw values on chart.

protected override bool OnDraw(IIndicator indicator, IDictionary<IIndicator, IList<ChartDrawData.IndicatorData>> data)

Parameters

indicator IIndicator

Indicator.

data IDictionary<IIndicator, IList<ChartDrawData.IndicatorData>>

Indicator values to draw on chart.

Returns

bool

true if the data was successfully drawn, otherwise, returns false.

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.