Hello,
In the generated report, is it possible to add a chart with all the traded buy / sell positions ?
I think it is missing
https://github.com/QuantConnect/Lean/blob/master/Report/ReportKey.cs
Orders plot:
But when downloading the PDF, we do not see the positions (above graph) :
Is there a way to configure the generated PDF report and add it ?
Thanks
Mia Alissi
To add a chart with all traded buy/sell positions to the generated PDF report in QuantConnect, you can follow these steps:
Customize Report HTML:
report.html
file to your project to override the default report structure. This file will allow you to include custom charts and other elements in the report. You can find the default template here.Define Chart Structure in Your Algorithm:
Chart
andSeries
classes in your algorithm to define the structure of the chart you want to include. For example, you can create a "Trade Plot" with "Buy" and "Sell" series.Include Chart in Report:
report.html
. You can define the structure of your chart in the HTML file using placeholders for your custom chart data.Generate Report:
Verify PDF Output:
Adjust CSS if Necessary:
report.css
file to your project to override the default styles.By following these steps, you can customize the PDF report to include a chart of all traded buy/sell positions.
Sources: Results - QuantConnect.com, Custom Charting Algorithm, Backtest Analysis - QuantConnect.com, Charting - QuantConnect.com, Live Analysis - QuantConnect.com
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.
Perfxtra
Hello,
As you requested, I added
Added the buy ant sell orders:
In HTML template, I added the graph:
MY NEW TRADE PLOT GRAPH !!
Then on CLI, I used the template:
Somthing is wrong or missing:
Any further assistance ?
Does anyone tried to add the Orders in the generated report and succeeded ?
Perfxtra
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!