Bitsgap logo
 Search
Sharpe vs Sortino Ratio: Comparing Crypto Bots

Sharpe vs Sortino Ratio: Comparing Crypto Bots

Sharpe and Sortino use different definitions of variability. Calculate both from the same returns and learn what a high ratio can leave out.

Sharpe and Sortino ratios help compare a crypto bot's return with the variability of those returns. They answer different questions, and either can look impressive when the input data is incomplete or the test period is too short.

Sharpe considers variability above and below the average. Sortino focuses on returns that fall below a chosen target. Neither tells you the maximum loss a bot can experience, whether it will survive a market change, or whether its reported profit includes coins still underwater.

Before calculating either ratio, build a consistent series of portfolio returns. Then use the ratios alongside drawdown, costs and the amount of evidence behind the strategy.

Start with equity returns, not winning trades

A bot can complete many profitable trades while its remaining coin inventory falls in value. A series containing only completed trade profits omits that exposure and can make the strategy appear unusually stable.

Use regularly spaced portfolio-equity observations that include cash, open holdings and relevant liabilities. Daily data should use the same valuation time every day. Adjust for external deposits and withdrawals, and include fees consistently.

For a cash-flow-free daily interval, the return is ending equity divided by starting equity, minus one. If you add money during the interval, the simple formula needs adjustment. The deposit is not investment performance.

Compare bots over the same dates and sampling frequency. A daily ratio for one bot and a weekly ratio for another is not a fair comparison, even if the two numbers are displayed to the same decimal precision.

What the Sharpe ratio measures

The Sharpe ratio compares average excess return with the standard deviation of excess returns. Excess return is the strategy return minus the chosen reference return for each matching period.

In a simplified example with a constant zero reference return:

Sharpe = mean periodic return ÷ standard deviation of periodic returns.

Standard deviation counts variation in both directions. Large positive days can increase the denominator, as can negative days. This makes Sharpe a measure of return relative to overall variability, rather than a direct measure of loss severity.

Choose the reference deliberately. Using zero for an educational calculation is easy to understand, but a live comparison may require a different benchmark. A stablecoin yield should not automatically be described as risk-free; it can involve credit, liquidity and platform risks.

Also state whether you use sample or population standard deviation. The difference matters in small datasets. The worked example below uses sample standard deviation, with an n − 1 denominator.

What the Sortino ratio measures

Sortino compares return above a target with downside deviation below that target. The target is often called the minimum acceptable return, or MAR.

For the convention used in this article:

Sortino = (mean return − target return) ÷ downside deviation.

Downside deviation = square root of the average squared shortfalls below the target, across all observations.

Returns above the target contribute zero to the downside sum. They still count in the number of observations. Some tools use different conventions, including averaging only over below-target observations. Those choices can produce different results from the same return series.

Write down the convention before comparing ratios from different dashboards. The CFA Institute paper on the Sortino ratio explains why target selection and calculation details matter.

A worked comparison with the same average return

Consider two fictional bots with four daily returns. The sample is intentionally tiny so every step is visible. It is an arithmetic example, not enough evidence to select a live strategy.

DayBot ABot B
1+1%+3%
2+1%−3%
3−1%+3%
4+1%−1%

Both have an arithmetic average daily return of 0.5%. We use a zero reference return for Sharpe and a zero target for Sortino. All ratios below are unannualized.

Calculate Sharpe

Bot A's deviations from its 0.5% mean are +0.5, +0.5, −1.5 and +0.5 percentage points. Their squared sum is 3. Divide by three for the sample variance, then take the square root. Sample standard deviation is 1 percentage point.

Bot A Sharpe = 0.5 ÷ 1 = 0.50.

Bot B's deviations are +2.5, −3.5, +2.5 and −1.5 percentage points. Their squared sum is 27. Divide by three and take the square root to get 3 percentage points.

Bot B Sharpe = 0.5 ÷ 3 = approximately 0.17.

The equal average returns have different variability, so the ratios differ.

Calculate Sortino

With a zero target, Bot A has one shortfall: −1%. Its squared downside sum is 1 in percentage-point units. Divide by all four observations and take the square root: downside deviation is 0.5 percentage points.

Bot A Sortino = 0.5 ÷ 0.5 = 1.00.

Bot B has shortfalls of −3% and −1%. The squared sum is 10. Divide by four and take the square root: downside deviation is approximately 1.5811 percentage points.

Bot B Sortino = 0.5 ÷ 1.5811 = approximately 0.32.

MeasureBot ABot B
Mean daily return0.50%0.50%
Sample standard deviation1.00 percentage point3.00 percentage points
Downside deviation0.50 percentage points1.5811 percentage points
Sharpe0.500.17
Sortino1.000.32

In this sample, Bot A ranks higher on both measures. The four-day sequence does not tell us what either bot would do during a prolonged decline or an exchange interruption.

Why annualization needs care in crypto

You may see daily Sharpe ratios multiplied by the square root of 365 because crypto trades every day. That familiar scaling relies on assumptions about the return process, including how returns relate across time.

Bot returns can be serially correlated, particularly when positions persist across days or valuations update unevenly. A simple scaling rule can therefore create a false sense of comparability. The CFA Institute's discussion of the statistics of Sharpe ratios examines these statistical limitations.

For a practical review, report the observation frequency, date range, number of observations and annualization method. Do not annualize four illustrative days into a headline claim about likely yearly performance.

Build the return series from the full position

Bitsgap's GRID performance tools let you review allocation, open exposure and trading history. Collect consistent equity snapshots before using an external spreadsheet to compare risk-adjusted returns.

This guide does not claim that Bitsgap calculates Sharpe or Sortino ratios automatically.

Check what a high ratio leaves out

A ratio calculated during a calm period may omit the market conditions that challenge the strategy. A bot that accumulates inventory in a decline needs evaluation through that exposure, not just through frequent small realized gains.

Review maximum drawdown and recovery time alongside the ratios. Examine the worst periods and the largest open position. For leveraged strategies, include liquidation and funding considerations that a daily return summary may obscure.

Check for selection bias too. If you test hundreds of configurations and show only the highest ratio, the winner may reflect chance. Preserve the test history and evaluate the chosen settings on data not used to select them. Then monitor whether live behavior remains consistent with the assumptions.

Costs can change the ranking. Use net returns where possible, and explain any excluded subscription cost, slippage or funding charge. A ratio is only as complete as the equity series behind it.

A comparison sheet worth keeping

For each bot, record the pair, exchange, strategy settings, dates, equity boundary, cash-flow treatment, sampling frequency and cost assumptions. Add the Sharpe reference return and Sortino target, including their periodic units.

Report currency profit and total return beside the ratios. A relatively smooth strategy can still earn too little to meet your objective. A higher-return strategy can still exceed the drawdown you are prepared to tolerate.

Set the decision criteria before inspecting the final ranking. Otherwise, it is easy to prefer whichever metric makes the strategy you already like look strongest.

Frequently asked questions

Is Sortino better than Sharpe for crypto bots?

Sortino focuses on shortfalls below a chosen target, which can be useful when downside variability is your concern. Sharpe includes overall variability. Use the measure that fits the question and disclose the calculation method; neither replaces a drawdown review.

What is a good Sharpe ratio for a trading bot?

There is no universal cutoff that establishes a bot is worth trading. The period, data quality, fees, sampling method and strategy selection process all matter. A short or incomplete sample can produce a high but unreliable ratio.

What if there are no negative returns?

With a zero target and no below-target observations, downside deviation is zero. The Sortino ratio is then undefined or displayed differently by different tools. It does not prove that the strategy has no downside risk.

Can I calculate the ratios from closed trades alone?

That omits changes in open holdings and produces a different, often misleading view of portfolio risk. Use consistent equity returns that include unrealized gains and losses, with external flows handled correctly.

Want more profit with crypto?

Bitsgap’s automated bots help crypto traders effortlessly make profits 24/7.

Start free trial

*7-days PRO plan trial. No credit card required

Try Bitsgap’s PRO plan free for 7 days, pick a plan later

Done in 3 steps and trades for you.

All your data is secured with high-end encryption