Xamarin.Android

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

    Show / Hide Table of Contents

    Class MACDIndicator

    Represents a MACD 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
    ChartSeries
    FinancialTechnicalIndicator
    MACDIndicator
    Inherited Members
    FinancialTechnicalIndicator.GetChart()
    FinancialTechnicalIndicator.ScheduleUpdateArea()
    FinancialTechnicalIndicator.InvalidateRender()
    FinancialTechnicalIndicator.High
    FinancialTechnicalIndicator.Low
    FinancialTechnicalIndicator.Open
    FinancialTechnicalIndicator.Close
    FinancialTechnicalIndicator.XAxis
    FinancialTechnicalIndicator.YAxis
    FinancialTechnicalIndicator.ActualXAxis
    FinancialTechnicalIndicator.ActualYAxis
    FinancialTechnicalIndicator.SeriesName
    FinancialTechnicalIndicator.SignalLineColor
    ChartSeries.GeneratePoints(String[], IList<Double>[])
    ChartSeries.GetSelectionColor()
    ChartSeries.GetGradientStartPoint(ChartSegment)
    ChartSeries.GetGradientEndPoint(ChartSegment)
    ChartSeries.OnBindingPathChanged()
    ChartSeries.SetIndividualPoint(Int32, Object, Boolean)
    ChartSeries.ClearUnUsedDataMarkerLabels(Int32)
    ChartSeries.SeriesContainsPoint(PointF)
    ChartSeries.GetDataPointIndex(Single, Single)
    ChartSeries.OnAttachedToChart()
    ChartSeries.OnDetachedFromChart()
    ChartSeries.SetFillColor(ChartSegment)
    ChartSeries.SetStrokeWidth(ChartSegment)
    ChartSeries.SuspendNotification()
    ChartSeries.ResumeNotification()
    ChartSeries.DrawDataMarker(Int32, Canvas, Paint, Paint, Single, Single)
    ChartSeries.DrawDataMarkerLabel(Int32, Canvas, String, Single, Single)
    ChartSeries.OnTouchMove(MotionEvent)
    ChartSeries.Animate()
    ChartSeries.GetView()
    ChartSeries.ListenPropertyChange
    ChartSeries.DataMarker
    ChartSeries.EnableAnimation
    ChartSeries.AnimationDuration
    ChartSeries.IsSelected
    ChartSeries.SelectedDataPointIndex
    ChartSeries.DataPointSelectionEnabled
    ChartSeries.SelectedDataPointColor
    ChartSeries.DataCount
    ChartSeries.Name
    ChartSeries.Color
    ChartSeries.StrokeWidth
    ChartSeries.Alpha
    ChartSeries.LegendIcon
    ChartSeries.Label
    ChartSeries.TooltipEnabled
    ChartSeries.ItemsSource
    ChartSeries.XBindingPath
    ChartSeries.ColorModel
    ChartSeries.XRange
    ChartSeries.YRange
    ChartSeries.Segments
    ChartSeries.Chart
    ChartSeries.VisibilityOnLegend
    ChartSeries.Visibility
    ChartSeries.DataMarkerLabelCreated
    Namespace: Com.Syncfusion.Charts
    Assembly: Syncfusion.SfChart.Android.dll
    Syntax
    public class MACDIndicator : FinancialTechnicalIndicator
    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 MACDIndicator.

    Constructors

    MACDIndicator()

    Declaration
    public MACDIndicator()

    Properties

    HistogramColor

    Gets or sets the color of the histogram.

    Declaration
    public Color HistogramColor { get; set; }
    Property Value
    Type Description
    Android.Graphics.Color

    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 Color MACDLineColor { get; set; }
    Property Value
    Type Description
    Android.Graphics.Color

    MACDType

    Gets or sets the MACD type for the indicator.

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

    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 ChartSegment CreateSegment()
    Returns
    Type Description
    ChartSegment
    Overrides
    ChartSeries.CreateSegment()

    CreateSegments()

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

    GeneratePoints()

    Declaration
    protected override void GeneratePoints()
    Overrides
    FinancialTechnicalIndicator.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