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

We buy when the 20 day SMA is lower than 50 day SMA.