Actuarial Data Science

Bridging the Gap between Actuarial and Data Science

Mon 23 April 2018

Creating Performance Reports with Backtrader

Posted by Pieter Marres in Articles   

When it comes to testing and comparing investment strategies, the Python ecosystem offers an interesting alternative for R’s quantstrat. I’m talking here about backtrader, a library that has been around for a while now. In this post, I propose a 1 page PDF report featuring both graphical output and essential performance statistics for making a sound judgment about the quality of a trading strategy.