Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
PE Filter Not Working or Morningstar Data Issue?

Hey Guys,

I have an algorithm attached. It's a super fundamental algorithm that uses mean reversion. You can see I've limited the price to earnings range of stocks between 9 and 15.62; however, when live trading today, it bought TMHC, a stock with a PE ratio of >20.

Any ideas what might be wrong with my code or might there be something wrong with morningstars data?

1 response

Nevermind. I was viewing the wrong PE ratio. Everything is working smoothly