Skip to main content


  • 5 minutes to read

Indicators are special metrics that are commonly used to analyze and process financial data visually.

The image demonstrates the FibonacciArcs indicator that is calculated using two financial series points’ values.


This document consists of the following sections:

Available Indicators

You can display any number of built-in indicators for the 2D XY Diagram series. The Chart control provides the following indicators:

Indicator Class Related document
Trend Lines TrendLine Trend Line
Regression Lines RegressionLine Regression Line
Fibonacci Arcs FibonacciArcs Fibonacci Indicators
Fibonacci Fans FibonacciFans Fibonacci Indicators
Fibonacci Retracement FibonacciRetracement Fibonacci Indicators
Simple Moving Average (SMA) SimpleMovingAverage Moving Average and Envelope
Exponential Moving Average (EMA) ExponentialMovingAverage Moving Average and Envelope
Weighted Moving Average (WMA) WeightedMovingAverage Moving Average and Envelope
Triangular Moving Average (TMA) TriangularMovingAverage Moving Average and Envelope
Triple Exponential Moving Average (TEMA) TripleExponentialMovingAverageTema Moving Average and Envelope
Average True Range (ATR) AverageTrueRange Oscillator Indicators
Commodity Channel Index (CCI) CommodityChannelIndex Oscillator Indicators
Detrended Price Oscillator (DPO) DetrendedPriceOscillator Oscillator Indicators
Moving Average Convergence/Divergence (MACD) MovingAverageConvergenceDivergence Oscillator Indicators
Rate of Change (RoC) RateOfChange Oscillator Indicators
Relative Strength Index (RSI) RelativeStrengthIndex Oscillator Indicators
Triple Exponential Moving Average oscillator (TRIX) TripleExponentialMovingAverageTrix Oscillator Indicators
Chaikin’s Volatility ChaikinsVolatility Oscillator Indicators
Williams %R WilliamsR Oscillator Indicators
Bollinger Bands BollingerBands Trend Indicators
Mass Index MassIndex Trend Indicators
Standard Deviation StandardDeviation Trend Indicators
Median Price MedianPrice Price Indicators
Weighted Close WeightedClose Price Indicators
Typical Price TypicalPrice Price Indicators
Fixed Error Bars FixedValueErrorBars Error Bars
Percentage Error Bars PercentageErrorBars Error Bars
Standard Error Bars StandardErrorBars Error Bars
Standard Deviation Error Bars StandardDeviationErrorBars Error Bars
Data Source Based Error Bars DataSourceBasedErrorBars Error Bars

How to Add an Indicator to a Series

In this section, you add a Fibonacci Retracement indicator that is shown in the following image:


Specify two points’ argument and value levels to add the Fibonacci Retracement indicator to the chart. Note that other indicators can require defining other specific parameters.

<dxc:StockSeries2D DisplayName="series">
            <dxc:FibonacciRetracement Argument1="09/12/2016"
                                      LegendText="Fibonacci Retracement"

The markup above uses the following classes and properties:

Class or Property Description
XYSeries2D.Indicators The series indicators’ collection.
FibonacciRetracement The Fibonacci Retracement indicator.
FinancialIndicator.Argument1 Specifies the first indicator point’s argument.
FinancialIndicator.ValueLevel1 Specifies the first indicator point’s value level.
FinancialIndicator.Argument2 Specifies the second indicator point’s argument.
FinancialIndicator.ValueLevel2 Specifies the second indicator point’s value level.
Indicator.LegendText Text that is shown with an indicator marker in a legend.
Indicator.ShowInLegend Specifies the value indicating whether to show an indicator in a chart legend.

How to Plot an Indicator on a Separate Pane

Indicators that are SeparatePaneIndicator class descendants can be plotted on a separate pane with a secondary y-axis. Below is the list of these indicators:

The following image shows the Standard Deviation indicator in a separate chart pane:


Use the following code to draw an indicator in a separate pane with a secondary axis:

    <dxc:Legend x:Name="legend"/>
        <dxc:SecondaryAxisY2D x:Name="secondaryAxis" 
        <dxc:Pane x:Name="pane"/>
    <!-- ... -->
          <dxc:StandardDeviation  dxc:XYDiagram2D.IndicatorAxisY="{Binding ElementName=secondaryAxis}"
                                  dxc:XYDiagram2D.IndicatorPane="{Binding ElementName=pane}" 
                                  Legend="{Binding ElementName=legend}" 
                                  LegendText="Standard Deviation"

The markup above uses the following classes and properties:

Class or Property Description
StandardDeviation The StandardDeviation indicator.
XYDiagram2D.IndicatorPane The pane that displays an indicator.
XYDiagram2D.IndicatorAxisY The y-axis to which an indicator is bound.
Indicator.Legend The legend that shows the indicator’s designation.
Indicator.LegendText Text that identifies an indicator in a legend.
Indicator.ShowInLegend Specifies whether to show an indicator in a legend.

How to Customize Indicator Appearance

You can create a custom color palette to draw indicators instead of the DefaultIndicatorsPalette.


Use the following XAML to configure a custom palette:


The markup above uses the following classes and properties:

Class or Property Description
ChartControl.IndicatorsPalette Provides access to the palette applied to indicators.
CustomIndicatorsPalette The custom colors’ palette.
CustomIndicatorsPalette.Colors The palette’s collection of colors.
Color The palette color.


You can specify a color for each indicator using the Indicator.Brush property.

Also, modify a style of a line that is used to draw an indicator.


For this, use the following code:

      <dxc:StandardDeviation dxc:XYDiagram2D.IndicatorAxisY="{Binding ElementName=secAxis}"
                             dxc:XYDiagram2D.IndicatorPane="{Binding ElementName=pane}" 
                             Legend="{Binding ElementName=indicatorLegend}" 
                             LegendText="Standard Deviation"
                  <dxc:LineStyle Thickness="2">
                              <DashStyle Dashes="2 1 2"/>

The code above uses the following classes and properties to configure a line:

Class or Property Description
Indicator.LineStyle Specifies the line style settings.
LineStyle Line style’s settings.
LineStyle.DashStyle Specifies the dash style settings.
See Also