[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
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Collapse]Charts Suite
   [Collapse]Chart Control
    [Expand]Getting Started
    [Expand]Providing Data
    [Collapse]Chart Elements
       Series Points
       Series Point Labels
       [Expand]Simple Indicators
        Moving Average and Envelope
        Fibonacci Indicators
        Oscillator Indicators
        Trend Indicators
        Price Indicators
        Error Bars
       Series Titles
       Total Labels
      Chart Titles
    [Expand]Appearance Customization
    [Expand]End-User Features
    [Expand]Design-Time Features
    [Expand]Additional Resources
   [Expand]Chart3D Control
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

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?​​​​​​​