Back to Devexpress

Moving Average and Envelope

windowsforms-8693-controls-and-libraries-chart-control-series-indicators-moving-average-and-envelope.md

latest3.5 KB
Original Source

Moving Average and Envelope

  • Feb 01, 2021

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 valueThe resulting image
MovingAverage.Kind = MovingAverage
MovingAverage.Kind = MovingAverageAndEnvelope
MovingAverage.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

Financial Charting

Indicators

Trend Lines

Regression Lines

Fibonacci Indicators