Simple Moving Average Function

Sums the values of last period N then divides it by N.

This calculation analyzes data by creating a series of averages of different subsets of the complete data set.

Syntax

ma(TimeSeries, Period)

Parameter Description
TimeSeries This can be a node with time series data or another function.
Period

Number of data intervals considered in the function.

Example expression

ma(@input_node, 40): Finds the moving average for the last 40 intervals.

Example chart

This chart shows a comparison of temperature sensor data and the moving average for the last 10 intervals.