Fundamental condition: last 3 quarters with positive eps?
Author: gbullr
Creation Date: 7/26/2013 4:39 PM
profile picture


Eugene or Cone.

Thank you in advance.

I am trying to look at stocks whose last 3 quarters have had positive eps.

Is there an easier way than

fi[bar] > 0
fi[bar-22] >0 and
fi[bar-44] > 0 ?

Obviously with this method I would get into problems w/ leap years and things like that.

profile picture


Here you go:

Please log in to see this code.

The strategy assumes quarterly EPS data.

The code is commented for you to understand what's going on.

Thanks for saying thank you.