ChartTechnicalIndicator Class
Definition
Represents the base class for all technical indicators.
public class ChartTechnicalIndicator
Methods
| Name | Description |
|---|---|
| Compute | Called when the target series data updates to recalculate the indicator values. |
| GetLegendItems | Gets the legend items that represent this indicator. |
| Render | Renders the indicator into the specified plot area. |
| Bind (8 overloads) | Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject. |
| CheckAccess | Returns a value indicating whether the current thread is the UI thread. Inherited from AvaloniaObject. |
| ClearValue (4 overloads) | Clears a Avalonia.AvaloniaProperty's local value. Inherited from AvaloniaObject. |
| CoerceValue | Coerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject. |
| Equals | Compares two objects using reference equality. Inherited from AvaloniaObject. |
| GetBaseValue | Inherited from AvaloniaObject. |
| GetHashCode | Gets the hash code for the object. Inherited from AvaloniaObject. |
| GetValue (3 overloads) | Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject. |
| IsAnimating | Checks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject. |
| IsSet | Checks whether a Avalonia.AvaloniaProperty is set on this object. Inherited from AvaloniaObject. |
| SetCurrentValue (2 overloads) | Sets the value of a dependency property without changing its value source. Inherited from AvaloniaObject. |
| SetValue (3 overloads) | Sets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject. |
| VerifyAccess | Checks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject. |
Compute Method
Called when the target series data updates to recalculate the indicator values.
public void Compute()
GetLegendItems Method
Gets the legend items that represent this indicator.
public System.Collections.Generic.IEnumerable<Avalonia.Controls.Charts.ChartLegendItem> GetLegendItems(int indicatorIndex)
Parameters
indicatorIndex int
The indicator index within its owner chart legend.
Returns
System.Collections.Generic.IEnumerable<Avalonia.Controls.Charts.ChartLegendItem>
The legend items for this indicator.
Render Method
Renders the indicator into the specified plot area.
public void Render(Avalonia.Media.DrawingContext context, Avalonia.Rect plotArea)
Parameters
context Avalonia.Media.DrawingContext
The drawing context for the current render pass.
plotArea Avalonia.Rect
The plot area in chart coordinates.
Properties
| Name | Description |
|---|---|
| IsVisible | Gets or sets a value indicating whether this indicator is visible. |
| Stroke | Gets or sets the brush used for the main indicator line. |
| StrokeDashStyle | Gets or sets the dash style for the indicator line. |
| StrokeLineCap | Gets or sets the line cap style for the indicator line. |
| StrokeLineJoin | Gets or sets the line join style for the indicator line. |
| StrokeThickness | Gets or sets the thickness of the indicator stroke. |
| TargetSeries | Gets or sets the target series this indicator is based on. |
| Title | Gets or sets the title shown in the legend and tooltips. |
| Dispatcher | Returns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject. |
| Item | Inherited from AvaloniaObject. |
IsVisible Property
Gets or sets a value indicating whether this indicator is visible.
public bool IsVisible { get; set; }
Stroke Property
Gets or sets the brush used for the main indicator line.
public Avalonia.Media.IBrush Stroke { get; set; }
StrokeDashStyle Property
Gets or sets the dash style for the indicator line.
public Avalonia.Media.DashStyle StrokeDashStyle { get; set; }
StrokeLineCap Property
Gets or sets the line cap style for the indicator line.
public Avalonia.Media.PenLineCap StrokeLineCap { get; set; }
StrokeLineJoin Property
Gets or sets the line join style for the indicator line.
public Avalonia.Media.PenLineJoin StrokeLineJoin { get; set; }
StrokeThickness Property
Gets or sets the thickness of the indicator stroke.
public double StrokeThickness { get; set; }
TargetSeries Property
Gets or sets the target series this indicator is based on.
public Avalonia.Controls.Charts.CartesianSeries TargetSeries { get; set; }
Title Property
Gets or sets the title shown in the legend and tooltips.
public string Title { get; set; }
Fields
| Name | Description |
|---|---|
| IsVisibleProperty | Identifies the Avalonia.Controls.Charts.ChartTechnicalIndicator.IsVisible Avalonia property. |
| StrokeDashStyleProperty | Identifies the Avalonia.Controls.Charts.ChartTechnicalIndicator.StrokeDashStyle Avalonia property. |
| StrokeLineCapProperty | Identifies the Avalonia.Controls.Charts.ChartTechnicalIndicator.StrokeLineCap Avalonia property. |
| StrokeLineJoinProperty | Identifies the Avalonia.Controls.Charts.ChartTechnicalIndicator.StrokeLineJoin Avalonia property. |
| StrokeProperty | Identifies the Avalonia.Controls.Charts.ChartTechnicalIndicator.Stroke Avalonia property. |
| StrokeThicknessProperty | Identifies the Avalonia.Controls.Charts.ChartTechnicalIndicator.StrokeThickness Avalonia property. |
| TargetSeriesProperty | Identifies the Avalonia.Controls.Charts.ChartTechnicalIndicator.TargetSeries Avalonia property. |
| TitleProperty | Identifies the Avalonia.Controls.Charts.ChartTechnicalIndicator.Title Avalonia property. |
IsVisibleProperty Field
Identifies the Avalonia.Controls.Charts.ChartTechnicalIndicator.IsVisible Avalonia property.
public Avalonia.StyledProperty<bool> IsVisibleProperty
StrokeDashStyleProperty Field
Identifies the Avalonia.Controls.Charts.ChartTechnicalIndicator.StrokeDashStyle Avalonia property.
public Avalonia.StyledProperty<Avalonia.Media.DashStyle> StrokeDashStyleProperty
StrokeLineCapProperty Field
Identifies the Avalonia.Controls.Charts.ChartTechnicalIndicator.StrokeLineCap Avalonia property.
public Avalonia.StyledProperty<Avalonia.Media.PenLineCap> StrokeLineCapProperty
StrokeLineJoinProperty Field
Identifies the Avalonia.Controls.Charts.ChartTechnicalIndicator.StrokeLineJoin Avalonia property.
public Avalonia.StyledProperty<Avalonia.Media.PenLineJoin> StrokeLineJoinProperty
StrokeProperty Field
Identifies the Avalonia.Controls.Charts.ChartTechnicalIndicator.Stroke Avalonia property.
public Avalonia.StyledProperty<Avalonia.Media.IBrush> StrokeProperty
StrokeThicknessProperty Field
Identifies the Avalonia.Controls.Charts.ChartTechnicalIndicator.StrokeThickness Avalonia property.
public Avalonia.StyledProperty<double> StrokeThicknessProperty
TargetSeriesProperty Field
Identifies the Avalonia.Controls.Charts.ChartTechnicalIndicator.TargetSeries Avalonia property.
public Avalonia.StyledProperty<Avalonia.Controls.Charts.CartesianSeries> TargetSeriesProperty
TitleProperty Field
Identifies the Avalonia.Controls.Charts.ChartTechnicalIndicator.Title Avalonia property.
public Avalonia.StyledProperty<string> TitleProperty
Events
| Name | Description |
|---|---|
| PropertyChanged | Raised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject. |