Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How to use code to hedge?

Now suppose you start with 1 million dollars and your leverage ratio
is 1. i.e. you do not borrow money from the brokers, suppose you long the
top 10 names in S&P 500 according to Information Ratio and Beta hedge your
portfolio (rebalance daily), plot your cumulative return in 2016 - 2018.