This is a Grasshopper component that computes the moving average of a list of numbers. Input the list(s) and set the period (n). For the first few resulting values, this outputs the average of all the values so far, before a full period is reached.
Download here: