Table of Contents

Class EnvelopePainter

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

The chart element for Envelope.

[Indicator(typeof(Envelope))]
public class EnvelopePainter : BaseChartIndicatorPainter<Envelope>, IChartIndicatorPainter, IPersistable
Inheritance
EnvelopePainter
Implements
IPersistable
Inherited Members
Extension Methods

Constructors

EnvelopePainter()

Create instance.

public EnvelopePainter()

Properties

Band

[Display(ResourceType = typeof(LocalizedStrings), Name = "Band", Description = "Band")]
public IChartBandElement Band { get; }

Property Value

IChartBandElement

MovingAverage

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

Property Value

IChartLineElement

Methods

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

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

Draw values on chart.

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

Parameters

indicator Envelope

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.