Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
SimpleMovingAverage of SPY

Hi Quantopian Community.

I am in the process of writing my first algorithm. To get the moving average of all equities, I have been using:
hweek_ma = SimpleMovingAverage(inputs=[EquityPricing.close], window_length=3)

How would I get the moving average of just the S&P 500 ?