how to calculate 5 point moving average

Guest Mar 24, 2017

Something like:


xavnew = xavold + (xi+1 - xi-5)/5


This assumes your first xav is based on the first five values of x, and that i is an index that points to the 5th value of the current value of xav, just prior to calculating the next value.


Alan  Mar 24, 2017

7 Online Users

New Privacy Policy

We use cookies to personalise content and advertisements and to analyse access to our website. Furthermore, our partners for online advertising receive information about your use of our website.
For more information: our cookie policy and privacy policy.