The SimpleMovAvg function computes the simple moving average of points in a series. The simple moving average is the unweighted mean of the previous n data points. For example, a 10-day simple moving average of closing price is the mean of closing prices for the previous 10 days.