[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)

Moving Average and Envelope

The Chart control supports different Moving Average indicators that are commonly used with Financial Series.

This document consists of the following sections:

Expanded Available Moving Averages

The table below lists all the Moving Average indicators available in charts.

Moving Average indicator Class
Simple Moving Average, SMA SimpleMovingAverage
Exponential Moving Average, EMA ExponentialMovingAverage
Weighted Moving Average, WMA WeightedMovingAverage
Triangular Moving Average, TMA TriangularMovingAverage
Triple Exponential Moving Average, TEMA TripleExponentialMovingAverageTema

Expanded How to Add a Moving Average Indicator to a Chart

The following markup shows how to add a Simple Moving Average indicator to a chart:

The markup uses the following classes and properties:

Class or Property

Description

XYSeries2D.Indicators

The series collection of indicators.

SimpleMovingAverage

The Simple Moving Average indicator.

MovingAverage.MovingAverageKind

Specifies the kind of a Moving Average indicator.

MovingAverage.EnvelopePercent

Specifies the percentage value that the Moving Average envelopes show.

This property value is actual when MovingAverage.MovingAverageKind is set to Envelope or MovingAverageAndEnvelope.

MovingAverage.PointsCount

Specifies the number of points used to build an indicator.

Indicator.Legend

The legend that shows the indicator.

Indicator.LegendText

The text that identifies the indicator in the legend.

Indicator.ShowInLegend

Specifies whether to show the indicator in the legend.

Expanded See Also

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