how to calculate 5 point moving average

Guest Mar 24, 2017

1+0 Answers


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

14 Online Users

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.  See details