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
UpVolume
Up line color.
[Display(ResourceType = typeof(LocalizedStrings), Name = "UpColor", Description = "UpCandleColor")]
public IChartLineElement UpVolume { get; }
Property Value
Methods
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings 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
VolumeIndicatorIndicator.
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.