Back to Community
Equal Risk Contribution S&P Sector Portfolio (ERC)

Created portfolio with equal risk contribution from 9 sectors in S&P 500. Started at Equal weight algo posted by Jess Stauth -> Min Var algo posted by Grant Kiehne -> Paper by Benjamin Bruder and Theirry Roncalli.

The algo weights the S&P 500 sectors such that the risk contribution from each sector to the portfolio is roughly equal. End result is a portfolio that is fully invested in S&P 500 sectors, but has a lower beta. Over time, it also realized higher returns with this lower beta.

Please let me know if you catch any errors in the code. @Grant, thanks for sharing your code.All errors are my own.

Would be interesting to see if this phenomenon is more widely observed.

Clone Algorithm
51
Loading...
Backtest from to with initial capital
Total Returns
--
Alpha
--
Beta
--
Sharpe
--
Sortino
--
Max Drawdown
--
Benchmark Returns
--
Volatility
--
Returns 1 Month 3 Month 6 Month 12 Month
Alpha 1 Month 3 Month 6 Month 12 Month
Beta 1 Month 3 Month 6 Month 12 Month
Sharpe 1 Month 3 Month 6 Month 12 Month
Sortino 1 Month 3 Month 6 Month 12 Month
Volatility 1 Month 3 Month 6 Month 12 Month
Max Drawdown 1 Month 3 Month 6 Month 12 Month
# Backtest ID: 56d9e3211ceddd0dea54dbd4
There was a runtime error.
1 response

@ Rohith, Glad you found some of the hack code I posted useful! You may want to read about how to schedule a function, since it'll tidy up your code. Also, I'd recommend having a look at your leverage, just to make sure it is approximately 1 for every trading minute. The slippage model may be affecting your results at $1M, as well. You may want to look into this.