I would like to present one of my projects based on the paper On the Performance of Cyclically Adjusted Valuation Measures by Gray and Vogel.
Most of the variables that one would change is right at the top.
First lets look at the fundamental screen that selects lowest positive 10 ev/ebitda ratios. Not bad.
Here is a summary of how the algorithm works.
Every x number of months, pick the stocks with a non-negative ev/ebitda and sort them from lowest to highest
Select only the lowest ev/ebitda
Then sort your resulting screen according to return of past days (I set it to 200) ignoring the last month
Pick the top momentum stock, and rescreen and rebalance every x number of months