Hello,
Quantopians,
First of all, let me say that I am very new to Quantopian and also quite new to python. I have a simple question that I don't know how to do.
I want to know the up and down of industry leaders each day. You can see a sample here...
http://www.bloomberg.com/visual-data/industries/
My strategy would include buying and selling on a certain security depending on how industry leaders are doing. Now, I can list all the current industry leaders and backtest my strategy. However, that would introduce survivor-ship bias since the present day industry leaders are not the same as those of 5 years ago.
So, how do I know which stocks are industry leaders ? or Is there any easy way to put all the stocks from each sector that is in S&P 500 ?
Any help and tips are appreciated.. Thank you all..
Best,