A trading bot should be judged by the quality and consistency of its risk-adjusted results, not by headline returns alone. This guide explains how to evaluate a trading bot using CAGR, maximum drawdown, Sharpe and Sortino ratios, win rate, profit factor, exposure, turnover, slippage, and risk of ruin, with repeatable calculations and a practical review checklist.
Overview
Trading bot performance metrics answer different questions. Return measures how much the strategy made. Drawdown measures how difficult the path was. Risk-adjusted ratios show whether the return compensated for volatility or downside variability. Trading costs reveal how much of the apparent edge survives in live execution.
Comparing bots requires consistent measurement. A bot trading a broad stock ETF should not be compared casually with a leveraged crypto bot, a market-neutral system, or a strategy that holds positions for only a few minutes. Before comparing results, match the testing period, starting capital, benchmark, leverage, trading hours, asset universe, and treatment of fees and slippage.
The most useful review considers several metrics together:
| Metric | What it measures | What to investigate |
|---|---|---|
| CAGR | Annualized growth rate | Whether the return is realistic after costs and leverage |
| Maximum drawdown | Largest peak-to-trough decline | How much capital and confidence could be lost |
| Sharpe ratio | Return relative to total volatility | Whether returns were efficient for the risk taken |
| Sortino ratio | Return relative to downside volatility | How the bot behaved during unfavorable moves |
| Win rate | Percentage of profitable trades | Average win, average loss, and trade frequency |
| Profit factor | Gross profits divided by gross losses | Whether the edge depends on a few unusually large trades |
| Exposure | Time or capital committed to the market | Idle cash, concentration, and market-dependence |
| Turnover | How frequently the portfolio trades | Commission, spread, market-impact, and operational costs |
How to estimate
Start with a complete equity curve rather than a single return figure. The equity curve should include realized and unrealized gains, commissions, platform fees, borrowing costs where applicable, and a conservative slippage assumption. Use the same accounting method for both backtests and live results.
CAGR
Compound annual growth rate can be estimated as:
CAGR = (ending equity ÷ starting equity) ^ (1 ÷ years) − 1
For example, if a hypothetical account grows from $10,000 to $12,100 over two years, CAGR is approximately 10% per year. CAGR smooths the result and does not show whether the path was stable or included a severe loss.
Maximum drawdown
For each point in the equity curve, calculate the previous high-water mark. Drawdown is the percentage difference between current equity and that high-water mark. Maximum drawdown is the most negative reading.
A bot that turns $10,000 into $12,100 but falls to $7,000 along the way has a very different risk profile from one that rises steadily. Also record the length of the drawdown and the recovery time. A small drawdown that lasts years may be more difficult to manage than a brief, larger decline.
Sharpe and Sortino ratios
A simplified Sharpe ratio compares average excess return with the standard deviation of returns:
Sharpe ratio = average excess return ÷ standard deviation of returns
The excess-return input depends on the benchmark or reference rate selected. State that assumption clearly, because changing it changes the result. Annualizing daily or monthly data also requires a consistent convention.
The Sortino ratio uses downside deviation instead of total standard deviation. It can be more informative when upside volatility is not considered a problem. Neither ratio proves that a strategy is safe. Short samples, unusual market conditions, leverage, and smoothed or infrequent pricing can make ratios look stronger than the underlying risk warrants.
Trade-level metrics
Win rate is calculated as profitable trades divided by total closed trades. It should always be paired with average win and average loss. A system with a 40% win rate can be profitable if its winning trades are substantially larger than its losing trades. Conversely, a high win rate can conceal occasional losses that erase many small gains.
Profit factor is:
Profit factor = gross profits ÷ gross losses
Review the distribution behind the number. Separate the largest trades, examine results by market regime, and check whether one position or one short period accounts for most of the gains.
Inputs and assumptions
Bot performance is only as credible as its inputs. Document these items before accepting a backtest, vendor dashboard, or paper-trading report:
- Data quality: Identify the market, timeframe, corporate-action adjustments, missing observations, and whether the data was available at the time the signal would have appeared.
- Execution: Record order type, assumed fill price, latency, partial fills, spread, and slippage. A signal that works at an exact historical price may not survive a realistic fill.
- Costs: Include commissions, exchange or platform charges, borrow or financing costs, subscription fees, and any withdrawal or conversion costs relevant to the strategy.
- Leverage and sizing: State position limits, margin assumptions, stop rules, maximum simultaneous positions, and whether sizing changes after gains or losses.
- Sample design: Separate in-sample development data from out-of-sample evaluation. Walk-forward tests or paper trading can help reveal whether settings were fitted too closely to past prices.
- Benchmark: Compare the bot with a relevant buy-and-hold or cash benchmark, while recognizing that the correct benchmark depends on the bot's objective and market exposure.
Turnover deserves special attention. If a strategy trades frequently, even modest per-trade costs can materially reduce net performance. Test a range of slippage assumptions rather than relying on one optimistic estimate. For a live trading bot, compare expected and actual fills and maintain a separate log of rejected, delayed, or manually altered orders.
Risk of ruin is not a single universal figure. It depends on account size, position sizing, win and loss distribution, correlation between trades, and the loss threshold that would make continued trading impractical. A useful stress test asks how the bot behaves after a sequence of losses, a gap through a stop, a data outage, or a period in which its historical edge disappears.
Worked examples
Consider two hypothetical stock-trading bots evaluated over the same period. Bot A returns 18% after estimated costs, has a 12% maximum drawdown, a 48% win rate, and a profit factor of 1.35. Bot B returns 24%, has a 31% maximum drawdown, a 68% win rate, and a profit factor of 1.18.
Bot B has the higher headline return and win rate, but those figures do not automatically make it the better choice. Its larger drawdown may require a smaller position size, and its lower profit factor may indicate a thinner margin after losses. If Bot A also has a stronger out-of-sample Sharpe ratio, lower turnover, and less sensitivity to slippage, it may be easier to operate even with the lower return.
Now test the cost assumptions. Suppose Bot B makes 500 trades during the test and Bot A makes 80. Recalculate each result after increasing assumed slippage and adding all platform costs. The high-turnover bot may lose more performance under this stress test. This does not prove that Bot B is unsuitable; it shows that its result is more dependent on execution quality.
Use the following review worksheet for any trading bot:
- Record starting and ending equity, test duration, and CAGR.
- Mark every equity high and calculate maximum drawdown, drawdown duration, and recovery time.
- Calculate Sharpe and Sortino using stated return intervals and benchmark assumptions.
- Record total trades, win rate, average win, average loss, profit factor, and the largest five wins and losses.
- Measure average exposure, maximum exposure, turnover, and concentration by asset or sector.
- Re-run results with higher slippage, delayed fills, and a lower position size.
- Compare backtest, paper-trading, and live results using the same definitions.
When to recalculate
Recalculate bot performance after every meaningful reporting period, not only when the account has a strong month. Monthly or quarterly reviews can reveal changes in drawdown, turnover, exposure, and execution quality before they become obvious in cumulative return.
Update the analysis when broker, exchange, data, financing, or platform pricing changes. Revisit it after a market regime shift, a major strategy code change, a new asset or timeframe, or a change in leverage and position-sizing rules. Economic events can also alter liquidity and gap behavior, so review assumptions around scheduled announcements if the bot trades around earnings, inflation data, employment reports, or central-bank decisions.
Keep a versioned performance record. Save the strategy settings, data window, cost assumptions, benchmark, and calculation date alongside each report. This prevents a later result from being compared with an earlier result produced under different assumptions.
The practical conclusion is simple: choose a trading bot by examining net return, drawdown, risk-adjusted performance, execution costs, and robustness together. Treat win rate as context rather than a verdict, question unusually smooth results, and size the strategy according to the losses you can realistically tolerate. These metrics should support disciplined decisions, not replace monitoring, paper trading, or risk management.