BaseChartIndicatorPainter

StockSharp.Xaml.Charting.IndicatorPainters

The indicator renderer base class on the chart (for example, lines, histograms, etc.).

Erbt von: ChartBaseViewModel

Implementiert: IChartIndicatorPainter, IPersistable

Eigenschaften

Element : IChartIndicatorElement

The chart element representing the indicator.

IsAttached : bool

Whether this painter is currently attached to chart element.

Methoden

AddChildElement(IChartElement)

Add inner chart element.

element
Element.
Draw(IChartDrawData) : bool

To process the new data.

data
New data.

Rückgabe: if the data was successfully drawn, otherwise, returns .

DrawValues(IList<IndicatorData>, IChartElement, Func<IndicatorData, double>) : bool

Draw indicator values using value getter.

vals
Values.
element
Element.
getValue
Converter.

Rückgabe: if the data was successfully drawn, otherwise, returns .

DrawValues(IList<IndicatorData>, IChartElement) : bool

Draw indicator single double values.

vals
Values.
element
Element.

Rückgabe: if the data was successfully drawn, otherwise, returns .

DrawValues(IList<IndicatorData>, IList<IndicatorData>, IChartElement) : bool

Draw indicator band values (2 doubles).

vals1
Values 1.
vals2
Values 2.
element
Element.

Rückgabe: if the data was successfully drawn, otherwise, returns .

DrawValues(IList<IndicatorData>, IList<IndicatorData>, IChartElement, Func<double, double, double>) : bool

Draw indicator converting from 2 doubles to one with converter.

vals1
Values 1.
vals2
Values 2.
element
Element.
op
Operation.

Rückgabe: if the data was successfully drawn, otherwise, returns .

Load(SettingsStorage)

Load settings.

storage
Settings storage.
OnAttached(IChartIndicatorElement)

Called when this painter is attached to chart indicator element.

OnDetached()

Called when this painter is detached from chart indicator element.

OnDraw(T, IDictionary<IIndicator, IList<IndicatorData>>) : bool

Draw values on chart.

indicator
Indicator.
data
Indicator values to draw on chart.

Rückgabe: if the data was successfully drawn, otherwise, returns .

RemoveChildElement(IChartElement)

Remove inner chart element.

element
Element.
Reset()

Reset state.

Save(SettingsStorage)

Save settings.

storage
Settings storage.