This is an updated, Pipeline version of David Edward’s Long/Short Cross-Sectional Momentum strategy. If you aren't familiar with long/short strategies, I would highly recommend going over the full lecture before exploring this algorithm:The basics of the strategy are as follows:
It looks at an N day window of M day returns on a basket of large cap
stocks, then the cross-sectional average for each day is subtracted
out. It then uses the average of the result as a ranking for the
universe, long the top and short the bottom in equal amounts.
Since this algorithm now uses pipeline, it's able to screen a much larger universe of securities on a daily basis. By doing so, I saw performance improvements compared to the original that only used the top 500 securities by market cap.
Here are the full list of changes:
- This algorithm uses Pipeline to calculate the cross-sectional average looking at the top 1,000 market cap securities
- Capital base is 1,000,000 versus 100,000
- There is a minimum liquidity floor of ADV > 10,000,000 for the past 30 trading days
- Trading frequency is set to bi-monthly
- Stocks with earnings announcements are excluded from the trading universe using EventVestor’s Earnings Calendar data feed to reduce volatility.
- Stocks with news sentiments that contradict the main
Returns
factor are excluded from the universe using Accern's Alphaone data feed. - The drawdown and volatility was low enough that I felt comfortable increasing the leverage to 2.0
Like David mentions in the original post, this algorithm can serve as a pretty good template to begin layering on-top of. I expect to be posting a few variations (and encourage you to do the same) so follow this thread for more!
The sample earnings calendar data feed is available from 01 Jan 2007 - 24 Mar 2014.
The sample news sentiment feed is available from 26 Aug 2012 - 30 Mar 2014.