Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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