WPF Charting Documentation - SciChart WPF Charts SDK v5.x
Moving Average Filter

Moving Average Filter

The Moving Average filter performs an N-period moving average, resulting in a smoothed waveform derived from your data, where N is passed to the function .ToMovingAverage().

To calculate a moving average and apply to a chart, use the following code.

Offset Filter
Copy Code
using SciChart.Charting.Model.Filters; // Required for extension method .ToMovingAverage()

var dataSeries = new XyDataSeries<double,double>(); // Original Data

int period = 10;
var maDataSeries = dataSeries.ToMovingAverage(period); // Compute the moving average.

var lineRenderableSeries = new FastLineRenderableSeries()
    DataSeries = maDataSeries, // Apply the Moving Average Data to a Line Series



SCICHART ® is a Registered Trademark in the UK, US and EEC. Copyright SciChart Ltd 2011-2018.

Email us to give feedback!