Class FinancialTechnicalIndicator
Serves as a base class for all types of technical indicators. This class has options to render the indicators.
Inheritance
Namespace: Syncfusion.SfChart.XForms
Assembly: Syncfusion.SfChart.XForms.dll
Syntax
public class FinancialTechnicalIndicator : Element, IThemeElement
Constructors
FinancialTechnicalIndicator()
Initializes a new instance of the FinancialTechnicalIndicator class.
Declaration
public FinancialTechnicalIndicator()
Fields
AnimationDurationProperty
Gets or sets the animation duration in seconds.
Declaration
public static readonly BindableProperty AnimationDurationProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
CloseProperty
Gets or sets the Close value binding path.
Declaration
public static readonly BindableProperty CloseProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
EnableAnimationProperty
Gets or sets the value that determines, whether to enable animation for the Technical Indicators.
Declaration
public static readonly BindableProperty EnableAnimationProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
HighProperty
Gets or sets the High value binding path.
Declaration
public static readonly BindableProperty HighProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
IsVisibleProperty
Gets or sets the value that indicates whether the technical indicator is visible in the chart. This is a bindable property.
Declaration
public static readonly BindableProperty IsVisibleProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
ItemsSourceProperty
Gets or sets the ItemsSource property.
Declaration
public static readonly BindableProperty ItemsSourceProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
LowProperty
Gets or sets the Low value binding path.
Declaration
public static readonly BindableProperty LowProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
OpenProperty
Gets or sets the Open value binding path.
Declaration
public static readonly BindableProperty OpenProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
SeriesNameProperty
Gets or sets the Series name.
Declaration
public static readonly BindableProperty SeriesNameProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
StrokeWidthProperty
Gets or sets the width of the indicator line stroke.
Declaration
public static readonly BindableProperty StrokeWidthProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
XAxisProperty
Gets or sets the XAxis property.
Declaration
public static readonly BindableProperty XAxisProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
XBindingPathProperty
Gets or sets the XBindingPath property.
Declaration
public static readonly BindableProperty XBindingPathProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
YAxisProperty
Gets or sets the YAxis property.
Declaration
public static readonly BindableProperty YAxisProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
Properties
AnimationDuration
Gets or sets the animation duration for the technical indicators in seconds. This is a bindable property.
Declaration
public double AnimationDuration { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | This property takes the double value. |
Close
Gets or sets the property path to retrieve close value from ItemsSource.
Declaration
public string Close { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | This property takes the System.String as its value. |
EnableAnimation
Gets or sets a value indicating whether to enable animation for the indicator.
Declaration
public bool EnableAnimation { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | This property takes the boolean value. |
High
Gets or sets the property path to retrieve high value from ItemsSource.
Declaration
public string High { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | This property takes the System.String as its value. |
IsVisible
Gets or sets a value indicating whether the indicator is visible in the chart.
Declaration
public bool IsVisible { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | This property takes the boolean value. |
ItemsSource
Gets or sets the data source of the indicator.
Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.IEnumerable | This property takes the System.Collections.IList of ChartDataPoint as its value. |
Low
Gets or sets the property path to retrieve low value from ItemsSource to render technical indicators.
Declaration
public string Low { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | This property takes the System.String as its value. |
Open
Gets or sets the property path to retrieve open value from ItemsSource.
Declaration
public string Open { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | This property takes the System.String as its value. |
SeriesName
Gets or sets the name of the series to which this indicator is associated with.
Declaration
public string SeriesName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | This property takes the System.String as its value. |
StrokeWidth
Gets or sets the width of the indicators stroke. This is a bindable property.
Declaration
public double StrokeWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | This property takes the double value. |
XAxis
Gets or sets the XAxis property defines the additional horizontal axis for an individual indicator. This is a bindable property.
Declaration
public ChartAxis XAxis { get; set; }
Property Value
| Type | Description |
|---|---|
| ChartAxis | This property gets or sets the any of the following axis instance as value: |
XBindingPath
Gets or sets the property path of the x data in ItemsSource.
Declaration
public string XBindingPath { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | This property takes the Xamarin.Forms.Color as its value. |
YAxis
Gets or sets the XAxis property defines the additional Vertical axis for an individual indicator. This is a bindable property.
Declaration
public RangeAxisBase YAxis { get; set; }
Property Value
| Type | Description |
|---|---|
| RangeAxisBase | This property gets or sets the NumericalAxis as its value. |
Remarks
Secondary axis doesn't supports CategoryAxis or DateTimeAxis, except for Bar type series.
Methods
GetChartDataPoints()
Method used to get collection of ChartDataPoint used to draw in FinancialTechnicalIndicator.
Declaration
public virtual IList<ChartDataPoint> GetChartDataPoints()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IList<ChartDataPoint> | returns chartDataPoint |
OnBindingContextChanged()
Override this method to execute an action when the BindingContext changes.
Declaration
protected override void OnBindingContextChanged()
OnParentSet()
Declaration
protected override void OnParentSet()