Sharpe ratio in trading: formula and what a good value is
The Sharpe ratio formula with a worked example, what a good value is, where MT5 shows it and how it rates it, and why smooth grid EAs and short tests can fake a high one.

The Sharpe ratio is a strategy's average return divided by how much its returns swing around that average (their standard deviation), usually after taking off a risk-free rate. On yearly figures, a Sharpe ratio above 1 is generally read as good and above 2 as very good. The MT5 Strategy Tester uses a similar scale and calls 3 and above very good. In a backtest, a value that high is more often a reason to check the test than to celebrate.
It answers one question: how much return did each unit of up-and-down movement buy you? Two strategies with the same profit can have very different Sharpe ratios if one gets there smoothly and the other lurches.
The Sharpe ratio formula
Sharpe ratio = (average return − risk-free rate) ÷ standard deviation of returns
William Sharpe introduced the measure in 1966 and set out the version used today in The Sharpe Ratio (Journal of Portfolio Management, 1994). Fund managers subtract the interest rate on cash, because a fund should at least beat that. Traders testing a strategy often set the risk-free rate to zero, and the MT5 Strategy Tester does the same. The formula then becomes average return ÷ standard deviation.
The returns can be daily, weekly or monthly. Whatever you use, the ratio comes out in that unit, so it's usually scaled to a year: multiply a monthly Sharpe by the square root of 12, or a daily one by the square root of 252 (trading days in a year). A monthly Sharpe of 0.5 is about 1.7 a year. Comparing a daily figure with an annual one is the most common mistake people make with this number.
A worked example
Say a strategy returned these percentages over 12 months: 3, −1, 2, 4, −2, 1, 2, −3, 5, 1, 0 and 2.
- Average monthly return: 14 ÷ 12 = 1.17%.
- Standard deviation of those 12 returns: 2.37%.
- Monthly Sharpe ratio, with the risk-free rate at zero: 1.17 ÷ 2.37 = 0.49.
- Annual Sharpe ratio: 0.49 × √12 (3.46) = 1.71.

In a spreadsheet, with the monthly returns in B2:B13, the formula is =AVERAGE(B2:B13)/STDEV.S(B2:B13)*SQRT(12). To include a risk-free rate, subtract the monthly rate from the average before dividing.
Why the swings matter
Here are two made-up strategies on a $10,000 account. Both average +1% a month over the year. The steady one moves between −2% and +3% a month. The choppy one swings between −7% and +9%.
- Steady: standard deviation 1.65% a month, annual Sharpe 2.10, ends at $11,252.
- Choppy: standard deviation 5.51% a month, annual Sharpe 0.63, ends at $11,084.

The choppy strategy even ends lower, because a 7% loss needs more than a 7% gain to recover. Its owner also had to sit through a fall from $11,903 to $11,084 in the last two months. The steady one is the easier strategy to keep running.
What is a good Sharpe ratio?
There's no official cut-off. For annual figures with a risk-free rate taken off, this is the usual reading:
- Below 0: the strategy returned less than cash, or lost money.
- 0 to 1: it made money, but the swings were large for what it earned.
- 1 to 2: good.
- 2 to 3: very good, and hard to keep up for years.
- Above 3: rare outside of short or flattering tests.
The MT5 testing report help gives its own scale for the tester's value: below 0 is bad, 0 to 1 means the risk does not pay off, 1 and above is good, and 3 and above is very good.

This is how we read it on an EA backtest. Below 1, the equity swings are large for what the strategy earns. Between 1 and 3, on real ticks with realistic costs, it's worth taking further. Above 3, check the test before anything else: the next section lists what usually causes it.
Why a high Sharpe ratio can mislead
Smooth until it isn't
A grid or martingale EA wins small and often while it holds losing positions open. Its balance curve rises in a near straight line, so its Sharpe ratio can look excellent right up to the month it blows the account. The standard deviation only measures the swings that already happened, and a strategy that hides its losses has had very few. Our article on grid and martingale EA risks shows how that ends.
Too few returns
A Sharpe ratio from 12 monthly returns is a rough estimate. In the worked example, changing the worst month from −3% to −6% drops the annual Sharpe from 1.71 to 1.08. Look for several years of data, or use weekly or daily returns and scale them.
Optimised settings
If you let MT5 optimise for Sharpe Ratio max, the top result is the best case for that data by design. Run the same settings on a period they were never tuned on, as in a walk-forward optimization, and read the out-of-sample Sharpe instead.
Costs that are too low
A fixed low spread or bar-based modelling makes every return a little better and smooths them out, which inflates both halves of the ratio. Our MT5 Strategy Tester guide explains which modelling mode to use.
Upside counts as risk
The standard deviation treats a big winning month the same as a big losing one. A trend strategy with a few large wins gets a lower Sharpe ratio than its losses alone would justify. The Sortino ratio fixes this by dividing by the swings below zero only, so it's worth reading the two side by side.
When we test an EA, we read the Sharpe ratio next to the profit factor, the number of trades and the maximum equity drawdown. We only compare Sharpe ratios between tests run on real ticks with the same costs.
Sharpe ratio in MT5 and MT4
- MT5 Strategy Tester: after a run, the Backtest tab lists Sharpe Ratio with Profit Factor, Recovery Factor and Expected Payoff. The help page says the risk-free rate is assumed to be zero.
- MT5 optimisation: Sharpe Ratio max is one of the optimisation criteria, and the Complex Criterion max uses it along with the number of trades, drawdown and recovery factor.
- MT4: the Strategy Tester report has no Sharpe ratio. Export the trades and work it out in a spreadsheet from monthly returns.
The help page doesn't say what period the tester's returns cover, and its values can come out much higher than annual fund figures. Compare MT5 Sharpe ratios with other MT5 tests of the same symbol and dates, and work out an annual figure yourself if you want to compare against anything else.
Sharpe ratio, profit factor and drawdown
Each one answers a different question. Profit factor compares what the winning trades made with what the losing trades cost, and ignores the order. The Sharpe ratio looks at how evenly returns arrived over time. The maximum drawdown is the worst fall you'd have sat through. A strategy is worth more of your time when all three look reasonable on the same out-of-sample test. A Monte Carlo simulation of its trades then shows how much deeper that drawdown could get. For an EA you're thinking of buying, our guide on how to judge an Expert Advisor lists the rest of the checks.
FAQ
Is a Sharpe ratio of 2 good?
As an annual figure, yes, it's in the very good range. On a backtest, check that it holds on data the settings weren't tuned on and that the test used realistic costs.
Can a Sharpe ratio be negative?
Yes. It's negative when the average return is below the risk-free rate, or below zero when the rate is set to zero. A negative Sharpe ratio means the strategy lost money, or did worse than cash, over that period.
What is the difference between the Sharpe and Sortino ratio?
The Sharpe ratio divides by the standard deviation of all returns. The Sortino ratio divides by the deviation of the negative returns only, so large winning months don't count against the strategy. For the same returns, the Sortino ratio often comes out higher.
Is a higher Sharpe ratio always better?
Between two honest tests on the same data, yes. A very high value on a short test, an optimised test or a grid EA usually means the risk hasn't shown up in the returns yet.
Keep reading: profit factor, Monte Carlo simulation, the MT5 Strategy Tester guide and how to judge an Expert Advisor.
Risk note: trading forex carries a high level of risk and may not be suitable for everyone. This article is for education only and is not financial advice.
Have a strategy you want automated?
We turn trading rules into tested Expert Advisors for MT4 and MT5. Tell us how you trade and we'll send a specification and a quote.
More articles

Monte Carlo simulation in trading: how to run and read it
What a Monte Carlo simulation does to a backtest, reshuffling vs resampling, how to run one on an MT5 trade list, a worked 200-trade example, and what it can't fix.
Read article
What is profit factor in trading? Formula and good values
How to calculate profit factor, how it links win rate and win size, what counts as a good value, four checks before you trust one, and where MT5 and MT4 show it.
Read article
ATR stop loss: how to set it and which multiplier to use
How an ATR stop loss works, how to read the ATR in MT5 and turn it into pips, which multiplier to start with, how to size the trade, and how to trail it.
Read article