Indicators
- 2 minutes to read
This document lists the available indicator types in XtraCharts, explains how to add an indicator to a series’ collection, and how to adjust a separate palette for painting indicators.
This document consists of the following sections.
Indicators Overview
With any 2D XY-series, you can apply additional visual analysis to your data, using the following set of available indicators.
- Simple Indicators
- Fibonacci Indicators
- Moving Average and Envelope
- Trend Indicators
- Price Indicators
- Oscillator Indicators
- Error Bars
An individual series can have an unlimited number of indicators of any type.
This feature is of special importance for financial charting, and most of the indicators listed above are primarily used in financial analysis.
To learn more about each indicator type, and the available kinds of Moving Average, Fibonacci, Price, Trend and Oscillator Indicators, see the corresponding documents.
Create an Indicator
To create an indicator for a series at design time, select the series, and in the Properties window, expand the SeriesBase.View property, and click the ellipsis button for the XYDiagram2DSeriesViewBase.Indicators property. And, in the invoked Indicators dialog, click the Add… button.
Then, in the Indicator Type dialog, select the required indicator type, and click OK.
Now, back in the Indicators dialog, you can adjust specific options of the indicator.
The following are the most important indicator options.
- For the SingleLevelIndicator class descendants (moving averages and regression lines), specify their SingleLevelIndicator.ValueLevel property.
- The SeparatePaneIndicator class descendants (oscillator indicators and Mass Index and Standard Deviation trend indicators) can be plotted using a separate pane and Y-axis. To do this, assign the required pane to the SeparatePaneIndicator.Pane property and the required Y-axis to the SeparatePaneIndicator.AxisY propety.
- For all other indicators, you are required to define two data points (FinancialIndicator.Point1 and FinancialIndicator.Point2) through which an indicator should be drawn. In turn, each point is defined by its FinancialIndicatorPoint.Argument and FinancialIndicatorPoint.ValueLevel.
Indicators Appearance
To conform indicators to the overall appearance of your chart, you can use the ChartControl.IndicatorsPaletteName (WebChartControl.IndicatorsPaletteName) property to define a distinct appearance for all indicators available in a chart control.
If required, you can define your own custom palette for painting indicators, using the approach demonstrated in Create a Custom Palette.