Creating a Report
The LEAN Report Creator is built in Python and is located in the new PythonToolbox. You can find a short tutorial on how to install and use it locally on GitHub. It is a command line tool which takes the json backtest result object as its input. You can run it like this:python CreateLeanReport.py--backtest=./sample.json --output=./report.html --user=data.json
Command Switch | Description |
---|---|
--backtest |
Location of the source backtest json file. |
--output |
Resulting output HTML file location. |
--user |
Json data object for the user data of the report (see example). |

Report Contents
The report combines a few interpretive fields, rolling window analysis and mini-charts with windows on significant historical periods. The interpretive charts are intended to give you a set of quick Red/Green tests for your strategy.Backtest Factor | Description |
---|---|
Significant Period | Does the backtest period cover more than five years? |
Significant Trading | Does the strategy perform more than 100 trades? |
Diversified | Do you invest in more than seven assets? |
Risk Controlled | Is your strategy drawdown less than 10%? |



- Dotcom Crash
- 9-11
- US Housing Bubble 2003
- Lehman Brothers
- Flash Crash
- August 2007
- March 2008
- September 2008
- 2009 Q1
- 2009 Q2
- US Downgrade-European Debt Crisis
- Fukushima Melt Down 2011
- ECB IR Event 2012
- April 2014
- October 2014
- Fall 2015
- Low Volatility Bull Market
- GFC Crash
- Crash Recovery
- New Normal
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!