Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Testing for consecutive weekly highs/lows

There are plenty of examples out there about how to identify consecutive daily highs and lows, but can someone give me a general overview of how to code for weekly highs and lows using daily data?

In other words, rank a stock as true if it has X number of rising weekly highs.

I'm thinking I first have to run through the daily data and fill an array with the weekly highs, then loop through that to see if the most recent weekly high is > the weekly high before it, etc.

I think I have a working understanding of building my pipeline, using price, average volume and some fundamentals to create my bucket, now I just need a push in the right direction for this piece.

Thank you!
Brian