101 Formulaic Alphas, a newly published paper from Zura Kakushadze, Geoffrey Lauprete and Igor Tulchinsky, spells out pseudo-code for 101 "alphas," volume and price based factors that can be computed accross a large universe of stocks. The stock-by-stock values of these alphas can be used as a trading signal (positive for buy, negative for sell). The authors propose that while the alphas may not be individually profitable, their aggregate "mega-alpha" signal is capable of generating significant market outperformance.
Here at Quantopian HQ, we're very curious to see if the aggregate signal discussed in 101 Formulaic Alphas is truly capable of generatating returns in excess of the market. That's where you come in. We need the Quantopian community's help turning each of the 101 alphas into a Pipeline algorithm. When we're done, we'll pull together data from all of the algorithms you wrote and share our findings here. We'll also release the aggregated signal data, so you can craft your own mega-alpha algorithm.
For an example, check out my implementation of Alpha #101 below. Alpha #101, ((close - open) / ((high - low) + .001), spells out a factor (in this case a momentum factor) that is computed cross-sectionally by a custom Pipeline factor and used to rank the top 2,500 market cap stocks. Before trading starts each day, these rankings are used to generate baskets of 200 names to buy and 200 to short.
Here are some guidelines to help you get started:
- Your algorithm must implemented using the Pipeline API.
- Your algorithm should hold a minimum of 100 stocks in its portfolio at the end of each trading day.
- Your algorithm should use the alpha factor to rebalance daily.
- Each alpha gets its own thread. Please check for an existing thread for your alpha before starting a new one.
- The title of your thread should match the following format: "101 Alphas Project: Alpha #10"
- Attach the "101 Alphas Project" tag to your post.
- Share a backtest from 1/1/10 to 1/1/15 with your post.
Some questions:
Q: Why Pipeline?
A: The Pipeline API is designed to support exactly the type of cross-sectional strategies described by the alphas in this paper. We also hope that this project will help us identify areas where Pipeline can be improved.
Q: How should I implement my algo's ordering logic?
A: Feel free to test out different trading logic implementations. Just make sure your algorithm holds at least 100 names and trades daily.
Q: What if I don't understand what some of these factors mean?
A: Let's discuss! We'll work together to determine how exactly each of the provided pseudo-code expressions can be translated into an algorithm.
Q: Someone else has already shared the alpha I want to work on. What should I do?
A: Share your alternate interpretation in the existing thread for that alpha. We expect there to be some debate over the proper implementation of some of the alphas.
Q: I'm new to Pipeline. Where should I start?
A: Take a look at the example implementation of Alpha #101 shared below. Also, check out the Pipeline help docs and example algorithms. To get a better sense of an alpha's functionality, try implementing your Pipeline factor in the research environment before moving it into an algorithm. If you do use research to build your alpha algorithm, be sure to share your notebook along with your backtest! Still stuck? Always feel free to send your questions to [email protected].
Got it? Pick an alpha and clone the algo below to get started with your implementation!