Skip to main content

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.

Moving Average

For an XYSeries2D, whose Series.ArgumentScaleType is DateTime, you can show any number of Moving Averages (and /or Envelopes) of the following kinds:

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:

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 MovingAverage class:

SimpleMovingAverage, ExponentialMovingAverage, WeightedMovingAverage and TriangularMovingAverage

Kind

MovingAverage.MovingAverageKind

Availability

XYSeries2D.Indicators

Value Level

MovingAverage.ValueLevel

Specific Options

MovingAverage.PointsCount, MovingAverage.EnvelopePercent

Appearance

ChartControl.IndicatorsPalette, Indicator.Brush and Indicator.LineStyle

Visibility and Legend Availability

Indicator.Visible, Indicator.ShowInLegend, Indicator.LegendText, and Indicator.CheckedInLegend

See Also