stockstats
stockstats copied to clipboard
Add weighted moving average
A weighted moving average is calculated as x = (n*Ct + (n-1)Ct-1 + ... + 1Ct-n) / (n+n-1+n-2+...+1)
How do you plan to pass in the weight for each item?