Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How to create pipeline with a factor that compares percentage gains of stock vs index?

Hi, I want to compare each stocks percentage gain against the index percentage gain to create a factor in the pipeline. I want to do this to compare relative strength against the market index. I want to then choose only stocks outperforming the index.