Click here to Login





Was this post useful to you?
Yes
No
Thank you for your feedback


Create a HTML or PDF Report of your Trading System Backtesting Results

Updated on 2016-02-25





Recently we have added in QuantShare the ability to export a trading system report (backtesting report) to HTML. This would allow you to display that report in a browser, in your website or send it to your friends and clients.

The trading system report is a control that displays different measures, statistics and charts regarding the performance of your trading system. It is automatically displayed after you backtest a trading system.

If you still don't know how to create or backtest a trading system, just start by reading the following blog post then you can come back later here:
The Ultimate Guide to Create Trading Systems in QuantShare


How to display the report in HTML format?

First, just select an existing trading system or create a new one. Backtest it and once completed, select the "Report Settings" tab in the trading system report.
Click on the "Generate HTML Report" button then type a name. The report will automatically open in your browser.

It will display the following data:
Report Name
Different Measures (Annual return, Drawdown, Sharpe, Number of trades...)
Equity Chart
Realized Trades
Orders Flow
Performance Per Day
Performance Per Week
Performance Per Month
Performance Per Year
Formula
Tickers


Note: Because of a minor issue (which will be fixed in the next release), you need to save the HTML file in your current QuantShare directory for the images to be displayed.




How to customize the report?

The backtesting report is fully customizable. All you have to do is write your own HTML code with your own design and style and add some specific tags.

The different available tags are:
{{NAME}}
{{Statistics}}
{{EquityChart}}
{{RealizedTrades}}
{{OrdersFlow}}
{{PerfPerDay}}
{{PerfPerWeek}}
{{PerfPerMonth}}
{{PerfPerYear}}
{{Formula}}
{{Tickers}}


The default HTML template can be found under your QuantShare directory (It is by default: c:\program files\ctrading\quantshare)
Just replace that html template with your own and you should be able to display backtesting reports with your own design.

As an example, the default html displays the trading system name using the following code:
<p align="center"><h1 align="center" class="style4">Trading System Report</h1>
<h2 align="center" class="style1">{{NAME}}</h2>
</p>

You can decide to create your own style and remove the "h2" heading tag by replacing the above code with this one:

<p align="center"><h1 align="center" class="style4">Trading System Report</h1>
<span align="center" class="mystyle">{{NAME}}</span>
</p>


How to display the report in PDF format?

Although QuantShare do not have a built-in function to generate trading system reports in PDF format, you can easily convert the HTML report into PDF.
Here is how to do that:
https://www.digitaltrends.com/computing/print-pdf-windows/

Hope you enjoyed this post and don't hesitate to share links of your own templates in the comments section below.












no comments (Log in)

QuantShare Blog
QuantShare
Search Posts




QuantShare
Recent Posts

Create Graphs using the Grid Tool
Posted 1442 days ago

Profile Graphs
Posted 1547 days ago

QuantShare
Previous Posts

More Posts

Back







QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.