Class StochasticTechnicalIndicator
Represents Stochastic technical indicator.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.UWP.dll
Syntax
public class StochasticTechnicalIndicator : FinancialTechnicalIndicator, ICloneable, ISupportAxes2D, ISupportAxes
Constructors
StochasticTechnicalIndicator()
Declaration
public StochasticTechnicalIndicator()
Fields
DPeriodProperty
The DependencyProperty for DPeriod property.
Declaration
public static readonly DependencyProperty DPeriodProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty |
KPeriodProperty
The DependencyProperty for KPeriod property.
Declaration
public static readonly DependencyProperty KPeriodProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty |
LowerLineColorProperty
The DependencyProperty for LowerLineColor property.
Declaration
public static readonly DependencyProperty LowerLineColorProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty |
PeriodLineColorProperty
The DependencyProperty for PeriodLineColor property.
Declaration
public static readonly DependencyProperty PeriodLineColorProperty
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 |
SignalLineColorProperty
The DependencyProperty for SignalLineColor property.
Declaration
public static readonly DependencyProperty SignalLineColorProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty |
UpperLineColorProperty
The DependencyProperty for UpperLineColor property.
Declaration
public static readonly DependencyProperty UpperLineColorProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty |
Properties
DPeriod
Gets or sets the %D for the Stochastic indicator.
Declaration
public int DPeriod { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
%D = 3-day SMA of %K
KPeriod
Gets or sets the %K for the Stochastic indicator.
Declaration
public int KPeriod { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
%K = (Current Close - Lowest Low)/(Highest High - Lowest Low) * 100
LowerLineColor
Gets or sets the lower line color.
Declaration
public Brush LowerLineColor { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Media.Brush | The |
Period
Gets or sets the moving average period for indicator.
Declaration
public int Period { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
The default value is 14 days.
PeriodLineColor
Gets or sets the period line color.
Declaration
public Brush PeriodLineColor { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Media.Brush | The |
SignalLineColor
Gets or sets the signal line color.
Declaration
public Brush SignalLineColor { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Media.Brush | The |
UpperLineColor
Gets or sets the upper line color.
Declaration
public Brush UpperLineColor { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Media.Brush | The |
Methods
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 StochasticTechnicalIndicator
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 property 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 |