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

gbullr

#1
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.

Thanks
profile picture

Eugene

#2
Here you go:

CODE:
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.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).