freqtrade's docs describe the export as a zip in one place and as backtest-result-<datetime>.json in another. Version 2026.10 wrote a zip with five files (report JSON, config, strategy copy, market-change feather and an undocumented wallet feather) plus a separate meta.json, with a UTC timestamp in the filename. In a 35-trade test run, the trades list matched the summary on count, profit, final balance, total %, wins and losses, per-pair totals and exit reasons. Four traps: left-open trades are already in the totals as force_exit rows; an order's cost includes the fee; missing startup candles silently moved the start from 1 August to 2 August 08:00; and a backtest directory that doesn't exist becomes a filename prefix. A 16 November rerun reproduced all 35 trades. This is a test run, not a performance claim.
Calculation and worked example. AI-assisted drafting. Educational information; no individual financial advice.
What the official docs say, and where they disagree with themselves
Freqtrade's backtesting documentation (stable, first read 14 November 2026 and rechecked 16 November 2026, Asia/Shanghai) says --export takes none, trades or signals and defaults to trades. Results go to user_data/backtest_results unless you pass --backtest-directory. The old --backtest-filename / --export-filename option is marked DEPRECATED for backtesting: "Using a custom filename for backtest results is no longer supported."
The same page then describes the output in two ways. Its Backtest output file section says the result is "a zip file" holding the JSON report, market-change data in feather format, a copy of the strategy file, the strategy parameters (if a parameter file was used) and a sanitized copy of the config. Further down, the multi-strategy example still says results are saved to backtest-result-<datetime>.json. So before you write a script that opens "the export", look at what your version actually wrote.
What freqtrade 2026.10 actually wrote
We ran freqtrade 2026.10 (still the current release on PyPI when rechecked on 16 November 2026) with its bundled SampleStrategy, unchanged, on Binance spot 1h candles for BTC/USDT, ETH/USDT, SOL/USDT and XRP/USDT. The run used --timerange 20260801-20261101, a 1,000 USDT dry-run wallet, a 100 USDT stake, three open trades at most, --fee 0.001 (an assumed 0.1% per side, not an exchange quote) and --cache none. This is a test fixture to inspect the file format. It is not a strategy recommendation, and its result says nothing about future returns. The first run was on 14 November. On 16 November we repeated the identical command with the same candle files (SHA-256 unchanged), and all 35 trades matched on pair, open and close time, rates, amount, profit_abs and exit reason.
The command wrote two files into the backtest directory:
| File | What was in it |
|---|---|
backtest-result-2026-11-14_14-52-58.zip | Five members (below) |
backtest-result-2026-11-14_14-52-58.meta.json | Outside the zip: run_id, start time, timeframe, timeframe_detail, backtest start and end timestamps |
The zip held ….json (the report), …_config.json, …_SampleStrategy.py, …_market_change.feather and …_SampleStrategy_wallet.feather. The wallet file is not in the documentation's list. Two more details matter for scripts:
- The datetime in the filename was UTC. The backtest started at 22:52:57 Asia/Shanghai (UTC+8), and the file is named 14-52-58. The report's
backtest_startandbacktest_endare UTC too. - The report's top level has two keys,
strategyandstrategy_comparison. Trades live instrategy["<StrategyName>"]["trades"], one object per trade, each with its ownorderslist.
The reconciliation: seven checks that must agree
Open the report from the zip with Python's zipfile and json. You don't need freqtrade installed to do this. Then check the trade list against the summary fields stored in the same JSON. These are the fields behind the printed tables.
| Check | Trades list | Summary field | Our run |
|---|---|---|---|
| Trade count | len(trades) | total_trades | 35 = 35 |
| Profit | sum of profit_abs | profit_total_abs | −13.25347322 = −13.25347322 USDT |
| Final balance | starting balance + sum | final_balance | 986.74652678 = 986.74652678 |
| Total profit % | sum ÷ starting balance | profit_total | −0.0132535 = −0.0132535 |
| Wins / draws / losses | sign of each profit_abs | wins, draws, losses | 30 / 0 / 5 |
| Per pair | sum by pair | results_per_pair | all four pairs match |
| Exit reasons | count by exit_reason | exit_reason_summary | roi 30, stop_loss 3, force_exit 2 |
All seven agreed to the eighth decimal. The printed table rounds: it shows −13.253 USDT and −1.33%. Compare against the JSON, not the screen. The docs define Total profit % the same way ("(End capital − Starting capital) / Starting capital"), and the same run with the same settings reproduced the 35 trades and −13.253 USDT recorded by an earlier TradeBotBench run on 12 November.
Four things the summary table does not tell you
1. Left-open trades are already inside the totals. The docs say the first table "contains all trades the bot made, including 'left open trades'", and that the left-open table lists trades the bot "had to force_exit at the end of the backtesting period". In the export, those two trades carry exit_reason: "force_exit" and is_open: false. There is no is_open: true row to filter out. If you add the left-open table to the main table, you count them twice. If you drop force_exit rows, the sum will no longer match profit_total_abs.
2. Order cost includes the fee. For every order in all five runs we inspected, cost equalled amount × safe_price × (1 + fee), on the exit side too. This is what we observed in 2026.10's export, not documented behaviour. To recompute a trade's profit_abs, use amount × safe_price: exit value × (1 − fee_close) − entry value × (1 + fee_open). That reproduced every profit_abs to within 0.000000005 USDT. Summing the cost fields instead gave errors of about 0.01 USDT per trade.
3. The window you asked for is not always the window you got. SampleStrategy needs 200 startup candles. When we repeated the identical run with 1h data starting only on 25 July 2026, freqtrade logged "data starts at 2026-07-25 00:00:00" for each pair. It then moved Backtesting from to 2026-08-02 08:00:00, which is 200 hours later. The export said timerange: 20260801-20261101 but backtest_start: 2026-08-02 08:00:00 and backtest_days: 90. That run had 33 trades instead of 35. Its own seven checks still passed, so internal consistency will not catch it. Compare backtest_start with the start of your timerange every time. Our download-data and startup-candles guide covers the pre-flight check.
4. A backtest directory that doesn't exist becomes a filename prefix. The CLI help describes --backtest-directory as the "Directory to use for backtest results". In our 16 November reruns, pointing it at a folder that already existed wrote backtest-result-<UTC datetime>.zip inside that folder, as expected. Pointing it at a folder that did not exist, with or without a trailing slash, created no folder. Instead it wrote <folder name>-<UTC datetime>.zip and its .meta.json into the parent directory, and the run still exited with code 0. A script that globs <dir>/backtest-result-*.zip then finds nothing, or picks up an older run. Create the directory first, and read the path from the "dumping json to" log line instead of assuming it. This is observed behaviour in 2026.10, not documented.
A short checklist for your own export
- Create
<dir>first, then run with--export trades --backtest-directory <dir>, plus--cache noneif anything changed. The docs warn that the default one-day cache "will also silently skip changes to modules strategies import." - Keep the zip and the
.meta.json. The zip holds the strategy and config copies, which is what makes a result reproducible. The docs add that dependencies your strategy imports are not included. - Read
backtest_startandbacktest_endbefore anything else. - Run the seven checks above against the JSON. Any mismatch means you're reading a different run, a different strategy key, or a filtered list.
- Read
timedout_entry_ordersandtimedout_exit_ordersseparately. They are the two numbers behind the summary's Entry/Exit Timeouts row, and they count orders, not trades. The legend says they apply "only … if custom pricing is used". In our run,SampleStrategyuses no custom pricing and both were 0, matching the printed "0 / 0". A non-zero value means some entry or exit orders never filled. Those orders are not in the trades list, so they cannot be reconciled from it.
The reconciliation script, the run's zip files, the configs and the data hashes are kept with this article's evidence pack. Once the file is trustworthy, move on to enter_tag and exit_reason groups or the backtest statistics tool.
Disclosure: TradeBotBench carries exchange affiliate links elsewhere on the site and may earn a commission from qualifying sign-ups. This article contains no affiliate links. Backtests are simulations. A reconciled export is a correct record of a simulation, not evidence that a strategy will make money.
Sources & method
What this article adds
This is a measured inspection of a freqtrade 2026.10 export: the actual zip members, including a wallet feather the docs don't list, the meta.json kept outside the zip, and the UTC filename timestamp. It gives a seven-check reconciliation of the trades list against the summary fields, which passed to the eighth decimal on 35 trades. It also documents four traps: force_exit rows are already in the totals; order cost includes the fee, so profit must be recomputed from amount × safe_price; with short data the start moved to 2026-08-02 08:00 even though both summaries still balanced internally; and a --backtest-directory that does not exist is used as a filename prefix in the parent folder. A 16 November rerun reproduced all 35 trades field for field.
How it was prepared
freqtrade 2026.10 (ccxt 4.5.92, Python 3.13.5) was installed in a scratch virtualenv on 14 November 2026. Binance spot 1h and 5m candles for BTC/ETH/SOL/XRP-USDT were downloaded with download-data (public data, no API key). The bundled SampleStrategy ran unchanged with --timerange 20260801-20261101 -i 1h --fee 0.001 --cache none --export trades, a 1,000 USDT wallet, 100 USDT stake and three open trades at most. The fee is an assumption, not an exchange quote. A repeat run used data starting 2026-07-25. evidence/freqtrade-2026-11-14/reconcile_export.py (stdlib only) produced reconcile.output.txt. The zips, stdout logs, configs, pip freeze and data SHA-256s are in the same folder. The result matched the 12 November TradeBotBench run (35 trades, −13.25347322 USDT). On 16 November 2026 (09:35–09:36 Asia/Shanghai) the same command was rerun three times on the same data files (SHA-256 unchanged): into a directory that did not exist, into an existing directory, and into a non-existent directory with a trailing slash. All three reproduced the 35 trades, and the reconciliation passed again. PyPI and the docs were rechecked the same morning.
- Freqtrade docs: Backtesting (stable; --export, --backtest-directory, output zip, results legend) Checked 2026-11-16
- Freqtrade docs: Freqtrade Basics (backtesting execution logic) Checked 2026-11-16
- Freqtrade on PyPI (release 2026.10, still latest on 2026-11-16) Checked 2026-11-16
The backtesting docs support: --export choices and the trades default; the --backtest-filename deprecation; --backtest-directory; the default results folder; the zip-contents list and the note that dependencies are not included; the contradictory backtest-result-<datetime>.json example; the cache default and its silent-skip warning; the first table including left-open trades and the force_exit definition; the Total profit % formula; the Entry/Exit Timeouts legend; and the no-slippage fill assumption. The zip members, UTC timestamp, field values, cost-includes-fee observation, moved start date and backtest-directory prefix behaviour are from our own runs (evidence pack), not from the docs.
For corrections, contact the publisher. Editorial policy · Affiliate disclosure