Fixed moving average to only compute avg after window period has passed. Bug was reversing and not checking last x days.