[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand].NET Core 3 Support
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Collapse]Charts Suite
   [Collapse]Chart Control
    [Expand]Getting Started
    [Expand]Fundamentals
    [Expand]Providing Data
    [Collapse]Chart Elements
     [Expand]Diagram
     [Collapse]Series
       Series Points
       Series Point Labels
      [Collapse]Indicators
       [Expand]Simple Indicators
        Moving Average and Envelope
        Fibonacci Indicators
        Oscillator Indicators
        Trend Indicators
        Price Indicators
        Error Bars
       Series Titles
       Total Labels
     [Expand]Panes
     [Expand]Axes
      Legends
      Chart Titles
      Annotations
    [Expand]Appearance Customization
    [Expand]End-User Features
    [Expand]Design-Time Features
    [Expand]Examples
    [Expand]Additional Resources
   [Expand]Chart3D Control
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Indicators

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:

Expanded 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

Expanded 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.

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.

Expanded 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:

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.

Expanded 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.
System.Drawing.Color The palette color.
Note

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:

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.

Expanded See Also

Is this topic helpful?​​​​​​​