One of Benjamin Graham's value criteria is Positive EPS growth.
So far from what I have found on Quantopian, none of those attempting to follow his criteria in a research or an algorithm have followed this step.
The criteria is finding Positive Earnings Growth over the last 5 years with eliminating any negative earnings periods.
This is used to find companies with positive earnings per share growth during the past five years with no earnings deficits. Avoiding companies with earnings deficits during the past five years will help you stay clear of high-risk companies.
Does this need to be done using a custom factor?
How would I go about coding EPS average over the last 5 years while making sure no negative earnings periods get picked up?
Any input is appreciated.