Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
long-short mean reversion

Here's an algo for consideration. Nothing to write home about at this point, but the trend is in the right direction, it seems. Note:

set_slippage(slippage.FixedSlippage(spread=0.00))  
set_commission(commission.PerTrade(cost=0))