New to Telerik UI for WPFStart a free 30-day trial

This class represents the MovingAverageConvergenceDivergence financial indicator.

Definition

Namespace:Telerik.Windows.Controls.ChartView

Assembly:Telerik.Windows.Controls.Chart.dll

Syntax:

C#
public class MacdIndicator : ShortLongPeriodIndicatorBase, IChartElementPresenter

Inheritance: objectRadControlBasePresenterBaseChartElementPresenterChartSeriesIndicatorBaseLineIndicatorBaseValueIndicatorBaseShortLongPeriodIndicatorBaseMacdIndicator...

Implements: IChartElementPresenter

Inherited Members ShortLongPeriodIndicatorBase.LongPeriodPropertyShortLongPeriodIndicatorBase.ShortPeriodPropertyShortLongPeriodIndicatorBase.LongPeriodShortLongPeriodIndicatorBase.ShortPeriodValueIndicatorBase.ValueBindingPropertyValueIndicatorBase.ValueBindingLineIndicatorBase.StrokePropertyLineIndicatorBase.StrokeThicknessPropertyLineIndicatorBase.DashArrayPropertyLineIndicatorBase.StrokeLineIndicatorBase.StrokeThicknessLineIndicatorBase.DashArrayIndicatorBase.CategoryBindingPropertyIndicatorBase.OnCreateAutomationPeer()IndicatorBase.DataPointsIndicatorBase.CategoryBindingChartSeries.SeriesAnimationPropertyChartSeries.PointAnimationPropertyChartSeries.IsSelectedPropertyChartSeries.AllowSelectPropertyChartSeries.TrackBallTemplatePropertyChartSeries.TrackBallInfoTemplatePropertyChartSeries.ItemsSourcePropertyChartSeries.ClipToPlotAreaPropertyChartSeries.DisplayNamePropertyChartSeries.TooltipTemplatePropertyChartSeries.LabelConnectorsSettingsPropertyChartSeries.ShowLabelsPropertyChartSeries.PlaySeriesAnimation()ChartSeries.PlayPointAnimations()ChartSeries.OnLoaded(object, RoutedEventArgs)ChartSeries.OnPlaySeriesAnimation(bool)ChartSeries.OnPlayPointAnimations(bool)ChartSeries.HitTest(Rect)ChartSeries.HitTestDataPoints(Rect)ChartSeries.HitTestElements(Rect)ChartSeries.HitTestElementsCore(Rect)ChartSeries.HitTestDataPointsCore(Rect)ChartSeries.OnVisibilityChanged()ChartSeries.GetLabelConnector(ChartSeriesLabelPositionInfo)ChartSeries.GetDataPointLabels(DataPoint)ChartSeries.SeriesAnimationChartSeries.PointAnimationChartSeries.IsSelectedChartSeries.AllowSelectChartSeries.TrackBallTemplateChartSeries.TrackBallInfoTemplateChartSeries.DisplayNameChartSeries.TooltipTemplateChartSeries.ClipToPlotAreaChartSeries.ItemsSourceChartSeries.LabelConnectorsSettingsChartSeries.LabelDefinitionsChartSeries.ShowLabelsChartSeries.SeriesAnimationCompletedChartSeries.PointAnimationsCompletedChartSeries.DataBindingCompleteChartElementPresenter.OnPropertyChanged(DependencyPropertyChangedEventArgs)ChartElementPresenter.ZIndexChartElementPresenter.ChartPresenterBase.InfinitySizePresenterBase.InfinityPointPresenterBase.RefreshNode(ChartNode)PresenterBase.InvalidatePalette()PresenterBase.MeasureNodeOverride(ChartNode, object)PresenterBase.RefreshNodeCore(ChartNode)PresenterBase.CreateContentPresenter(object, DataTemplate)PresenterBase.OnInitialized(EventArgs)PresenterBase.RenderSurfaceRadControlBase.OnUnloaded(object, RoutedEventArgs)RadControlBase.IsLoadedRadControlBase.IsTemplateApplied...

Constructors

Initializes a new instance of the MacdIndicator class.

C#
public MacdIndicator()

Fields

SignalPeriodProperty

DependencyProperty

Identifies the SignalPeriod dependency property.

C#
public static readonly DependencyProperty SignalPeriodProperty

SignalStrokeProperty

DependencyProperty

Identifies the SignalStroke property.

C#
public static readonly DependencyProperty SignalStrokeProperty

Properties

Gets the collection of data points associated with the signal line.

C#
public DataPointCollection<CategoricalDataPoint> SignalDataPoints { get; }

Gets or sets the indicator signal period.

C#
public int SignalPeriod { get; set; }
Property Value:

The signal period.

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

C#
public Brush SignalStroke { get; set; }

Methods

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.

C#
public override void OnApplyTemplate()

Overrides: LineIndicatorBase.OnApplyTemplate()

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

C#
protected override void OnAttached()

Overrides: LineIndicatorBase.OnAttached()

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

C#
protected override void OnDetached(RadChartBase oldChart)
Parameters:oldChartRadChartBase

Overrides: LineIndicatorBase.OnDetached(RadChartBase)

Executed when the StrokeThickness property is changed.

C#
protected override void OnStrokeThicknessChanged(DependencyPropertyChangedEventArgs e)
Parameters:eDependencyPropertyChangedEventArgs

The DependencyPropertyChangedEventArgs instance containing the event data.

Overrides: LineIndicatorBase.OnStrokeThicknessChanged(DependencyPropertyChangedEventArgs)

Returns a string that represents the current object.

C#
public override string ToString()
Returns:

string