Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SFMACDIndicator

    Show / Hide Table of Contents

    Class SFMACDIndicator

    Represents a SFMACD indicator. To render this indicator, create an instance of this class and add it to TechnicalIndicators collection property and set the required properties.

    Inheritance
    System.Object
    SFSeries
    SFTechnicalIndicator
    SFMACDIndicator
    Inherited Members
    SFTechnicalIndicator.ReloadData()
    SFTechnicalIndicator.CreateSegments()
    SFTechnicalIndicator.AnimationForSegment(SFChartSegment)
    SFTechnicalIndicator.GetChart()
    SFTechnicalIndicator.ScheduleUpdateArea()
    SFTechnicalIndicator.InvalidateRender()
    SFTechnicalIndicator.LineWidth
    SFTechnicalIndicator.High
    SFTechnicalIndicator.Low
    SFTechnicalIndicator.Open
    SFTechnicalIndicator.Close
    SFTechnicalIndicator.XAxis
    SFTechnicalIndicator.YAxis
    SFTechnicalIndicator.ActualXAxis
    SFTechnicalIndicator.ActualYAxis
    SFTechnicalIndicator.SeriesName
    SFTechnicalIndicator.SignalLineColor
    SFSeries.Animate()
    SFSeries.CreateRenderer()
    SFSeries.InsertDataPointAtIndex(nint)
    SFSeries.RemoveDataPointAtIndex(nint)
    SFSeries.DrawLayer(CALayer, CGContext)
    SFSeries.DrawInContext(CGContext)
    SFSeries.DataPointIndexAtPoint(CGPoint)
    SFSeries.DrawMarker(CGContext, Double, Double, Int32)
    SFSeries.DrawLabel(NSString, CGContext, Double, Double, Int32)
    SFSeries.DrawConnectorLine(CGContext, Double, Double, Double, Double, NSColor, Int32)
    SFSeries.GeneratePoints(String[], IList<Double>[])
    SFSeries.GetSelectionColor()
    SFSeries.GetGradientStartPoint(SFChartSegment)
    SFSeries.GetGradientEndPoint(SFChartSegment)
    SFSeries.OnBindingPathChanged()
    SFSeries.SetIndividualPoint(Int32, Object, Boolean)
    SFSeries.ClearUnUsedDataMarkerLabels(Int32)
    SFSeries.SeriesContainsPoint(CGPoint)
    SFSeries.OnAttachedToChart()
    SFSeries.OnDetachedFromChart()
    SFSeries.SetFillColor(SFChartSegment)
    SFSeries.SetStrokeWidth(SFChartSegment)
    SFSeries.SuspendNotification()
    SFSeries.ResumeNotification()
    SFSeries.EnableTooltip
    SFSeries.LegendIcon
    SFSeries.EnableDataPointSelection
    SFSeries.Visible
    SFSeries.VisibleOnLegend
    SFSeries.LayerFrame
    SFSeries.ListenPropertyChange
    SFSeries.DataMarker
    SFSeries.EnableAnimation
    SFSeries.AnimationDuration
    SFSeries.IsSelected
    SFSeries.SelectedDataPointIndex
    SFSeries.SelectedDataPointColor
    SFSeries.DataCount
    SFSeries.Name
    SFSeries.Color
    SFSeries.Alpha
    SFSeries.Label
    SFSeries.ItemsSource
    SFSeries.XBindingPath
    SFSeries.ColorModel
    SFSeries.XRange
    SFSeries.YRange
    SFSeries.Segments
    SFSeries.DataMarkerLabelCreated
    Namespace: Syncfusion.MacOS.Charts.SfChart
    Assembly: Syncfusion.SfChart.XForms.macOS.dll
    Syntax
    public class SFMACDIndicator : SFTechnicalIndicator
    Remarks

    This indicator can be associated to a financial series in SFChart by specifying the name of series using SeriesName property. If the SeriesName is specified, all the required properties such as
    ItemsSource, XBindingPath, High, Low, Open and Close will be derived from the associated series. In case, the SeriesName is not specified, all those required properties need to be explicitly specified in SFMACDIndicator.

    Constructors

    SFMACDIndicator()

    Declaration
    public SFMACDIndicator()

    Properties

    HistogramColor

    Gets or sets the color of the histogram.

    Declaration
    public NSColor HistogramColor { get; set; }
    Property Value
    Type Description
    AppKit.NSColor

    LongPeriod

    Gets or sets the long period for the indicator.

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

    MACDLineColor

    Gets or sets the color of the MACD Line.

    Declaration
    public NSColor MACDLineColor { get; set; }
    Property Value
    Type Description
    AppKit.NSColor

    MACDType

    Gets or sets the MACD type for the indicator.

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

    ShortPeriod

    Gets or sets the short period for the indicator.

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

    Trigger

    Gets or sets the trigger period for the indicator.

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

    Methods

    CreateSegment()

    Declaration
    protected override SFChartSegment CreateSegment()
    Returns
    Type Description
    SFChartSegment
    Overrides
    SFTechnicalIndicator.CreateSegment()

    GeneratePoints()

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

    GetDataPoints(Int32)

    Declaration
    protected List<double> GetDataPoints(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Collections.Generic.List<System.Double>

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved