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

Using SimpleMovingAverage() I can calculate the simple moving average of a parameter (or stock price) for a given window length.
This way one can calculate, for example: sma20 and sma60.

However, how can one get a series of the previous spread between sma20, sma60 ?