Table of Contents

Class VolumePainter

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

The chart element for VolumeIndicator.

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

Constructors

VolumePainter()

Create instance.

public VolumePainter()

Properties

DownVolume

Down line color.

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

Property Value

IChartLineElement

UpVolume

Up line color.

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

Property Value

IChartLineElement

Methods

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

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

Draw values on chart.

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

Parameters

indicator VolumeIndicator

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.