Adding a simple moving average to stock data