Category
Performance
Difficulty
Intermediate
Used in
EA evaluationBacktesting

Sharpe ratio

A risk-adjusted return metric: excess return divided by the standard deviation of returns. It rewards a smooth equity curve, which is why it can flatter a martingale EA right up until it blows up.

also: Sharpe, Sharpe number

Updated

In plain English

How much return did the strategy earn for how bumpy the ride was? It rewards a steady climb and punishes a jagged one, even when the jagged one ends higher. Read it as a smoothness score, not a profit score.

Why it matters

For an EA you intend to leave running unattended, the shape of the equity curve matters as much as where it ends, because a violent swing is what makes a trader intervene at the worst moment. Sharpe is the standard way to put that shape into a number — and the standard way to be misled about strategies whose risk has not been realised yet.

  • It separates two strategies with identical returns. One that grinds out small regular gains and one that made the same total in a single explosive month are different products, and only a risk-adjusted figure says so.
  • It is the number most EA sellers quote, so knowing how it is computed is a defence: change the sampling frequency and the same strategy produces a different Sharpe, with no change to the underlying trading.
  • It has a well-known blind spot that is common in EA marketing — it cannot see risk that has not been closed, which is exactly the risk a martingale or grid carries.

How it is calculated

Sharpe ratio = (Mean return − Risk-free rate) ÷ Standard deviation of returns
Mean return
The average return over the sampling period used — per trade, per day or per month.
Risk-free rate
The return available without taking market risk, usually a short-term government bill. It is the benchmark the strategy is measured against — no trading strategy is risk-free, which is precisely why the comparison is worth making. For EA backtests it is commonly set to zero.
Standard deviation of returns
How widely the returns spread around their own mean, counting upside and downside deviation equally.

The denominator is the whole argument. Volatility scales with how often you measure it, so a Sharpe computed on per-trade returns, on daily returns and on monthly returns are three different numbers for the same strategy. Annualised figures conventionally come from monthly returns; MetaTrader 5's Strategy Tester does not compute it that way.

What counts as high or low

  • under 0.5 The volatility is not paying you
  • 0.5–1.0 Acceptable as one leg of a portfolio, not as a standalone
  • 1.0–2.0 Solid — where most credible strategies live
  • over 2.0 Suspiciously good for a retail EA backtest — assume overfitting until forward tested

Read it together with

No single number describes a strategy. These metrics change how this one should be read.

Example

Two EAs return 30% over the same year. The first climbs steadily; the second is flat and choppy for eleven months and then jumps. Sharpe ranks the first higher, because the ranking is about the spread of returns rather than their sum.

EA A — annual return
+30%
EA A — standard deviation of monthly returns
10%
Sharpe 3.0 at a zero risk-free rate.
EA B — annual return
+30%
EA B — standard deviation of monthly returns
30%
Sharpe 1.0 at a zero risk-free rate.

Nothing here says EA B is unprofitable — only that it delivered the same result through a ride three times as wide.

Calculation 30 ÷ 10 = 3.0 · 30 ÷ 30 = 1.0

Result Same profit, three-fold difference in risk-adjusted quality

How to interpret it

A Sharpe figure carries no information unless you know the sampling frequency, the sample length and the tool that produced it. Establish those three, then read the number.

Range What it means
From MetaTrader 5's Strategy Tester Computed from the tester's own return series, so it does not match a Sharpe calculated by hand from annualised monthly returns. The familiar 'above 2.0 is excellent' ladder does not map onto it.
Annualised from monthly returns The conventional basis for the published benchmarks, and the only one those benchmarks should be read against.
Measured over less than about a year Statistically noisy. A dazzling three-month figure routinely halves over a full year without anything changing in the strategy.
On a strategy that holds losers open Actively misleading. Unrealised loss never enters the realised return series, so the curve looks smooth precisely because the risk has not been taken yet.
  • Never rank two EAs on Sharpe unless both figures were produced by the same tool at the same sampling frequency over the same span.
  • The formula assumes returns are roughly normally distributed. Martingale and grid returns are the opposite — long calm stretches punctuated by rare enormous losses — so Sharpe systematically understates their tail risk.
  • Pair it with maximum drawdown, which answers the question Sharpe cannot: how deep was the worst single hole?
  • If large winning months are being penalised, read the Sortino ratio instead — it divides by downside deviation only.

mt5depot EA pages state which tester run each figure came from and over what window, so two published figures on this site are comparable with each other.

Common mistakes

Trusting a high Sharpe from a martingale or grid EA

These strategies post near-vertical equity curves with tiny realised volatility because every losing position is held open and averaged down rather than closed. Sharpe sees only the smooth realised curve and rewards it, right up until the basket cannot be recovered and one close erases months of gains.

Comparing figures computed at different sampling frequencies

Volatility scales with measurement frequency, so a daily-returns Sharpe and a monthly-returns Sharpe are different animals. The strategy did not change; only the denominator did.

Reading a short-sample Sharpe as a property of the strategy

It is a statistic drawn from a sample. Three months of returns can produce almost any figure, and the shorter the window the more the number describes luck rather than design.

Treating Sharpe as a complete risk assessment

It says nothing about the worst single loss, nothing about how long a decline lasted and nothing about tail risk. It belongs next to drawdown and recovery factor, not instead of them.

Frequently asked questions

Is a higher Sharpe ratio always better?
No. A higher Sharpe means a smoother return per unit of volatility, but it says nothing about the worst loss and it can be gamed by strategies that hide unrealised risk. A 1.3 Sharpe with a shallow drawdown can describe a far safer EA than a 2.5 Sharpe built on a martingale.
What is a good Sharpe ratio for an MT5 EA?
For an annualised figure over a meaningful period, 1.0 to 2.0 is a solid and believable range. Anything above 2.0 on a retail EA backtest should be treated as a red flag for overfitting until a forward test confirms it.
Why does MetaTrader 5's Sharpe not match my own calculation?
Because MT5 computes it from the Strategy Tester's return series rather than from annualised monthly returns. The two methods use different denominators, so the figures legitimately differ. Only compare Sharpe values that were produced the same way.
What is the difference between the Sharpe and Sortino ratios?
Sharpe divides by the standard deviation of all returns, so it penalises large winning months as well as large losing ones. Sortino divides by downside deviation only, which stops a strategy being marked down for the volatility traders actually want.

Related articles