Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
performance of a stock versus its sector index

Hi,

I'm looking for a way to compare the return of a stock against the performance of its sector. I'd like to identify stocks that have been performing better or worse than their sector peers over the last x periods. I'd be most thankful for any ideas!