Getting Into Day Trading: Analyzing The Moving Average
I know that I have this bit of data for the WLTW symbol, and what would be helpful is to see that data completely plotted in all of it’s glory. Let’s take a look at the closing costs (y) plotted against the date (x). This is a good start, but how good are the SMA’s at tracking this close cost? Let’s first write a little Python that will grab the SMA for a given window, and the end of the window it was calculated for the X-axis.