Hey guys. I'm trying to write my first algo based on this paper: https://quantpedia.com/Screener/Details/307
Simple trading strategy
The investment universe consists of stocks listed at NYSE, AMEX, and NASDAQ, whose daily price data are available at CRSP database. Earnings-announcement dates are collected from Compustat. Firstly, the investor sorts stocks into quintiles based on firm size. Then he further sorts the stocks in the top quintile (the biggest) into quintiles based on their average returns in the 3-day window between t-4 and t-2, where t is the day of earnings announcement. The investor goes long on the bottom quintile (past losers) and short on the top quintile (past winners) and holds the stocks during the 3-day window between t-1, t, and t+1. Stocks in the portfolios are weighted equally.
It should be quite easy to implement, especially given that there are many template reversal strategies out there. But nothing I have coded actually worked. Let's see if someone can point me in the right direction.