A newer version of this page is available. Switch to the current version.

Moving Average and Envelope

This document describes the Moving Average (Envelope) indicator used in financial charting.

For a 2D XY-series, whose SeriesBase.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, accessible via the XYDiagram2DSeriesViewBase.Indicators property.

To select whether to show a Moving Average, Envelope or both, use the MovingAverage.Kind property.

The property value The resulting image
MovingAverage.Kind = MovingAverage Kind_MovingAverage
MovingAverage.Kind = MovingAverageAndEnvelope Kind_MovingAverageAndEnvelope
MovingAverage.Kind = Envelope Kind_Envelope

For each Moving Average, you should specify the following two properties.

Note that all the chart's indicators are painted, based on a palette defined via the ChartControl.IndicatorsPaletteName property.

See Also