Expected Payoff: The Core Metric for Forex EA Performance
Learn why Expected Payoff is a vital measure for assessing the average profitability of Forex Expert Advisors per trade.
Average Profitability
Measure profit or loss per trade on average
Edge Assessment
Confirm whether an EA has a genuine trading edge
EA Comparison
Compare multiple EAs on a like-for-like basis
The Formula
A positive Expected Payoff means the EA generates profit on average per trade
Why Expected Payoff Is Essential for Forex EA Evaluation
When evaluating Forex Expert Advisors (EAs), metrics like win rate or profit factor only tell part of the story. Expected Payoff (EP) — sometimes called expected value per trade — combines both the frequency and magnitude of wins and losses into a single, powerful number. It tells you, on average, how much an EA earns or loses per closed trade, making it one of the most direct measures of a strategy's true edge.
What Is Expected Payoff?
Expected Payoff is the average monetary result per trade, expressed in the account's base currency or in pips. It answers the fundamental question every trader should ask: "If I run this EA 1,000 times, what do I expect to make or lose on each trade?" A positive EP confirms the EA has a mathematical edge; a negative or zero EP means the strategy is losing or breaking even before costs.
The Expected Payoff Formula:
Win Rate
Proportion of trades that close in profit (e.g., 0.55 for 55%)
Avg Win
Average profit amount on winning trades
Loss Rate
Proportion of trades that close at a loss (= 1 − Win Rate)
Avg Loss
Average loss amount on losing trades (use absolute value)
Result: A positive EP (e.g., $12.50) means the EA earns that amount on average per trade. A negative EP signals a losing strategy.
5 Reasons Expected Payoff Is Critical for EA Evaluation
1. Confirms a Genuine Trading Edge
A high win rate alone is meaningless if losses are disproportionately large. Expected Payoff ties win rate to trade size, confirming whether an EA truly has an edge after accounting for the cost of its losing trades.
Example: EA A has a 70% win rate but an average win of $20 and average loss of $80. EP = (0.70 × $20) − (0.30 × $80) = $14 − $24 = −$10. Despite a high win rate, it loses money on every trade.
2. Accounts for Risk-Reward Ratio
Expected Payoff naturally incorporates risk-reward dynamics. An EA with a lower win rate but a high average win relative to average loss can still produce a strong positive EP, revealing strategies that are profitable despite losing more often than they win.
Example: EA B wins only 40% of trades, but avg win = $150 and avg loss = $50. EP = (0.40 × $150) − (0.60 × $50) = $60 − $30 = +$30. A low win rate, yet highly profitable per trade.
3. Enables Direct EA-to-EA Comparison
Because Expected Payoff is expressed in consistent monetary units, it allows you to compare EAs with very different trading styles — scalpers, swing traders, or trend-followers — on equal footing. The EA with the higher EP per trade is objectively more efficient.
4. Flags Strategies Eaten by Spread and Commission
A marginally positive EP before costs can quickly turn negative once spread, commission, and slippage are factored in. Calculating EP with realistic costs exposes EAs whose theoretical edge evaporates in live conditions.
5. Scales Linearly with Trade Frequency
Expected Payoff scales predictably: multiply EP by the number of trades per month to estimate expected monthly profit. This makes it a powerful planning tool for position sizing, compounding projections, and portfolio allocation across multiple EAs.
Calculating Expected Payoff in MQL5
Here's an MQL5 example to calculate and interpret Expected Payoff directly from an EA's trade history:
double CalculateExpectedPayoff()
{
int totalTrades = OrdersHistoryTotal();
int wins = 0, losses = 0;
double totalWinAmount = 0.0, totalLossAmount = 0.0;
for(int i = 0; i < totalTrades; i++)
{
if(OrderSelect(i, SELECT_BY_POS, MODE_HISTORY))
{
if(OrderType() <= OP_SELL && OrderCloseTime() > 0)
{
double profit = OrderProfit() + OrderSwap() + OrderCommission();
if(profit > 0)
{
wins++;
totalWinAmount += profit;
}
else if(profit < 0)
{
losses++;
totalLossAmount += MathAbs(profit);
}
}
}
}
int totalClosed = wins + losses;
if(totalClosed == 0) return 0.0;
double winRate = (double)wins / totalClosed;
double lossRate = (double)losses / totalClosed;
double avgWin = (wins > 0) ? totalWinAmount / wins : 0.0;
double avgLoss = (losses > 0) ? totalLossAmount / losses : 0.0;
return (winRate * avgWin) - (lossRate * avgLoss);
}
void OnStart()
{
double ep = CalculateExpectedPayoff();
Print("Expected Payoff: $", DoubleToString(ep, 2), " per trade");
string interpretation = "";
if(ep > 20) interpretation = "Excellent edge — strong positive EP";
else if(ep > 5) interpretation = "Good edge — consistently profitable";
else if(ep > 0) interpretation = "Marginal edge — monitor costs carefully";
else if(ep == 0) interpretation = "Break-even — no edge detected";
else interpretation = "Negative EP — losing strategy";
Print("Interpretation: ", interpretation);
}
Interpreting Expected Payoff Values
| Expected Payoff (per trade) | Interpretation | Recommendation |
|---|---|---|
| EP < 0 | Losing strategy | Avoid; no edge present |
| EP = 0 | Break-even | Costs will make it negative |
| 0 < EP ≤ $5 | Marginal edge | Use with caution; review costs |
| $5 < EP ≤ $20 | Good edge | Consider for live trading |
| EP > $20 | Strong edge | Strong candidate for deployment |
Note that EP thresholds are relative to lot size and account denomination. Always normalise EP by comparing it against average trade risk (e.g., EP as a percentage of average stop-loss) for a fair cross-EA comparison.
Practical Application in EA Selection
Use Expected Payoff as a core screening step when evaluating any EA:
- Calculate EP before anything else — Confirm a positive EP exists before examining other metrics like drawdown or Sharpe ratio.
- Include all trade costs — Factor in spread, commission, and swap to get a realistic net EP figure.
- Validate with sufficient sample size — EP is only reliable with at least 100 trades (see our Sample Size lesson); small samples produce misleading EP values.
- Track EP stability over time — A shrinking EP over successive periods may indicate curve-fitting or changing market conditions.
- Combine with profit factor — Use EP alongside Profit Factor to get a complete view of both per-trade profitability and overall return-to-risk efficiency.
Key Takeaways
-
Expected Payoff measures the average profit or loss per trade, confirming whether an EA has a real edge
-
A high win rate does not guarantee a positive EP — average win and loss sizes matter equally
-
Always calculate EP including spread, commission, and swap for a realistic net figure
-
EP scales with trade frequency — multiply by monthly trade count to project expected monthly returns
-
Use Expected Payoff as the first filter in EA screening, before evaluating any other performance metric
Expected Payoff vs. Other Key Metrics
Expected Payoff does not exist in isolation. Understanding how it relates to — and differs from — other EA performance metrics helps you build a complete, multi-dimensional evaluation framework.
Accounts for both frequency and magnitude of wins and losses. An EA winning 40% of the time can still have a high positive EP if its wins are large relative to its losses.
Measures only how often the EA wins, ignoring trade size. A 90% win rate is meaningless if the 10% of losses wipe out all gains.
✓ Verdict: EP is superior to win rate alone — always use them together.
Expressed in currency units per trade. Scales linearly with trade count, making it ideal for projecting monthly or annual returns.
A ratio of gross profit to gross loss (e.g., 1.8). Unitless and good for comparing strategies, but tells you nothing about the dollar value of each trade.
✓ Verdict: Use Profit Factor for cross-strategy comparison; use EP for income projection.
Simple and intuitive — directly tells you average profit per trade without requiring complex statistical knowledge to interpret.
Measures risk-adjusted return, penalising volatility in the equity curve. More sophisticated but harder to compute and interpret without statistical background.
✓ Verdict: Start with EP for a fast sanity check; graduate to Sharpe Ratio for deeper risk analysis.
A forward-looking profitability measure. Tells you what the EA earns on average, helping you estimate how quickly it recovers from losing streaks.
A backward-looking risk measure. Reveals the worst peak-to-trough loss, which is critical for position sizing and account survival — but says nothing about profitability.
✓ Verdict: High EP + Low Drawdown = ideal combination. Never evaluate one without the other.
Expected Payoff Calculator
Enter your EA's performance data below to instantly calculate its Expected Payoff and receive an automated interpretation of the results.
Your EA's Data
Percentage of trades that close in profit
Average profit on winning trades
Average loss on losing trades (enter as positive number)
Used to project monthly expected profit
Results
Enter your data on the left to see results
Expected Payoff Across EA Trading Styles
Different EA trading styles naturally produce different EP profiles. Understanding what a "good" EP looks like for each style prevents you from rejecting a perfectly sound EA — or accepting a flawed one — based on mismatched benchmarks.
Scalpers
Dozens to hundreds of trades per day. Very small EP per trade is expected and acceptable.
Typical EP range: $0.50 – $5 per trade
High trade frequency means small EP compounds rapidly. Spread and commission have an outsized impact — always net EP after costs.
Day Traders
A handful of trades per session, targeting intraday moves of 20–80 pips.
Typical EP range: $5 – $25 per trade
A balanced mix of trade frequency and per-trade profitability. EP stability across both trending and ranging days is key.
Swing Traders
Trades held for days to weeks, targeting larger multi-day moves. Fewer trades, higher EP per trade.
Typical EP range: $25 – $100+ per trade
Low trade frequency demands a higher EP per trade to generate meaningful monthly returns. Swap costs matter here.
Grid / Martingale EAs
May show very high apparent EP in backtests due to frequent small wins masking rare catastrophic losses.
Warning: EP figures for these strategies can be highly misleading
Always check EP alongside maximum drawdown and longest losing streak. A single outlier loss can eliminate months of positive EP.
Common Mistakes When Using Expected Payoff
Even experienced traders misuse Expected Payoff in ways that lead to poor EA selection decisions. Here are the most frequent mistakes — and how to avoid them.
Calculating EP Before Costs
Using gross profit and loss figures without deducting spread, commission, and swap. This inflates EP, especially for high-frequency scalpers where costs can consume 30–60% of gross profits.
❌ Wrong: EP = (0.55 × $30) − (0.45 × $20) = $7.50 (gross, before $4 round-trip cost)
✅ Right: EP = (0.55 × $26) − (0.45 × $24) = $3.50 (net after costs — a very different picture)
Using Too Small a Sample Size
Calculating EP from fewer than 50 trades. A lucky streak of 10–20 large wins can produce a spectacular EP that completely collapses with more data. EP requires at least 100 trades to be meaningful.
⚠️ Rule of thumb: Always pair EP with sample size. An EP of $50 from 15 trades is essentially worthless data.
Comparing EP Across Different Lot Sizes
An EA trading 0.5 lots will naturally show double the dollar EP of the same strategy trading 0.25 lots. Comparing raw EP figures between EAs without normalising for lot size leads to misleading rankings.
✅ Fix: Normalise EP by dividing by lot size (EP per 0.01 lot), or compare EP as a percentage of average trade risk.
Treating EP as a Static Figure
Calculating EP once from a full backtest history and assuming it's permanent. EP degrades over time as market conditions change. An EA that showed a $20 EP in 2021 trending markets may show a $3 EP in 2024 ranging conditions.
✅ Fix: Calculate EP for rolling 3-month windows and track the trend. Declining EP is an early warning signal to re-evaluate or pause the EA.
Ignoring EP During Drawdown Periods
Abandoning an EA during a drawdown without checking whether its EP has actually deteriorated. A temporary losing streak in an EA with a stable, positive EP is statistically normal and expected — not a sign the strategy has failed.
✅ Fix: Calculate EP separately for the drawdown period. If it remains positive and consistent with historical EP, stay the course.
Using EP in Isolation
Approving an EA for live trading based solely on a strong EP without reviewing drawdown, profit factor, or equity curve shape. A high EP with an 80% drawdown is not deployable regardless of how profitable each trade looks on average.
✅ Fix: Use EP as the first filter, then validate with at least three additional metrics before committing real capital.
Real-World Case Studies
The following three hypothetical EA profiles illustrate how Expected Payoff analysis can lead to very different conclusions than headline metrics like win rate alone.
Case Study 1: The Deceptive High Win Rate EA
AVOIDWin Rate
82%
Avg Win
$18
Avg Loss
$95
Expected Payoff
−$2.34
An 82% win rate sounds extraordinary. But the math is damning: EP = (0.82 × $18) − (0.18 × $95) = $14.76 − $17.10 = −$2.34 per trade. This EA loses money on every trade on average, despite winning the majority of the time. This pattern is characteristic of grid or martingale strategies that let losses run far beyond their wins.
Lesson: Win rate without EP analysis hides catastrophic risk-reward imbalances. This EA would likely have been sold as "82% win rate!" with no mention of the average loss size.
Case Study 2: The Underrated Low Win Rate EA
STRONG BUYWin Rate
38%
Avg Win
$210
Avg Loss
$55
Expected Payoff
+$45.70
A 38% win rate would cause most traders to reject this EA immediately. Yet the EP calculation tells a completely different story: EP = (0.38 × $210) − (0.62 × $55) = $79.80 − $34.10 = +$45.70 per trade. This is a strongly profitable trend-following EA with an excellent 3.8:1 reward-to-risk ratio. The wins are rare but large; the losses are frequent but small and controlled.
Lesson: Traders who filter by win rate alone would miss this strong performer. EP reveals the true edge that a headline win rate conceals.
Case Study 3: The Spread-Sensitive Scalper
BROKER DEPENDENTBroker A — Tight Spread (0.2 pip)
Avg Win (net)
$12.40
EP (net)
+$4.20
Broker B — Wide Spread (1.8 pip)
Avg Win (net)
$7.60
EP (net)
−$0.40
The exact same scalping EA produces a marginally profitable +$4.20 EP on Broker A but a losing −$0.40 EP on Broker B — solely due to the difference in spread. The strategy's edge is entirely broker-dependent at this profit target size.
Lesson: For scalping EAs, always calculate net EP under your actual broker's conditions. An impressive backtest EP may assume unrealistically tight spreads that don't match live trading.
Frequently Asked Questions
Answers to the most common questions traders ask when first learning to apply Expected Payoff to EA evaluation.
Expected Payoff Quick Reference
Everything you need to remember, at a glance.
📐 The Formula
EP = (WR × Avg Win) − (LR × Avg Loss)
- WR = Win Rate (as decimal, e.g. 0.55)
- LR = Loss Rate = 1 − WR
- Avg Win and Avg Loss in same currency
- Always use NET figures (after costs)
🎯 Benchmarks
- EP < 0Losing — avoid
- EP = 0Break-even — costs will hurt
- 0–$5Marginal — review carefully
- $5–$20Good — consider live trading
- >$20Strong — solid candidate
✅ EP Evaluation Checklist
- ☑ Calculate EP net of all costs
- ☑ Verify 100+ trade sample size
- ☑ Normalise by lot size for comparison
- ☑ Check EP stability across rolling windows
- ☑ Match EP benchmark to trading style
- ☑ Combine with drawdown and profit factor
- ☑ Validate backtest EP with forward test
⚠️ Top Mistakes to Avoid
- ✗ Using gross EP before broker costs
- ✗ Trusting EP from fewer than 50 trades
- ✗ Comparing EP across different lot sizes
- ✗ Treating EP as permanent (re-check regularly)
- ✗ Using EP in isolation without drawdown check
- ✗ Ignoring EP on high-win-rate strategies