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
Jared Broad
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
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!