Skip to content
ForexBob
Automated trading7 min read

Trading expectancy: formula, worked example and good values

The expectancy formula with a worked example in R, how spread and commission eat it on tight stops, how many trades you need, where MT5 shows it and what a good value is.

A monitor showing a scatter of trade results around a zero line, gold dots for wins above it and grey dots for losses below it, with a glowing gold line just above zero for their average.

Expectancy in trading is the average amount a strategy makes or loses per trade. Work it out as (win rate × average win) − (loss rate × average loss), or add up the results of all your trades and divide by how many there were. Above zero, the trades made money over that sample. Measured in R (multiples of the amount you risk), an expectancy under about 0.1R after costs is thin, and the number is only as reliable as the count of trades behind it.

Expectancy puts win rate and win size into one figure. It's also the figure to hold up against your trading costs, because every trade pays the spread, winner or loser.

The expectancy formula

Expectancy = (win rate × average win) − (loss rate × average loss)

The average loss goes in as a positive number. Breakeven trades count towards the total number of trades with a result of zero, so they lower both the win rate and the loss rate a little.

Averaging the results of every trade gives the same answer. The formula is handy when you only know the averages, or when you want to see what happens if the win rate or the size of the wins changes.

You can measure expectancy in money or in R. R is a trade's result divided by what it risked: a $180 win on a trade that risked $100 is +1.8R. Expectancy in R stays comparable when your balance or your risk per trade changes, which a figure in money can't do.

A worked example

Say a strategy took 50 trades: 20 winners that averaged +1.8R and 30 losers that averaged −0.95R, because some losers were closed before the stop. These are results before costs.

  • Win rate 40%, loss rate 60%.
  • Wins: 0.40 × 1.8R = 0.72R.
  • Losses: 0.60 × 0.95R = 0.57R.
  • Expectancy: 0.72R − 0.57R = +0.15R a trade.
Worked expectancy example over 50 trades: a 40% win rate times an average win of 1.8R gives 0.72R, a 60% loss rate times an average loss of 0.95R gives 0.57R, and the difference is an expectancy of +0.15R a trade.

Over 50 trades that adds up to +7.5R. At $100 risk a trade, the expectancy is $15 a trade and the total is $750. In a spreadsheet with each trade's R result in column F, =AVERAGE(F:F) gives the expectancy and =COUNTIF(F:F,">0")/COUNT(F:F) gives the win rate.

The same 50 trades have a profit factor of 36R ÷ 28.5R = 1.26. Both numbers describe one edge. Profit factor says how much the winners made for each unit the losers cost. Expectancy says what's left per trade, and that tells you how much room there is for costs.

Expectancy, win rate and risk-reward

A high win rate doesn't make the expectancy positive by itself. Winning 75% of the time with 0.3R wins and 1R losses gives 0.75 × 0.3 − 0.25 × 1 = −0.025R. Our article on risk-reward ratio vs win rate shows the break-even win rate for each risk-reward ratio.

Costs come off every trade

Spread, commission and swap are paid on every trade, so they come straight off the expectancy. To see how much, divide the cost of one trade by the stop distance. Here is the strategy above with a round-trip cost of 1.5 pips (spread plus commission):

  • 50-pip stop: the cost is 0.03R a trade, so expectancy falls to +0.12R.
  • 20-pip stop: the cost is 0.075R, leaving +0.075R.
  • 10-pip stop: the cost is 0.15R, leaving nothing.
Bar chart of the same +0.15R expectancy with a 1.5-pip cost per trade: with a 50-pip stop the cost is 0.03R and +0.12R is left, with a 20-pip stop +0.075R is left, and with a 10-pip stop the cost takes all of it.

The rules, the win rate and the R multiples are the same in all three. With the tight stop, the costs take the whole edge. A strategy with small stops needs a bigger expectancy before costs than a swing strategy does.

The way a test is modelled moves the expectancy too. Our MT5 Strategy Tester guide shows a gold scalper that made about +$0.21 a trade on one-minute bars and lost about $0.10 a trade on real ticks over the same period.

How many trades you need

An expectancy from a few dozen trades is a rough guess. The uncertainty shrinks with the square root of the number of trades, so four times as many trades halves it.

In the example, the trade results have a standard deviation of about 1.36R. A rough 95% range for the strategy's real expectancy is the measured value plus or minus 1.96 × 1.36R ÷ √(number of trades):

  • 50 trades: −0.23R to +0.53R. Anything from a losing strategy to a very strong one fits.
  • 200 trades: −0.04R to +0.34R. Zero is still inside the range.
  • 500 trades: +0.03R to +0.27R. The whole range is above zero.
Chart of rough 95% ranges for the example's real expectancy of +0.15R: from −0.23R to +0.53R after 50 trades, −0.04R to +0.34R after 200 trades, and +0.03R to +0.27R after 500 trades, the only range fully above zero.

These ranges assume each trade is independent of the last and the market keeps behaving the same way. Real trades rarely manage either, so read them as the narrowest the uncertainty could be. A Monte Carlo simulation that resamples the trade list shows the same thing from another side: how often a run of that length ends at zero or below.

What is a good expectancy?

There's no official scale. This is how we read expectancy in R on a backtest with real costs and a few hundred trades:

  • Below 0: the strategy lost money in that test.
  • 0 to 0.1R: thin. A wider spread, some slippage or a quieter market can push it below zero.
  • 0.1R to 0.3R: worth taking further, into out-of-sample tests and a demo account.
  • Above 0.3R on hundreds of trades: strong for a strategy that trades often. Check the test before you believe it, because optimised settings, costs set too low and losing trades left open all push it up.

Hold it up against the cost of one trade as well. An expectancy of 0.1R on a 50-pip stop leaves 5 pips of room a trade. The same 0.1R on a 10-pip stop leaves 1 pip.

When we test an EA, we work out expectancy in R from the deals list of a real-tick test with realistic spread and commission, then set it next to the cost of one trade. If a slightly wider spread would take most of it, we don't take the EA further, whatever its win rate.

Per trade or per month

Expectancy is per trade, so a strategy that trades often can make more with a smaller edge. One with +0.5R that trades 4 times a month makes about 2R a month. One with +0.15R that trades 30 times a month makes about 4.5R. The second pays costs 30 times, though, so compare the two only after costs.

Expected Payoff in MT5 and MT4

MetaTrader doesn't use the word expectancy. It reports Expected Payoff, which is the same idea in money.

  • MT5 Strategy Tester: Expected Payoff is on the Backtest tab, next to Profit Factor and Sharpe Ratio. The MT5 testing report help describes it as "the average return of one deal", in the account currency. That's the total net profit divided by the number of trades.
  • MT4 Strategy Tester: Expected payoff is on the Report tab, also in money.
  • To turn it into R, divide by the amount each trade risked. That only works if every trade risked the same amount. An EA that trades a fixed lot with stops of different sizes risks a different amount each time, so work out R for each trade from the deals list instead.
  • Your own trades: average the R column of your trading journal.

Doubling the lot size doubles Expected Payoff without changing the strategy at all. Compare it only between tests with the same deposit and the same position sizing.

When expectancy misleads

Losing trades left open

Expectancy counts closed trades, like profit factor. A grid or martingale EA that closes its winners quickly and holds its losers open shows a positive expectancy right up to the day the basket it has been holding closes at a loss. Our article on grid and martingale EA risks explains how that happens.

One trade carries the average

An average is easily pulled by a single large result. Take out the best trade and work the expectancy out again. If one news spike made most of the profit, the figure without it is the one to plan with.

Settings tuned on the same data

Settings optimised on a period give their best expectancy on that period. Compare it with the out-of-sample result from a walk-forward optimization, and plan with the lower number.

FAQ

What is a good expectancy in trading?

In R and after costs, an expectancy above about 0.1R a trade over a few hundred trades is worth testing further. Below that, a small rise in costs can wipe it out. A high value from a few dozen trades doesn't tell you much yet.

What does negative expectancy mean?

The trades lost money on average over that sample. Trading more often or with bigger positions makes a negative expectancy lose faster. Changing the position size doesn't make it positive.

Is Expected Payoff the same as expectancy?

Yes, measured in money. MT5's Expected Payoff is the average result per trade in the account currency. Divide it by the risk per trade to get expectancy in R, as long as the risk was the same on every trade.

How many trades do you need to measure expectancy?

A few hundred at least. In the example above, 50 trades leave a range from −0.23R to +0.53R, and 500 trades narrow it to +0.03R to +0.27R. The more the results vary from one trade to the next, the more trades you need.

Keep reading: profit factor, risk-reward ratio vs win rate, Monte Carlo simulation and the MT5 Strategy Tester guide.

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.