I replicate the rule of the strategy in Ernest Chan's book. I want to implement it on Quantopian, but there seems to be many problems, like no "open" in USEquityPricing, some error in constructing standard deviation of close price in CustomFactor. So depressed...
The rules for the strategy are:
1. Select all stocks near the market open whose returns from their
previous day’s lows to today’s opens are lower than one standard
deviation. The standard deviation is computed using the daily closeto-
close returns of the last 90 days. These are the stocks that “gapped
down.”
2. Narrow down this list of stocks by requiring their open prices to be
higher than the 20-day moving average of the closing prices.
3. Buy the 10 stocks within this list that have the lowest returns from their
previous day’s lows. If the list has fewer than 10 stocks, then buy the
entire list.
4. Liquidate all positions at the market close.