I'm thinking about coding something which records the returns of each individual stock within a portfolio and uses that as a screen within the universe selection. Stocks that have returns below a threshold over the last N days are then blacklisted for N days into the future.
Has anyone coded something similar to this? Any thoughts on the best way to approach this?