A weighted moving average is calculated as x = (n*Ct + (n-1)*Ct-1 + ... + 1*Ct-n) / (n+n-1+n-2+...+1)