Moving Average and Envelope
- 2 minutes to read
This document provides a brief overview of Moving Average and the Envelope technical indicators that are used in financial charting.
Moving Average and Envelope are represented by the MovingAverage class descendants. The MovingAverage.MovingAverageKind property defines whether they represent a Moving Average, an Envelope or both.
Along with other indicators (Regression Lines, Trend Lines and Fibonacci Indicators), Moving Averages and Envelopes reside in the XYSeries2D.Indicators collection of an XYSeries2D.
For an XYSeries2D, whose Series.ArgumentScaleType is DateTime, you can show any number of Moving Averages (and /or Envelopes) of the following kinds:
- SMA (SimpleMovingAverage);
- EMA (ExponentialMovingAverage);
- WMA (WeightedMovingAverage);
- TMA (TriangularMovingAverage).
To show the indicator for a series, add the required MovingAverage class descendant to the series' collection of indicators, which are accessible via the XYSeries2D.Indicators property.
For each Moving Average, you should specify the following two properties:
- the series value level for which the indicator is calculated (via the MovingAverage.ValueLevel property);
- the number of points used for calculation (via the MovingAverage.PointsCount property).
Note that all of the chart's indicators are painted based on a palette defined via the ChartControl.IndicatorsPalette property.
The table below lists the main properties that affect the element's functionality and appearance.
Class | The following are descendants of the Moving Simple |
Kind | |
Availability | |
Value Level | |
Specific Options | |
Appearance | Chart |
Visibility and Legend Availability | Indicator. |