Class MACDTechnicalIndicator
Represents MACD technical indicator.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.UWP.dll
Syntax
public class MACDTechnicalIndicator : FinancialTechnicalIndicator, ICloneable, ISupportAxes2D, ISupportAxes
Constructors
MACDTechnicalIndicator()
Declaration
public MACDTechnicalIndicator()
Fields
ConvergenceLineColorProperty
The DependencyProperty for ConvergenceLineColor property.
Declaration
public static readonly DependencyProperty ConvergenceLineColorProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty |
DivergenceLineColorProperty
The DependencyProperty for DivergenceLineColor property.
Declaration
public static readonly DependencyProperty DivergenceLineColorProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty |
HistogramColorProperty
The DependencyProperty for HistogramColor property.
Declaration
public static readonly DependencyProperty HistogramColorProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty |
LongPeriodProperty
The DependencyProperty for LongPeriod property.
Declaration
public static readonly DependencyProperty LongPeriodProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty |
PeriodProperty
The DependencyProperty for Period property.
Declaration
public static readonly DependencyProperty PeriodProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty |
ShortPeriodProperty
The DependencyProperty for ShortPeriod property.
Declaration
public static readonly DependencyProperty ShortPeriodProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty |
SignalLineColorProperty
The DependencyProperty for SignalLineColor property.
Declaration
public static readonly DependencyProperty SignalLineColorProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty |
TypeProperty
The DependencyProperty for Type property.
Declaration
public static readonly DependencyProperty TypeProperty
Field Value
Type | Description |
---|---|
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 |
DivergenceLineColor
Gets or sets the divergence line color.
Declaration
public Brush DivergenceLineColor { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Media.Brush | The |
HistogramColor
Gets or sets the histogram interior color.
Declaration
public Brush HistogramColor { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Media.Brush | The |
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 |
Overrides
LongPeriod
Gets or sets the long time period(no of days) for calculating EMA.
Declaration
public int LongPeriod { get; set; }
Property Value
Type | Description |
---|---|
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 | Description |
---|---|
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 | Description |
---|---|
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 |
Type
Gets or sets the type of MACD indicator.
Declaration
public MACDType Type { get; set; }
Property Value
Type | Description |
---|---|
MACDType |
Methods
AddMACDPoints()
Method implementation for Add MACD property 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 | Description |
---|---|
Windows.UI.Xaml.DependencyObject |
Overrides
CreateSegment()
Declaration
protected override ChartSegment CreateSegment()
Returns
Type | Description |
---|---|
ChartSegment |
Overrides
CreateSegments()
Creates the segments of MACDTechnicalIndicator.
Declaration
public override void CreateSegments()
Overrides
GeneratePoints()
Method implementation for GeneratePoints for TechnicalIndicator
Declaration
protected override void GeneratePoints()
Overrides
OnBindingPathChanged(DependencyPropertyChangedEventArgs)
Declaration
protected override void OnBindingPathChanged(DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyPropertyChangedEventArgs | args |
Overrides
OnDataSourceChanged(IEnumerable, IEnumerable)
Called when DataSource changed
Declaration
protected override void OnDataSourceChanged(IEnumerable oldValue, IEnumerable newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | oldValue | |
System.Collections.IEnumerable | newValue |
Overrides
SetSeriesItemSource(ChartSeriesBase)
Method implementation for Set ItemSource to Series
Declaration
protected override void SetSeriesItemSource(ChartSeriesBase series)
Parameters
Type | Name | Description |
---|---|---|
ChartSeriesBase | series |
Overrides
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 |