Table of Contents

Class AverageDirectionalIndexPainter

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

Chart painter for AverageDirectionalIndex indicator.

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

Constructors

AverageDirectionalIndexPainter()

Create instance.

public AverageDirectionalIndexPainter()

Properties

Adx

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

Property Value

IChartLineElement

DiMinus

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

Property Value

IChartLineElement

DiPlus

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

Property Value

IChartLineElement

Methods

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

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

Draw values on chart.

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

Parameters

indicator AverageDirectionalIndex

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.