wpf-14329-controls-and-libraries-charts-suite-chart-control-series-indicators-moving-average-and-envelope.md
The Chart control supports different Moving Average indicators that are commonly used with financial series.
This document consists of the following sections:
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 |
The following markup shows how to add a Simple Moving Average indicator to a chart:
<dxc:StockSeries2D.Indicators>
<dxc:SimpleMovingAverage MovingAverageKind="MovingAverageAndEnvelope"
EnvelopePercent="4"
PointsCount="12"
ValueLevel="High"
Legend="{Binding ElementName=indicatorLegend}"
LegendText="Simple Moving Average"
ShowInLegend="True"/>
</dxc:StockSeries2D.Indicators>
The markup uses the following classes and properties:
|
Class or Property
|
Description
| | --- | --- | |
|
The series collection of indicators.
| |
|
The Simple Moving Average indicator.
| |
MovingAverage.MovingAverageKind
|
Specifies the kind of a Moving Average indicator.
| |
|
Specifies the percentage value that the Moving Average envelopes show.
This property value is actual when MovingAverage.MovingAverageKind is set to Envelope or MovingAverageAndEnvelope.
| |
|
Specifies the number of points used to build an indicator.
| |
|
The legend that shows the indicator.
| |
|
The text that identifies the indicator in the legend.
| |
|
Specifies whether to show the indicator in the legend.
|
See Also