An exporter takes a finished result and turns it into a file. This one writes a short header (instrument, timeframe, seed), the statistics as name and value rows, and the trade log with one column per trade field.
It is also the smallest example of an exporter plugin: one function that receives the result as plain data and returns the path it wrote.
Configuration
Field
Type
Default
Description
fileNameReport file name
string
"backtest_report"
The start of the file name; the run's seed is added, and the file ends in .csv.
Use it in a strategy
Not called from a strategy: after a run, choose it in the result's export menu. Exports are part of the plans that include CSV export.
What it provides
exports/backtest_report_<seed>.csvFile
A CSV file in the exports folder of the data cache.
Limits
Plain CSV with a comma; a spreadsheet set to a German locale may need the import dialog.