Class
MacdIndicator

This class represents the MovingAverageConvergenceDivergence financial indicator.

Definition

Namespace:Telerik.UI.Xaml.Controls.Chart

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class MacdIndicator : ShortLongPeriodIndicatorBase, IChartSeries, IChartElementPresenter, IElementPresenter

Inheritance: objectRadControlPresenterBaseChartElementPresenterChartSeriesIndicatorBaseLineIndicatorBaseValueIndicatorBaseShortLongPeriodIndicatorBaseMacdIndicator

Implements: IChartElementPresenterIChartSeriesIElementPresenter

Inherited Members ShortLongPeriodIndicatorBase.LongPeriodPropertyShortLongPeriodIndicatorBase.ShortPeriodPropertyShortLongPeriodIndicatorBase.LongPeriodShortLongPeriodIndicatorBase.ShortPeriodValueIndicatorBase.ValueBindingPropertyValueIndicatorBase.ValueBindingLineIndicatorBase.StrokePropertyLineIndicatorBase.StrokeThicknessPropertyLineIndicatorBase.StrokeDashArrayPropertyLineIndicatorBase.StrokeLineJoinPropertyLineIndicatorBase.StrokeLineIndicatorBase.StrokeThicknessLineIndicatorBase.StrokeDashArrayLineIndicatorBase.StrokeLineJoinIndicatorBase.CategoryBindingPropertyIndicatorBase.OnCreateAutomationPeer()IndicatorBase.DataPointsIndicatorBase.CategoryBindingChartSeries.IsSelectedPropertyChartSeries.AllowSelectPropertyChartSeries.ShowLabelsPropertyChartSeries.ItemsSourcePropertyChartSeries.ClipToPlotAreaPropertyChartSeries.IsSelectedBindingPropertyChartSeries.PaletteIndexPropertyChartSeries.HitTest(Rect)ChartSeries.HitTestDataPoints(Rect)ChartSeries.HitTestElementsCore(Rect, bool, bool)ChartSeries.SelectRectPoints(ref Rect)ChartSeries.HitTestDataPointsCore(Rect)ChartSeries.HitTestDataPointsCore(Rect, bool)ChartSeries.GetDataPointLabels(DataPoint)ChartSeries.OnTemplateApplied()ChartSeries.IsSelectedChartSeries.AllowSelectChartSeries.PaletteIndexChartSeries.LabelDefinitionsChartSeries.IsSelectedBindingChartSeries.ShowLabelsChartSeries.DisplayNameChartSeries.ClipToPlotAreaChartSeries.ItemsSourceChartSeries.ActualPaletteIndexChartSeries.DataBindingCompleteChartElementPresenter.ZIndexChartElementPresenter.ChartPresenterBase.InfinitySizePresenterBase.InfinityPointPresenterBase.RefreshNode(object)PresenterBase.InvalidatePalette()PresenterBase.MeasureNodeOverride(Node, object)PresenterBase.RefreshNodeCore(Node)PresenterBase.CreateContentPresenter(object, DataTemplate)PresenterBase.RenderSurfacePresenterBase.CompositorPresenterBase.ContainerVisualRootRadControl.EndVisualStateUpdate(bool, bool)RadControl.UpdateVisualState(bool)RadControl.BeginVisualStateUpdate()RadControl.SetVisualState(string, bool)RadControl.CanUpdateVisualState()RadControl.ComposeVisualStateName()RadControl.MeasureOverride(Size)RadControl.ArrangeOverride(Size)RadControl.OnApplyTemplate()RadControl.OnIsEnabledChanged(bool, bool)RadControl.LoadCore()RadControl.OnLoaded()RadControl.UnloadCore()RadControl.CurrentVisualStateRadControl.IsLoadedRadControl.IsLoadingRadControl.IsUnloadedRadControl.WasUnloadedRadControl.IsTemplateApplied

Constructors

MacdIndicator()

Initializes a new instance of the MacdIndicator class.

Declaration

cs-api-definition
public MacdIndicator()

Fields

SignalPeriodProperty

Identifies the SignalPeriod dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SignalPeriodProperty

Field Value

DependencyProperty

SignalStrokeProperty

Identifies the SignalStroke property.

Declaration

cs-api-definition
public static readonly DependencyProperty SignalStrokeProperty

Field Value

DependencyProperty

Properties

SignalPeriod

Gets or sets the indicator signal period.

Declaration

cs-api-definition
public int SignalPeriod { get; set; }

Property Value

int

The signal period.

SignalStroke

Gets or sets the Brush instance that defines the stroke of the line.

Declaration

cs-api-definition
public Brush SignalStroke { get; set; }

Property Value

Brush

Methods

ApplyTemplateCore()

Adds the polyline shape to the visual tree.

Declaration

cs-api-definition
protected override bool ApplyTemplateCore()

Returns

bool

Overrides LineIndicatorBase.ApplyTemplateCore()

OnAttached()

Occurs when the presenter has been successfully attached to its owning RadChartBase instance.

Declaration

cs-api-definition
protected override void OnAttached()

Overrides IndicatorBase.OnAttached()

OnDetached(RadChartBase)

Occurs when the presenter has been successfully detached from its owning RadChartBase instance.

Declaration

cs-api-definition
protected override void OnDetached(RadChartBase oldChart)

Parameters

oldChart

RadChartBase

Overrides IndicatorBase.OnDetached(RadChartBase)

OnStrokeDashArrayChanged(DoubleCollection)

Called when the StrokeDashArray property is changed.

Declaration

cs-api-definition
protected override void OnStrokeDashArrayChanged(DoubleCollection newValue)

Parameters

newValue

DoubleCollection

Overrides LineIndicatorBase.OnStrokeDashArrayChanged(DoubleCollection)

OnStrokeLineJoinChanged(PenLineJoin)

Called when the StrokeLineJoin property is changed.

Declaration

cs-api-definition
protected override void OnStrokeLineJoinChanged(PenLineJoin newValue)

Parameters

newValue

PenLineJoin

Overrides LineIndicatorBase.OnStrokeLineJoinChanged(PenLineJoin)

OnStrokeThicknessChanged(double)

Called when the StrokeThickness property is changed.

Declaration

cs-api-definition
protected override void OnStrokeThicknessChanged(double newValue)

Parameters

newValue

double

Overrides LineIndicatorBase.OnStrokeThicknessChanged(double)

ToString()

Returns a string that represents the current object.

Declaration

cs-api-definition
public override string ToString()

Returns

string

UnapplyTemplateCore()

Removes the current control template. Occurs when a template has already been applied and a new one is applied.

Declaration

cs-api-definition
protected override void UnapplyTemplateCore()

Overrides LineIndicatorBase.UnapplyTemplateCore()