Hey everyone,

In this video we are tackling index investing and aiming to replicate the S&P 500 index. We discuss how we measure performance and then code our own index investing algorithm. You can find the video here:

The market cap weighted backtest is attached below and you can find the code snippet for the equal weighted algorithm commented out in the rebalance function.

Happy coding!

Ollie