Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Help me in building a very simple strategy using Self-Serve Data function

Hi everybody!

I CSV file containing a date in the YYYY-MM-DD format, a ticker symbol and a relative score.

Data is in this form:

2014-10-27,WYN,36
2014-10-27,WYNN,14
2014-10-27,X,45
2014-10-27,XEC,64
2014-10-27,XEL,64

I succesfully uploaded my data using the Self-Serve function.

Now I need to test this simple strategy:

for every date present, which are just 4 different (2014-10-27, 2015-10-27, 2016-10-26 & 2017-10-26) go long the top 10% stocks ranked by their relative score and short the bottom 10%. Every stock should receive an equal amount of capital from my portfolio. Rebalance the portfolio on the next date.