menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MACDTechnicalIndicator - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MACDTechnicalIndicator

    Represents the MACD technical indicator.

    Inheritance
    System.Object
    ChartSeriesBase
    ChartSeries
    FinancialTechnicalIndicator
    MACDTechnicalIndicator
    Implements
    ICloneable
    ISupportAxes2D
    ISupportAxes
    Inherited Members
    ChartSeries.Area
    ChartSeries.GetDataPointIndex(Double, Double)
    ChartSeries.OnApplyTemplate()
    ChartSeries.Stroke
    ChartSeries.StrokeProperty
    ChartSeries.StrokeThickness
    ChartSeries.StrokeThicknessProperty
    ChartSeriesBase.ActualXAxis
    ChartSeriesBase.ActualXValues
    ChartSeriesBase.ActualYAxis
    ChartSeriesBase.Adornments
    ChartSeriesBase.AnimationDuration
    ChartSeriesBase.AnimationDurationProperty
    ChartSeriesBase.ChartTransformer
    ChartSeriesBase.ClearUnUsedSegments(Int32)
    ChartSeriesBase.Clone()
    ChartSeriesBase.ColorModel
    ChartSeriesBase.ColorModelProperty
    ChartSeriesBase.ColorValues
    ChartSeriesBase.CreateEmptyPointSegments(IList<Double>, List<List<Double>>, List<List<Double>>)
    ChartSeriesBase.CreateTransformer(Size, Boolean)
    ChartSeriesBase.DataCount
    ChartSeriesBase.EmptyPointInterior
    ChartSeriesBase.EmptyPointInteriorProperty
    ChartSeriesBase.EmptyPointStyle
    ChartSeriesBase.EmptyPointStyleProperty
    ChartSeriesBase.EmptyPointSymbolTemplate
    ChartSeriesBase.EmptyPointSymbolTemplateProperty
    ChartSeriesBase.EmptyPointValue
    ChartSeriesBase.EmptyPointValueProperty
    ChartSeriesBase.EnableAnimation
    ChartSeriesBase.EnableAnimationProperty
    ChartSeriesBase.FindNearestChartPoint(Point, Double, Double, Double)
    ChartSeriesBase.GeneratePoints(String[], IList<Double>[])
    ChartSeriesBase.GetAvailableSize()
    ChartSeriesBase.GetPreviousSeries(ChartSeriesBase)
    ChartSeriesBase.GetSideBySideInfo(ChartSeriesBase)
    ChartSeriesBase.GetSpacing(DependencyObject)
    ChartSeriesBase.GetXValues()
    ChartSeriesBase.InitialDelayTimer
    ChartSeriesBase.Interior
    ChartSeriesBase.InteriorProperty
    ChartSeriesBase.Invalidate()
    ChartSeriesBase.IsAreaTypeSeries
    ChartSeriesBase.IsBitmapSeries
    ChartSeriesBase.IsColorPathSeries
    ChartSeriesBase.IsIndexed
    ChartSeriesBase.IsLinear
    ChartSeriesBase.IsSeriesVisible
    ChartSeriesBase.IsSeriesVisibleProperty
    ChartSeriesBase.IsSortData
    ChartSeriesBase.IsSortDataProperty
    ChartSeriesBase.IsStacked
    ChartSeriesBase.IsTooltipAvailable(Canvas)
    ChartSeriesBase.ItemsSource
    ChartSeriesBase.ItemsSourceProperty
    ChartSeriesBase.Label
    ChartSeriesBase.LabelProperty
    ChartSeriesBase.LegendIcon
    ChartSeriesBase.LegendIconProperty
    ChartSeriesBase.LegendIconTemplate
    ChartSeriesBase.LegendIconTemplateProperty
    ChartSeriesBase.ListenPropertyChange
    ChartSeriesBase.ListenPropertyChangeProperty
    ChartSeriesBase.OnDataSourceChanged(DependencyPropertyChangedEventArgs)
    ChartSeriesBase.OnPointerExited(PointerRoutedEventArgs)
    ChartSeriesBase.OnPointerMoved(PointerRoutedEventArgs)
    ChartSeriesBase.OnPointerPressed(PointerRoutedEventArgs)
    ChartSeriesBase.OnPointerReleased(PointerRoutedEventArgs)
    ChartSeriesBase.OnSeriesMouseDown(Object, Point)
    ChartSeriesBase.OnSeriesMouseUp(Object, Point)
    ChartSeriesBase.OnTapped(TappedRoutedEventArgs)
    ChartSeriesBase.Palette
    ChartSeriesBase.PaletteProperty
    ChartSeriesBase.Position(Point, ChartTooltip)
    ChartSeriesBase.PropertyChanged
    ChartSeriesBase.ResumeNotification()
    ChartSeriesBase.SegmentColorPath
    ChartSeriesBase.SegmentColorPathProperty
    ChartSeriesBase.Segments
    ChartSeriesBase.SelectedIndexChanged(Int32, Int32)
    ChartSeriesBase.SelectedSegment
    ChartSeriesBase.SelectedSegments
    ChartSeriesBase.SelectedSegmentsIndexes
    ChartSeriesBase.SeriesSelectionBrush
    ChartSeriesBase.SeriesSelectionBrushProperty
    ChartSeriesBase.SetDoubleAnimation(ChartTooltip)
    ChartSeriesBase.SetIndividualDataTablePoint(Int32, Object, Boolean)
    ChartSeriesBase.SetIndividualPoint(Int32, Object, Boolean)
    ChartSeriesBase.SetSpacing(DependencyObject, Double)
    ChartSeriesBase.SetTooltipDuration()
    ChartSeriesBase.ShowEmptyPoints
    ChartSeriesBase.ShowEmptyPointsProperty
    ChartSeriesBase.ShowTooltip
    ChartSeriesBase.ShowTooltipProperty
    ChartSeriesBase.SortBy
    ChartSeriesBase.SortByProperty
    ChartSeriesBase.SortDirection
    ChartSeriesBase.SortDirectionProperty
    ChartSeriesBase.SpacingProperty
    ChartSeriesBase.SuspendNotification()
    ChartSeriesBase.Timer
    ChartSeriesBase.TooltipTemplate
    ChartSeriesBase.TooltipTemplateProperty
    ChartSeriesBase.TrackBallLabelTemplate
    ChartSeriesBase.TrackBallLabelTemplateProperty
    ChartSeriesBase.UpdateArea()
    ChartSeriesBase.VisibilityOnLegend
    ChartSeriesBase.VisibilityOnLegendProperty
    ChartSeriesBase.XBindingPath
    ChartSeriesBase.XBindingPathProperty
    ChartSeriesBase.YPaths
    FinancialTechnicalIndicator.Close
    FinancialTechnicalIndicator.CloseProperty
    FinancialTechnicalIndicator.CustomTemplate
    FinancialTechnicalIndicator.CustomTemplateProperty
    FinancialTechnicalIndicator.High
    FinancialTechnicalIndicator.HighProperty
    FinancialTechnicalIndicator.IsTransposed
    FinancialTechnicalIndicator.IsTransposedProperty
    FinancialTechnicalIndicator.ISupportAxes.ActualXAxis
    FinancialTechnicalIndicator.ISupportAxes.ActualYAxis
    FinancialTechnicalIndicator.Low
    FinancialTechnicalIndicator.LowProperty
    FinancialTechnicalIndicator.OnXAxisChanged(ChartAxis, ChartAxis)
    FinancialTechnicalIndicator.OnYAxisChanged(ChartAxis, ChartAxis)
    FinancialTechnicalIndicator.Open
    FinancialTechnicalIndicator.OpenProperty
    FinancialTechnicalIndicator.SeriesName
    FinancialTechnicalIndicator.SeriesNameProperty
    FinancialTechnicalIndicator.ShowTrackballInfo
    FinancialTechnicalIndicator.ShowTrackballInfoProperty
    FinancialTechnicalIndicator.StrokeDashArray
    FinancialTechnicalIndicator.StrokeDashArrayProperty
    FinancialTechnicalIndicator.Volume
    FinancialTechnicalIndicator.VolumeProperty
    FinancialTechnicalIndicator.XAxis
    FinancialTechnicalIndicator.XAxisProperty
    FinancialTechnicalIndicator.XRange
    FinancialTechnicalIndicator.YAxis
    FinancialTechnicalIndicator.YAxisProperty
    FinancialTechnicalIndicator.YRange
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.SfChart.UWP.dll
    Syntax
    public class MACDTechnicalIndicator : FinancialTechnicalIndicator, ICloneable, ISupportAxes2D, ISupportAxes

    Constructors

    MACDTechnicalIndicator()

    Called when instance created for MACDTechnicalIndicator.

    Declaration
    public MACDTechnicalIndicator()

    Fields

    ConvergenceLineColorProperty

    The DependencyProperty for ConvergenceLineColor property.

    Declaration
    public static readonly DependencyProperty ConvergenceLineColorProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    DivergenceLineColorProperty

    The DependencyProperty for DivergenceLineColor property.

    Declaration
    public static readonly DependencyProperty DivergenceLineColorProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    HistogramColorProperty

    The DependencyProperty for HistogramColor property.

    Declaration
    public static readonly DependencyProperty HistogramColorProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    LongPeriodProperty

    The DependencyProperty for LongPeriod property.

    Declaration
    public static readonly DependencyProperty LongPeriodProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    PeriodProperty

    The DependencyProperty for Period property.

    Declaration
    public static readonly DependencyProperty PeriodProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    ShortPeriodProperty

    The DependencyProperty for ShortPeriod property.

    Declaration
    public static readonly DependencyProperty ShortPeriodProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    SignalLineColorProperty

    The DependencyProperty for SignalLineColor property.

    Declaration
    public static readonly DependencyProperty SignalLineColorProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    TypeProperty

    The DependencyProperty for Type property.

    Declaration
    public static readonly DependencyProperty TypeProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    Properties

    ConvergenceLineColor

    Gets or sets the convergence line color.

    Declaration
    public Brush ConvergenceLineColor { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.Media.Brush

    The Windows.UI.Xaml.Media.Brush value.

    DivergenceLineColor

    Gets or sets the divergence line color.

    Declaration
    public Brush DivergenceLineColor { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.Media.Brush

    The Windows.UI.Xaml.Media.Brush value.

    HistogramColor

    Gets or sets the histogram interior color.

    Declaration
    public Brush HistogramColor { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.Media.Brush

    The Windows.UI.Xaml.Media.Brush value.

    IsSideBySide

    Gets a value indicating whether this series is placed side by side.

    Declaration
    protected override bool IsSideBySide { get; }
    Property Value
    Type Description
    System.Boolean

    It returns true, if the series is placed side by side [cluster mode].

    Overrides
    ChartSeriesBase.IsSideBySide

    LongPeriod

    Gets or sets the long time period(no of days) for calculating EMA.

    Declaration
    public int LongPeriod { get; set; }
    Property Value
    Type
    System.Int32
    Remarks

    By default, its value is 26 days.

    Period

    Gets or sets the moving average period for MACD.

    Declaration
    public int Period { get; set; }
    Property Value
    Type
    System.Int32

    ShortPeriod

    Gets or sets the short time period(no of days) for calculating EMA.

    Declaration
    public int ShortPeriod { get; set; }
    Property Value
    Type
    System.Int32
    Remarks

    By default, its value is 12 days.

    SignalLineColor

    Gets or sets the signal line color.

    Declaration
    public Brush SignalLineColor { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.Media.Brush

    The Windows.UI.Xaml.Media.Brush value.

    Type

    Gets or sets the type of MACD indicator.

    Declaration
    public MACDType Type { get; set; }
    Property Value
    Type Description
    MACDType

    MACDType

    Methods

    AddMACDPoints()

    Method implementation for add MACD indicator values.

    Declaration
    public void AddMACDPoints()

    CloneSeries(DependencyObject)

    Declaration
    protected override DependencyObject CloneSeries(DependencyObject obj)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DependencyObject obj
    Returns
    Type
    Windows.UI.Xaml.DependencyObject
    Overrides
    FinancialTechnicalIndicator.CloneSeries(DependencyObject)

    CreateSegment()

    Creates an instance of series segment.

    Declaration
    protected override ChartSegment CreateSegment()
    Returns
    Type Description
    ChartSegment

    Returns the instance of corresponding series segment.

    Overrides
    ChartSeries.CreateSegment()
    Remarks

    This customization is not supported for fast type series and technical indicators.

    Examples

    This sample shows how to call the CreateSegment() method to customize the line series segments.

    public class LineSeriesExt : LineSeries
    {​ 
        protected override ChartSegment CreateSegment()
        {​
            return new LineSegmentExt();
        }​
    }​
    
    public class LineSegmentExt : LineSegment
    {​
        public override UIElement CreateVisual(Size size)
        {​
            // Write your customization code here.
        }​
    
        public override void Update(IChartTransformer transformer)
        {​
            // Write your customization code here.
        }​
    }

    CreateSegments()

    Creates the segments of MACDTechnicalIndicator.

    Declaration
    public override void CreateSegments()
    Overrides
    FinancialTechnicalIndicator.CreateSegments()

    GeneratePoints()

    Method implementation for GeneratePoints for TechnicalIndicator.

    Declaration
    protected override void GeneratePoints()
    Overrides
    FinancialTechnicalIndicator.GeneratePoints()

    OnBindingPathChanged(DependencyPropertyChangedEventArgs)

    Called when binding path changed.

    Declaration
    protected override void OnBindingPathChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DependencyPropertyChangedEventArgs args

    Event args.

    Overrides
    ChartSeriesBase.OnBindingPathChanged(DependencyPropertyChangedEventArgs)

    OnDataSourceChanged(IEnumerable, IEnumerable)

    Called when ItemsSource changed.

    Declaration
    protected override void OnDataSourceChanged(IEnumerable oldValue, IEnumerable newValue)
    Parameters
    Type Name Description
    System.Collections.IEnumerable oldValue

    Specifies the old value.

    System.Collections.IEnumerable newValue

    Specifies the new value.

    Overrides
    FinancialTechnicalIndicator.OnDataSourceChanged(IEnumerable, IEnumerable)

    SetSeriesItemSource(ChartSeriesBase)

    Method implementation for set ItemsSource to TechnicalIndicator.

    Declaration
    protected override void SetSeriesItemSource(ChartSeriesBase series)
    Parameters
    Type Name Description
    ChartSeriesBase series

    TechnicalIndicator instance.

    Overrides
    FinancialTechnicalIndicator.SetSeriesItemSource(ChartSeriesBase)

    UpdateSegments(Int32, NotifyCollectionChangedAction)

    Updates the segment at the specified index.

    Declaration
    public override void UpdateSegments(int index, NotifyCollectionChangedAction action)
    Parameters
    Type Name Description
    System.Int32 index

    The index of the segment.

    System.Collections.Specialized.NotifyCollectionChangedAction action

    The action that caused the segments collection changed event.

    Overrides
    FinancialTechnicalIndicator.UpdateSegments(Int32, NotifyCollectionChangedAction)

    Implements

    ICloneable
    ISupportAxes2D
    ISupportAxes

    Extension Methods

    DateTimeExtension.ToDateTime(Object)

    See Also

    FinancialTechnicalIndicator
    TechnicalIndicatorSegment
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved