This is a mean-reversion algorithm on Quantopian.
Algorithm investment thesis:
Top-performing stocks from past 5 days will do worse nextly, and vice-versa.
Everyday, we rank high-volume stocks based on their previous 5 day returns.
We go long the bottom 20% of stocks with the WORST returns over the past 5 days.
We go short the top 20% of stocks with the BEST returns over the past 5 days.
Simple Portfolio Construction:
Hold the long/short position till the stock no longer in bottom/top 20% of the investment universe.
Smart Portfolio Construction:
Hold the long/short position till the stock no longer in top/bottom 50% of the investment univserse.