A fixed stake_amount uses the same amount for every trade. "unlimited" splits tradable balance (default 99%) across max_open_trades, starting from dry_run_wallet in backtests, so results compound. With the same trades, per-trade metrics stay the same and only money-based figures change. Trades can also be skipped differently: a fixed stake can run out of balance, and an unlimited stake can fall below the exchange minimum. --stake-amount accepts both forms, so one config can run both. A labeled hypothetical path ends at 1009.90 fixed vs 1009.54 unlimited; no backtest was run.

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

Two settings, one strategy

The official configuration page (checked 2026-11-13) describes two ways to size each trade:

  • Static stake. A number such as "stake_amount": 330. Every trade uses the same amount of stake currency. At most stake_amount × max_open_trades is in trades at once.
  • Dynamic stake. "stake_amount": "unlimited". The bot splits the available balance equally across max_open_trades. The docs recommend tradable_balance_ratio 0.99, which is also the default, to keep a 1% fee buffer. Stakes grow after winning trades and shrink after losing ones, so results compound.

In backtesting and hyperopt, the unlimited mode starts from dry_run_wallet (default 1000) and that simulated balance changes over the run. The docs warn you to set it to a realistic value. Otherwise a backtest can simulate trades far larger than your account, or smaller than the exchange's minimum order.

How the unlimited stake is calculated

The docs give the formula as currency_balance / (max_open_trades - current_open_trades). The stable source (freqtrade/wallets.py, checked 2026-11-13) does it a little differently: (free + tied up) × tradable_balance_ratio ÷ max_open_trades, capped at what is still available. With equal-sized trades the two give the same answer. Here is the check with wallet 1000 USDT, ratio 0.99 and max_open_trades 3, ignoring fees:

  • Trade 1: (0 + 1000) × 0.99 ÷ 3 = 330.
  • Trade 2, with 330 tied up: the source gives (330 + 670) × 0.99 ÷ 3 = 330. The docs formula gives available 990 − 330 = 660, divided by (3 − 1) = 330.
  • Trade 3: 330 again, and the 10 USDT buffer stays untouched.

Running both from the same config

The CLI can override the stake, and the source converts --stake-amount so it accepts both a number and unlimited. You can therefore keep one config file and change only the flag:

freqtrade backtesting -c config.json --strategy MyStrategy --timerange 20260501-20261101 --dry-run-wallet 1000 --max-open-trades 3 --stake-amount 330 --backtest-directory user_data/backtest_results/stake-fixed --cache none
freqtrade backtesting -c config.json --strategy MyStrategy --timerange 20260501-20261101 --dry-run-wallet 1000 --max-open-trades 3 --stake-amount unlimited --backtest-directory user_data/backtest_results/stake-unlimited --cache none

Setting the fixed stake to 330 makes the first trade identical in both runs. Any difference afterwards comes from compounding or from trades being skipped.

What should and should not differ

If both runs open the same trades, the per-trade figures, such as avg profit %, win rate and the exit reason mix, stay the same. Each trade's profit ratio does not depend on its size. What changes is everything measured in money: absolute profit, final balance, Tot Profit %, CAGR and drawdown in stake currency.

The trade list itself can change in three ways:

  1. A fixed stake can run short. In the source, a trade whose stake is larger than the available balance is not opened. Example: stake 400, max_open_trades 3, wallet 1000. Tradable is 990, so after two trades only 990 − 800 = 190 is left, and the third trade does not open. amend_last_stake_amount only helps if the remainder is larger than stake × last_stake_amount_min_ratio (default 0.5, so 200). 190 is not, so the trade is still skipped.
  2. An unlimited stake can fall below the exchange minimum after losses. The source raises a too-small stake up to the minimum, but skips the trade if the stake × 1.3 is still below that minimum.
  3. Different free balance changes timing. Once a trade is skipped, later slots open at different times, and the two backtests stop being comparable trade by trade.

If the trade counts differ, compare the lists before drawing any conclusion about sizing.

A hypothetical path, worked by hand

The returns below are invented to show the arithmetic. They are not a backtest result and not a forecast. Assumptions: wallet 1000 USDT, one trade open at a time, net profit ratios after fees as given, fixed stake 330, and an unlimited stake of balance × 0.99 ÷ 3.

TradeReturnFixed stakeFixed balanceUnlimited stakeUnlimited balance
1+4%3301013.20330.001013.20
2+4%3301026.40334.361026.57
3−3%3301016.50338.771016.41
4+4%3301029.70335.421029.83
5−3%3301019.80339.841019.63
6−3%3301009.90336.481009.54

Fixed: 1000 + 330 × (3 × 0.04 − 3 × 0.03) = 1009.90. Unlimited: 1000 × (1 + 0.33 × 0.04)³ × (1 − 0.33 × 0.03)³ = 1000 × 1.0132³ × 0.9901³ ≈ 1009.54. In this choppy path, compounding ends 0.36 USDT behind. Its worst drawdown is also a little deeper: 20.29 USDT from the 1029.83 peak, about 1.97%, against 19.80 USDT from 1029.70 for the fixed stake, about 1.92%.

Run the same per-trade returns on two other made-up paths and the result flips. Six +4% trades give 1079.20 fixed against 1081.86 unlimited (1000 × 1.0132⁶). Six −3% trades give 940.60 fixed against 942.05 unlimited (1000 × 0.9901⁶). Compounding gains more on a winning streak and loses less on a losing streak, because the stake shrinks. It doesn't help in sideways chop.

How to use the comparison

Decide which number you are evaluating. To judge the signals, use a fixed stake (and a wallet large enough that no trade is skipped) so every trade has the same weight. The official lookahead-analysis does something similar: it forces a static 10,000 stake and an effectively unlimited wallet. To judge what account growth would have looked like in this simulation, add the unlimited run, but remember that its drawdown in currency depends on the order of trades. Keep the stake mode the same between hyperopt and the backtest you use to validate it, since the docs say a backtest only matches hyperopt when the configuration is the same.

To turn drawdowns from either run into recovery math, use our drawdown recovery tool. The backtest statistics tool and the bot evaluation guide cover the per-trade side. None of this predicts future results.

Sources & method

What this article adds

Reconciles the documented unlimited-stake formula with the stable source's formula and checks that they agree (330/330/330 on a 1000 wallet). Adds a two-command method to backtest both stake modes from one config, explains which report figures should and should not differ, gives a source-based fixed-stake shortfall example (400 × 3 on 990 tradable leaves 190, below the 200 amend floor), and works three labeled hypothetical return paths by hand.

How it was prepared

Drafted on 2026-11-13 from the official freqtrade stable docs (configuration, backtesting, hyperopt, lookahead-analysis) and the stable source files wallets.py, configuration.py and optimize/backtesting.py (stable branch head 4cf0351, committed 2026-10-30). All balances in the table are hypothetical arithmetic with stated assumptions (one trade at a time, net returns given, fees ignored), recomputed with a script saved in the batch evidence. Freqtrade was not executed, and no strategy result is reported.

Configuration page: static vs dynamic stake definitions, stake × max_open_trades cap, tradable_balance_ratio default 0.99, the dynamic formula, compounding, dry_run_wallet simulation in backtesting/hyperopt and the sizing warning, and amend_last_stake_amount with last_stake_amount_min_ratio 0.5. Backtesting page: --stake-amount, --dry-run-wallet, --max-open-trades and --backtest-directory options. Hyperopt page: same config needed to match. Lookahead page: forced static 10000 stake and near-unlimited wallet. Source: unlimited formula and cap, DependencyException on short balance, the strict > amend check, the minimum-stake ×1.3 rule, and CLI float-or-unlimited conversion.

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

Put it into practice