Research & practical guides
Worked examples, clear methods and source-backed answers for trading bots.

31 articles shown
FreqAI TensorBoard: no dashboards, event files, log directory, and supported models
Official FreqAI TensorBoard support, identifier log directory, and a document-only split between startup warnings and missing event files.
Read articleFreqAI PyTorch classifier 'Found non defined labels': check string targets against class_names
Official PyTorch classifier contract: string labels, declared class_names, and the Found non defined labels guard, with a labelled up/down/flat mismatch.
Read articleFreqAI continual_learning versus fresh retraining: why PCA is disabled, and how to preregister a comparison
Official FreqAI continual_learning reuses a prior model state and disables PCA, with a labelled preregistration for fresh versus stateful training.
Read articleFreqAI feature expansion count before training: timeframes, periods, shifted candles, and correlated pairs
Official FreqAI expansion factors and the 3 x 3 x 3 x 2 x 2 = 108 example, with a labelled predicted-dimension worksheet. Not an exported dataframe.
Read articleFreqAI 'Could not find any features': prefixes, hook placement, and template version
Official FreqAI % prefix and feature_engineering_* rules, plus a version-aware checklist. Issue #8143 is recorded as an incomplete merge, not a current prefix defect.
Read articleConstrain an LLM trading agent with official min-size and increment checks, and log every rejection
Dated paper-trading harness: require an LLM place or amend tool to pass official min-size and increment checks before sending, and log every rejected order with the reason.
Read articleFreqtrade producer-consumer: check get_producer_df analyzed-at so you are not trading stale data
Dated official-config checklist: on a Freqtrade consumer, read the analyzed-at timestamp from get_producer_df, which the official example discards, and check official timeouts.
Read articleBacktesting --fee versus the exchange default: what official export docs let you confirm
Dated official-page checklist: --fee is a ratio applied twice; a config fee key or the exchange default may apply instead. Official export docs do not confirm which ratio was used.
Read articleFreqAI identifier: how official docs say to avoid silent reuse of saved models
Dated official-config checklist: change identifier or delete user_data/models/<unique-id> before a new FreqAI experiment, so a new run does not reload another run's saved models.
Read articleadjust_trade_position: partial entries and exits, and the live vs backtest warning
Dated official-callback readout of freqtrade adjust_trade_position partial entries and exits, plus the official warning that dry/live call frequency can deviate from backtesting.
Read articleFreqAI expiration_hours versus do_predict 2: a log check for expired models
Dated official-config checklist: set FreqAI expiration_hours, then look in dry-run or live logs for do_predict == 2 as the official expired-model signal.
Read articleA bar-close replay harness that blocks an LLM agent from the next candle
Harness design from official Freqtrade lookahead-analysis wording, plus a labeled synthetic fixture that freezes market data at candle t and rejects a read of candle t+1.
Read articleFreqAI label_period_candles vs include_shifted_candles: a leakage check
Official FreqAI parameter wording plus a labeled synthetic dataframe check: labels look forward, and include_shifted_candles only adds past candles to later rows.
Read articleLog LLM agent tool calls with client order id and last closed candle
A Freqtrade paper-trading replay log for each place, cancel, or amend tool call, with client order id and last closed candle, checked by an offline fixture.
Read articlefreqtrade lookahead-analysis: results table and official bias caveats
A freqtrade 2026.10 lookahead-analysis run on SampleStrategy: official defaults stopped at 20 trades, the fuller table was No on 37 signals, and a fixture showed Yes.
Read articlefreqtrade backtesting --export trades: open the zip and reconcile it with the summary table
freqtrade 2026.10 exports a zip, not a bare JSON. We matched 35 trades to the summary in seven checks, reran it, and found four traps the table hides.
Read articlefreqtrade download-data timerange vs backtest timerange: check with list-data that startup candles are on disk
download-data ignores startup_candle_count, and backtesting silently moves its start when warmup data is missing. Check the first candle with list-data and prepend.
Read articleHow to log FreqAI do_predict and DI_values on each closed trade for a reproducible experiment
A labeled offline fixture that records official FreqAI do_predict and DI_values at entry and at exit on each closed trade. FreqAI was not run, and no performance is claimed.
Read articleHow to read a third-party dry-run vs 45-day backtest board
How to read TradingAgentStack's Strategy Lab: 45-day backtest next to paper trading on live prices as of 2026-11-13 (rechecked 2026-11-14). Figures are theirs, not TradeBotBench's.
Read articleCheck FreqAI train_period_days and backtest_period_days windows for leakage
How FreqAI's sliding train-then-infer windows are defined, how to log model identifiers and candle ranges, and how a correct slide differs from a leaking overlap.
Read articleFreqtrade stake_amount unlimited vs fixed: what changes in a backtest
How freqtrade sizes unlimited vs fixed stakes, how to backtest both from one config, what should differ, and a hand-worked hypothetical compounding path.
Read articleSplit freqtrade hyperopt into in-sample and out-of-sample timeranges
Freqtrade has no built-in out-of-sample mode. How to split --timerange for hyperopt and backtesting, run walk-forward folds, and read the degradation.
Read articleRead freqtrade backtesting-analysis enter_tag and exit_reason groups
What each freqtrade backtesting-analysis group (0–5) shows, what columns like wl_ratio_pct and exp_ratio compute, and a hypothetical worked table.
Read articleFreqtrade --timeframe-detail before and after: a measured comparison
Real before-and-after backtests of freqtrade SampleStrategy with --timeframe-detail (5m+1m and 1h+5m): what changed, what did not, and how to read it.
Read articlePick freqtrade startup_candle_count from recursive-analysis output
How to read freqtrade recursive-analysis output and choose startup_candle_count, using a real run of SampleStrategy on BTC/USDT 5m data checked 2026-11-12.
Read articleFreqtrade backtest with and without --enable-protections, measured
Protections in freqtrade backtests only run with --enable-protections. A measured on/off comparison with CooldownPeriod and StoplossGuard, and how to read it.
Read articlePaper-test Freqtrade stoploss on exchange vs local
Compare Freqtrade's local stoploss with stoploss_on_exchange in a dry-run paper test of trigger timing and emergency-exit fallback. No return claims.
Read articleWhy Freqtrade dry-run fills differ from a backtest
Official Freqtrade backtests fill from candle assumptions; dry-run uses a live book at placement. A labeled example and pinned procedure show how to compare fills.
Read articleStore Freqtrade dry-run trades in a separate SQLite database
Use --db-url and --dry-run with a fresh SQLite file, then inspect trades with show-trades so two Freqtrade paper runs can be compared without mixing records.
Read articleA grid cycle’s profit after both trading fees
Calculate a completed spot grid cycle after buy fees, sell fees and an allocated fixed cost, then distinguish cycle profit from total bot performance.
Read articleMore ways to work it out
Latest articlesGrid bot cycle profit calculator
Check whether a completed spot buy-and-sell cycle clears both trading fees and an allocated fixed cost.
Open toolBacktest statistics calculator
Inspect chronological closed-trade results for net P/L, profitable-trade share, profit factor and closed-trade drawdown.
Open tool