Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Is it possible to get the list of New Highs for previous trading day?

Let's say I want to define my list of candidate stocks by filtering the list of NASDAQ New Highs recorded the previous trading day, is that possible? How?

2 responses

Here is a notebook showing one possibility. It uses a pipeline with a custom factor to check each security for a new n-day high (default is 250 days or roughly 1 year but can be changed). The exchange is added to the pipeline using the exchange_id field from the morningstar.share_class_reference dataset. The results are then filtered by new_high is true AND exchange_ID is NAS.

Hope that helps.

Thanks, Dan, that's great!