+0  
 
+1
241
1
avatar

how to calculate 5 point moving average

Guest Mar 24, 2017
Sort: 

1+0 Answers

 #1
avatar+26242 
+1

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

26 Online Users

avatar
avatar
avatar
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