Read the recursive-analysis table row by row for the indicators your entries and exits use. Pick the smallest startup value where their variance is close to 0%, rather than chasing exact zero. In our real run of freqtrade 2026.10 SampleStrategy on BTC/USDT 5m (2026-09-01 to 2026-11-01), a startup of 100 still left adx at 0.624%, macdhist at −8.347% and htsine at −34.395%. At 199, every printed value was within ±0.002%, so the shipped 200 is enough for its signal indicators.

Calculation and worked example. AI-assisted drafting. Educational information; no individual financial advice.

What recursive-analysis measures

Freqtrade's official recursive-analysis page (checked 2026-11-12) explains the problem. In a backtest, indicators are calculated over the whole timerange. In dry-run or live, the bot only has the candles the exchange returns. Recursive indicators such as EMA-based ones can then end at different values. startup_candle_count is how many candles of history your strategy asks for before its signals count.

The command does not backtest. It first calculates indicators over your full timerange as a benchmark. Then it recalculates them with each startup candle count you list and compares the last row only. The table shows the percentage difference from the benchmark for each indicator and each startup value. - means no variance, and nan% means the indicator could not be calculated from that many candles. The docs suggest at least 5,000 candles of timerange and a high-priced pair such as BTC or ETH, to avoid rounding effects.

The run behind this article

We ran the command on the box. These are measured outputs, not example values.

  • Freqtrade 2026.10, SampleStrategy as created by freqtrade create-userdir. Its startup_candle_count is 200 and its timeframe is 5m.
  • BTC/USDT spot, 5m, timerange 2026-09-01 to 2026-11-01 (about 17,500 candles). The data are public OHLCV downloaded with freqtrade download-data.
freqtrade recursive-analysis -c user_data/config.json -s SampleStrategy -i 5m \
  -p BTC/USDT --timerange 20260901-20261101 --startup-candle 50 100 199 299 499 999

Freqtrade added the strategy's own value (200) as an extra column. It also reported "No lookahead bias on indicators found". That check covers indicator values only, not a full lookahead analysis.

The results table

Values are as printed (three decimals), grouped for reading. The full table and the raw unrounded values are saved with our batch evidence.

Indicator50100199200 (strategy)299499999
adx14.988%0.624%−0.000%−0.000%0.000%--
rsi0.623%−0.008%−0.000%−0.000%0.000%--
macd3.615%0.288%−0.000%0.000%−0.000%--
macdsignal9.184%0.430%−0.000%0.000%−0.000%--
macdhist−334.050%−8.347%0.001%−0.000%0.000%--
htsinenan%−34.395%−0.002%−0.002%−0.000%−0.000%−0.000%
htleadsinenan%−6.508%−0.000%−0.000%−0.000%−0.000%−0.000%
sar0.118%------
tema0.000%0.000%-----

The Bollinger band columns (bb_lowerband, bb_middleband, bb_upperband, bb_percent, bb_width), mfi and fastd printed 0.000% or −0.000% (or -) at every tested value. They were not sensitive to startup length in this run.

How to read it and pick a value

Read the table row by row, then column by column:

  1. Find the indicators your entries and exits actually use. In SampleStrategy, entry and exit rules use rsi, tema and bb_middleband. adx, macd*, sar and the Hilbert sine columns are calculated but not used in its signals. The docs say the variance only matters if it affects entries or exits, and the command cannot tell you that. You have to check your own strategy code.
  2. For those rows, find the smallest column where the variance is close enough to zero. Here rsi is −0.008% at 100 and −0.000% at 199. tema and bb_middleband already show no variance by 199.
  3. Check the other rows anyway if you plan to use them later. At 100, adx (0.624%), macdhist (−8.347%) and htsine (−34.395%) still differ noticeably. By 199, every printed value is within ±0.002%.
  4. Do not chase exact zero. The docs say aiming for - everywhere may need a very long startup period. Here 299 already prints 0.000% (or −0.000%) everywhere, and 499 and 999 add nothing visible.

For this strategy and this data, the shipped 200 is sufficient for its signal indicators. 299 would make sense if you later add rules based on htsine or macdhist and want those at 0.000% too. Going lower than 199 is where the table starts to show real differences.

Two reading notes. A large percentage on macdhist at 50 does not have to mean a large absolute gap. A histogram that sits close to zero makes any difference look big in percent, so check absolute values in your own dataframe before panicking. And nan% at 50 for the Hilbert sine columns only means 51 candles were not enough to calculate them at all.

The cost of a higher value

A larger startup_candle_count is not free in live trading. The docs explain why the suggested values are odd numbers (199, 499, 999, 1999). The last candle is the current one. For example, a startup of 1000 can make the bot fetch 2000 candles because of how pages split. The docs give Binance as the example: 1000 candles per call and 5 consecutive calls, so 4999 is the maximum startup there. They warn exchanges may change these limits. Pick the smallest value that clears your signal indicators, plus a margin you can justify.

Limits of this run

One pair, one timeframe, one end date and the stock sample strategy. The docs note the command compares only the last row, only covers populate_indicators and @informative code, and does not measure the effect on trades. Re-run it on your own strategy and pairs. To check how backtest results hold up beyond indicators, use the backtest statistics tool and the bot evaluation guide. For why dry-run fills differ from backtests anyway, see dry-run vs backtest fills. Nothing here is a performance or profit claim.

Sources & method

What this article adds

A real recursive-analysis run on the box (freqtrade 2026.10, stock SampleStrategy, BTC/USDT 5m, about 17,500 candles, startup 50/100/199/200/299/499/999). Its measured variance table is read row by row against the indicators that SampleStrategy's entry and exit rules actually use, ending in a reasoned choice (200 adequate, 299 for zero printed variance everywhere).

How it was prepared

We installed freqtrade 2026.10 from PyPI on the box on 2026-11-12, created a user directory with the stock SampleStrategy, downloaded public BTC/USDT 5m OHLCV and ran recursive-analysis with the listed startup values. The printed table, raw unrounded values, log, config and data checksums are kept in the batch evidence folder. Interpretation follows the official recursive-analysis page fetched 2026-11-12 Asia/Shanghai. No backtest profit is reported.

The official recursive-analysis page supports the purpose of the command, the benchmark and last-row comparison, the 5,000-candle and high-price-pair advice, the meanings of - and nan%, the advice not to chase zero variance, odd startup values and the exchange candle-limit example, and the caveats (last row only, populate_indicators and @informative only, no trade impact). The measured values come from our own run.

For corrections, contact the publisher. Editorial policy · Affiliate disclosure

Put it into practice