Back to Community
Best Sector Backtest

Hello i ahve done this notebook and i have 2 questions:

1) Is it possible that SPY has a lower performance than all the Sectors as in the picture Out[103] ?

2) How would you code the last 3 cells in a more efficient way:
- rank performance
- every month pick the best one
- make a return equity out of this

Loading notebook preview...