Class RSITechnicalIndicator
Represents the RelativeStrengthIndex technical indicator.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.UWP.dll
Syntax
public class RSITechnicalIndicator : FinancialTechnicalIndicator, ICloneable, ISupportAxes2D, ISupportAxes
Constructors
RSITechnicalIndicator()
Called when instance created for RSITechnicalIndicator.
Declaration
public RSITechnicalIndicator()
Fields
LowerLineColorProperty
The DependencyProperty for LowerLineColor property.
Declaration
public static readonly DependencyProperty LowerLineColorProperty
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 |
SignalLineColorProperty
The DependencyProperty for SignalLineColor property.
Declaration
public static readonly DependencyProperty SignalLineColorProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
UpperLineColorProperty
The DependencyProperty for UpperLineColor property.
Declaration
public static readonly DependencyProperty UpperLineColorProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
Properties
LowerLineColor
Gets or sets the lower line color.
Declaration
public Brush LowerLineColor { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Media.Brush | The Windows.UI.Xaml.Media.Brush value. |
Period
Gets or sets the moving average period for indicator.
Declaration
public int Period { get; set; }
Property Value
Type |
---|
System.Int32 |
Remarks
The default value is 14 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. |
UpperLineColor
Gets or sets the upper line color.
Declaration
public Brush UpperLineColor { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Media.Brush | The Windows.UI.Xaml.Media.Brush value. |
Methods
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
CreateSegment()
Creates an instance of series segment.
Declaration
protected override ChartSegment CreateSegment()
Returns
Type | Description |
---|---|
ChartSegment | Returns the instance of corresponding series segment. |
Overrides
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 RSITechnicalIndicator.
Declaration
public override void CreateSegments()
Overrides
GeneratePoints()
Method implementation for GeneratePoints for TechnicalIndicator.
Declaration
protected override void GeneratePoints()
Overrides
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
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
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
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. |