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
Methods
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings 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
IIndicatorIndicator.
data
IDictionary<IIndicator, IList<ChartDrawData.IndicatorData>>Indicator values to draw on chart.
Returns
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.