Trading bot performance metrics: how to read a backtest or a bot's stats
TopTradingBots editorial team · Published 17 Nov 2026 · Updated 17 Nov 2026 · Editorial policy
The trading bot performance metrics that matter most are max drawdown (the worst peak-to-trough fall), profit factor (gross profit divided by gross loss), expectancy (average result per trade) and a risk-adjusted ratio such as Sharpe or Sortino. Win rate alone means little. Always check the period, the number of trades, the costs included and whether open losses are counted.
Why trading bot performance metrics matter more than total return
A bot’s total return tells you how much it made. It does not tell you how much pain it took to get there, how many trades produced it, or whether one lucky week did all the work. Trading bot performance metrics answer those questions, and they are what you should read first in a backtest, a paper trading log or a marketplace listing.
To keep this concrete, every section below uses the same made-up bot.
Example, not a real bot: Bot A starts with 10,000 USDT and runs for six months. It closes 100 trades: 55 winners averaging +40 USDT and 45 losers averaging −30 USDT. Along the way its equity peaks at 10,600 USDT before falling to 9,540 USDT, and it ends at 10,850 USDT.
Total return and CAGR
Total return = (ending equity − starting equity) ÷ starting equity.
Bot A: (10,850 − 10,000) ÷ 10,000 = 8.5% over six months.
CAGR (compound annual growth rate) = (ending ÷ starting)^(1 ÷ years) − 1.
Bot A: (1.085)^(1 ÷ 0.5) − 1 = 1.085² − 1 ≈ 17.7% a year.
Annualizing is useful for comparing bots, but it assumes the next six months look like the last six. The shorter the window, the bigger that assumption gets (see the red flags below).
Max drawdown: the number to read first
The CFA Institute’s Enterprising Investor defines a drawdown as “the decline in value from the previous local maximum to a subsequent trough.” An investment can have many drawdowns; maximum drawdown is the largest one.
Max drawdown = (peak equity − lowest equity after that peak) ÷ peak equity.
Bot A: (10,600 − 9,540) ÷ 10,600 = 10%.
Two things make drawdown the most practical metric for bot users:
- Recovery is lopsided. After a 10% fall, Bot A needs 1,060 ÷ 9,540 ≈ 11.1% to get back to its peak. After a 50% fall, any bot needs +100%.
- It tells you if you will quit. If a 10% hole would make you switch the bot off, a bot whose history already shows 10% is one bad month from being abandoned at the worst moment.
Check what the figure measures. Freqtrade’s backtesting docs report drawdown both on closed trades and on a wallet balance that “includes the capital tied in open trades.” The second number is the honest one for bots that hold losing positions open, such as DCA and martingale bots.
Win rate vs risk-reward
Win rate = winning trades ÷ total trades. Bot A: 55 ÷ 100 = 55%.
Payoff ratio (average risk-reward) = average win ÷ average loss. Bot A: 40 ÷ 30 ≈ 1.33.
Neither number means much alone. The win rate you need just to break even depends on the payoff ratio:
Break-even win rate = 1 ÷ (1 + payoff ratio). For Bot A: 1 ÷ 2.33 ≈ 43%. Bot A wins 55%, so it has some room.
Now compare Bot B (also made up): it wins 90% of trades, averaging +10 USDT, but its losers average −120 USDT. Its payoff ratio is 0.083, so it needs a win rate of about 92% to break even. At 90% it loses money despite looking impressive. This is the typical shape of grid, DCA and martingale bots without stops: many small wins and occasional large losses. Our stop-loss and take-profit guide covers how exits change that shape.
Expectancy: average result per trade
Expectancy = (win rate × average win) − (loss rate × average loss).
Bot A: (0.55 × 40) − (0.45 × 30) = 22 − 13.5 = +8.5 USDT per trade, which matches 850 USDT over 100 trades.
Bot B: (0.90 × 10) − (0.10 × 120) = 9 − 12 = −3 USDT per trade.
Freqtrade describes expectancy as “the average profit or loss per trade” and notes that a negative value means the strategy is not profitable. Compare expectancy with your per-trade costs: if each round trip costs about as much as the expectancy, fees take the whole edge. Our bot fee calculator and the guide to trading fees for bots help with that.
Profit factor
Freqtrade’s docs define profit factor as the “Sum of the profits of all winning trades divided by the sum of the losses of all losing trades.”
Profit factor = gross profit ÷ gross loss.
Bot A: (55 × 40) ÷ (45 × 30) = 2,200 ÷ 1,350 ≈ 1.63. Bot B (per 100 trades): 900 ÷ 1,200 = 0.75.
Above 1 the strategy made money in the test; below 1 it lost. A profit factor just above 1 leaves little room for the slippage and fees that backtests often understate.
Sharpe ratio for a trading bot
William Sharpe’s 1994 paper, The Sharpe Ratio, defines the historic version as the average differential return (the strategy’s return minus a benchmark’s, such as a risk-free rate) divided by the standard deviation of that differential return. In his words, it shows “the historic average differential return per unit of historic variability.”
Sharpe ratio = (average period return − risk-free return) ÷ standard deviation of period returns.
Example: Bot A’s monthly returns average 1.4% with a standard deviation of 2.5%, and we assume a risk-free rate of 0.3% a month. Monthly Sharpe = (1.4 − 0.3) ÷ 2.5 = 0.44. A common convention annualizes a monthly figure by multiplying by √12, giving about 1.5.
Sharpe himself warns that the ratio “is not independent of the time period over which it is measured”, and that using historic ratios as forecasts is “subject to serious question.” Only compare Sharpe ratios computed over the same period and frequency. Also check what went in: Freqtrade’s standard Sharpe includes “only closed trades (ignoring open trades with profits or losses).”
Sortino ratio
The Sortino ratio penalises only bad volatility. In a CFA Institute article, Deborah Kidd gives it as:
Sortino ratio = (mean portfolio return − MAR) ÷ downside deviation
where MAR is your minimum acceptable return (it can be zero), and downside deviation measures only returns below that target.
Example: with MAR = 0 and a monthly downside deviation of 1.2%, Bot A’s monthly Sortino = 1.4 ÷ 1.2 ≈ 1.17.
The same article warns that “if the majority of the returns are positive, downside deviation can be significantly understated.” That is exactly the profile of many grid and DCA bots: a long run of small gains before a rare large loss. A great Sortino from a short, calm period can hide the risk you most need to see.
Red flags in advertised bot returns
Bot marketplaces, copy-trading leaderboards and sales pages show returns without the context above. Watch for:
- Survivorship bias. Leaderboards show bots that are still running and doing well. Bots that blew up or were stopped drop out of view, so the visible list looks better than the population. Our copy trading guide covers the same issue for traders.
- Short windows, big annualized numbers. Example: a bot that made 2% in three days shows 2% × 365 ÷ 3 ≈ 243% a year on a simple annualized basis. Three days of a sideways market says almost nothing about a year.
- Unrealized PnL in grid bots. Pionex’s grid bot FAQ separates Grid Profit, the “realized, confirmed profit” from completed cycles, from Trend PnL, the “floating (unrealized) profit or loss based on current holdings.” Example: a grid bot shows +120 USDT grid profit while price has fallen through its range, and the coins it holds carry −900 USDT of Trend PnL. The headline says profit; the account is down 780 USDT. Our grid bot settings guide explains how range choice drives this.
- Closed-trade-only stats. Win rate, Sharpe and drawdown computed on closed trades ignore positions still sitting at a loss.
- Leverage hidden in the return. A return on margin with leverage is not comparable with an unleveraged spot return, and its drawdowns are larger.
- Missing costs. The CFTC’s advisory on AI trading scams tells consumers to “consider the impact fees, spreads, and subscription costs would have on returns,” and warns about promises of “unreasonably high or guaranteed returns.” The scheme it describes even used fake demo accounts to show balances.
None of these require anyone to lie. A real number, shown without its window, costs and losers, still misleads. We cover the broader question in are crypto trading bots profitable.
Checklist: how to judge a bot’s stats
- Period. What dates? Does it include a crash, a strong trend and a quiet range?
- Sample size. How many closed trades? A few dozen trades is a small sample.
- Max drawdown. Is it measured on equity including open positions? Could you sit through it?
- Expectancy and profit factor. Positive expectancy and a profit factor comfortably above 1, after costs.
- Win rate with payoff ratio. Never a high win rate alone; check the average loss.
- Risk-adjusted ratio. Sharpe or Sortino on the same period and frequency as the bots you compare it with.
- Costs. Fees at your tier, slippage, funding on futures, and the subscription.
- Realized vs unrealized. For grid and DCA bots, is floating loss included in the headline?
- Leverage. What leverage produced the return?
- Backtest, paper or live. A backtest is hypothetical; live results from your own account count most. See how to backtest a trading bot.
- Survivors. Are stopped or losing bots shown too?
- Your limit. Size the bot so its worst drawdown stays inside your loss limit, using the position size calculator and the rules in trading risk management.
FAQ
What is a good Sharpe ratio for a trading bot?
There is no universal cut-off, and William Sharpe notes the ratio depends on the period it is measured over. Compare bots on the same period, the same return frequency and the same annualization method. A high Sharpe from a few weeks of data, or from closed trades only, is weak evidence.
Is a high win rate good for a trading bot?
Not by itself. A bot that wins 90% of trades but loses twelve times its average win on each loser still loses money overall. Look at the win rate together with the average win and average loss, or at expectancy and profit factor, which combine them.
What max drawdown is acceptable for a crypto bot?
That depends on how much loss you can sit through without switching the bot off. Set your own limit first, then reject any bot whose historical max drawdown is already close to it, because future drawdowns can be deeper than past ones.
What does profit factor mean in a backtest?
Profit factor is the sum of all winning trades divided by the sum of all losing trades, as Freqtrade's backtesting docs define it. Above 1 the strategy made money before any costs you left out; below 1 it lost money.
Why does my grid bot show profit while I am losing money?
Grid bots often headline realized grid profit from completed buy-sell cycles. Pionex, for example, reports Grid Profit separately from Trend PnL, the floating profit or loss on coins the bot still holds. If price falls, the floating loss can outweigh the grid profit.
Sources
- William F. Sharpe — The Sharpe Ratio (Journal of Portfolio Management, 1994; Stanford reprint) ↗checked 17 Nov 2026
- CFA Institute — Deborah Kidd: The Sortino Ratio: Is Downside Risk the Only Risk that Matters? (2012) ↗checked 17 Nov 2026
- CFA Institute Enterprising Investor — Sculpting Investment Portfolios: Maximum Drawdown and Optimal Portfolio Strategy ↗checked 17 Nov 2026
- Freqtrade — Backtesting (summary metrics) ↗checked 17 Nov 2026
- Pionex — Grid Trading Bot FAQ ↗checked 17 Nov 2026
- CFTC — Customer Advisory Cautions the Public to Beware of Artificial Intelligence Scams (Release 8854-24) ↗checked 17 Nov 2026
Related guides
- How to choose a trading bot: a six-step checklist
- Max drawdown explained: how to read a trading bot's worst-case loss
- What is a crypto trading bot, and how does it actually work?
- Grid vs DCA bot: which one fits your market, fees and budget
Not financial advice. Trading bots do not remove market risk.