We backtested freqtrade 2026.10 SampleStrategy on four USDT pairs (2026-08-01 to 2026-11-01) with and without --timeframe-detail. At 5m with 1m detail, all 93 trades kept their entries and profit, and totals were identical (0.119 USDT), but 68 trades closed at a different minute. At 1h with 5m detail, totals moved from −13.253 to −13.256 USDT, 28 shared trades closed at different times, and one entry moved by 10 minutes. Read trade-level differences, not only the totals.
Calculation and worked example. AI-assisted drafting. Educational information; no individual financial advice.
What --timeframe-detail changes
Freqtrade's official backtesting page (checked 2026-11-12) names the core limitation: a backtest cannot know how price moved inside a candle. --timeframe-detail loads a smaller timeframe as well. The strategy is still analysed on the main timeframe. But candles where something can happen (an active signal or an open trade) are evaluated on the detail candles. All callbacks run on each detail candle once a trade is open. The docs say entries generally still happen at the main candle's open. They add that results can differ, especially on higher timeframes. The detail timeframe must be smaller than the main one, and its data must already be downloaded.
Our before-and-after runs
We ran two real comparisons on the box on 2026-11-12. Same strategy, same data, same settings; the only change was adding the flag.
- Freqtrade 2026.10 (pip install, Python 3.13, CCXT 4.5.92), run on our box on 2026-11-12
- Data: public spot OHLCV for BTC/USDT, ETH/USDT, SOL/USDT and XRP/USDT, downloaded with
freqtrade download-datafrom one exchange's public API for 2026-07-01 to 2026-11-01. Candle times are UTC. - Config: dry-run wallet 1,000 USDT, stake 100 USDT,
max_open_trades3,StaticPairList,--fee 0.001(0.1% per side) set explicitly,--cache none - Strategy: the stock
SampleStrategyfromfreqtrade create-userdir(ROI table, 10% stoploss), unchanged - Backtest window: 2026-08-01 to 2026-11-01
freqtrade backtesting -c user_data/config.json -s SampleStrategy -i 5m \
--timerange 20260801-20261101 --fee 0.001 --cache none
freqtrade backtesting -c user_data/config.json -s SampleStrategy -i 5m \
--timeframe-detail 1m --timerange 20260801-20261101 --fee 0.001 --cache noneThe second pair used -i 1h and --timeframe-detail 5m.
Results: 5m main, with and without 1m detail
| Metric | 5m only | 5m + 1m detail |
|---|---|---|
| Trades | 93 | 93 |
| Wins / losses | 82 / 11 | 82 / 11 |
| Exit reasons | ROI 82, stop_loss 7, exit_signal 1, force_exit 3 | identical |
| Absolute profit | 0.119 USDT | 0.119 USDT |
| Max account drawdown | 5.008% | 5.008% |
| Average holding time | 2 days 9:42 | 2 days 9:44 |
All 93 trades had the same pair and entry time in both runs, and every trade had the same profit ratio. What changed: 68 of 93 trades closed at a different time with the same exit reason and the same profit. For example, a BTC/USDT trade opened 2026-08-03 22:20 UTC hit its ROI target. The 5m run closed it at 2026-08-04 18:20 and the detail run at 18:24, both at +1.0%. With detail, freqtrade can place the exit at the 1m candle where the target was reached instead of the 5m candle's start.
Results: 1h main, with and without 5m detail
| Metric | 1h only | 1h + 5m detail |
|---|---|---|
| Trades | 35 | 35 |
| Wins / losses | 30 / 5 | 30 / 5 |
| Exit reasons | ROI 30, stop_loss 3, force_exit 2 | identical |
| Absolute profit | −13.253 USDT | −13.256 USDT |
| Max account drawdown | 3.497% | 3.498% |
| Average holding time | 2 days 9:12 | 2 days 9:31 |
Here 34 trades matched on pair and entry time, and 28 of those closed at different times. One trade moved. Without detail, a SOL/USDT entry opened 2026-10-08 20:00 UTC and closed at 21:00 (ROI, +0.998%). With detail, the corresponding entry opened at 20:10 and closed at 21:50 (+0.996%). So the docs' "generally still at the main candle's open" held for 34 of 35 entries, not all of them.
How to read a comparison like this
- Look at trade-level differences, not only the totals. In both pairs the totals barely moved, yet most exit times changed. If your strategy uses
custom_exit,custom_stoplossor trailing stops, those callbacks now run on every detail candle. That is where the docs expect larger differences. - Explain why totals held.
SampleStrategymostly exits on fixed ROI targets, and backtesting exits ROI at the ROI value. Its 10% stop rarely sits inside a candle together with the target. Detail candles change when an exit happens more than at what price. A tight-stop or trailing-stop strategy would be a stronger test. - Watch freed slots. The docs show an extreme example where earlier exits free a trade slot for another pair. With
max_open_trades3 and four pairs, our runs produced one different entry in the 1h test and none in the 5m test. - Measure the cost. The docs warn that detail data need more memory and runtime. On our box, by log timestamps, the 5m run took about 8 seconds and the 5m + 1m run about 35 seconds. The 1h runs took about 5 and 6 seconds. Your times will depend on trade count and data size.
The docs suggest using this as a last step to confirm a strategy is not exploiting backtest assumptions. They add that only forward testing in dry-run can really confirm a strategy. To compare the two exported trade lists yourself, the backtest statistics tool accepts closed-trade results. For dry-run fill differences, see dry-run vs backtest fills, and for stop placement see stoploss on exchange vs local.
Limits
These are measured results for one stock sample strategy, four pairs, one three-month window, one fee setting and one data source. They are not a profitability claim: the 5m runs ended near flat and the 1h runs slightly negative. The result files, configs, data checksums and a comparison script are kept with our batch evidence so the runs can be repeated.
Sources & method
What this article adds
Two measured before-and-after backtest pairs run on the box (5m vs 5m+1m and 1h vs 1h+5m) with the stock SampleStrategy on four pairs over three months. It compares trades individually as well as in summary: unchanged totals but 68 of 93 exits re-timed at 5m, and one entry moved from 20:00 to 20:10 at 1h, which shows how the docs' 'generally at main candle open' applies in practice.
How it was prepared
We ran freqtrade 2026.10 (PyPI, Python 3.13) on the box on 2026-11-12 with public spot OHLCV downloaded by freqtrade download-data, an explicit 0.1% fee, a 100 USDT stake, max_open_trades 3 and --cache none. Each pair of runs differs only by --timeframe-detail. Trade-level matching was done by a script on the exported result zips. Results, configs, data checksums and scripts are in the batch evidence folder. Interpretation follows the official backtesting page fetched 2026-11-12 Asia/Shanghai.
The official backtesting page supports the intra-candle limitation, how --timeframe-detail works (main-timeframe analysis, detail evaluation of active candles, callbacks per detail candle, entries generally at main candle open, freed slots, smaller-timeframe requirement, memory and runtime cost), ROI exits at the ROI value, and the advice to confirm in dry-run. The measured values come from our own runs.
For corrections, contact the publisher. Editorial policy · Affiliate disclosure