What trading math is and why it matters
Trading math is the small set of formulas that tell you three things:
- Can this strategy make money over time? (expectancy)
- How bad can the bad runs get? (losing streaks and drawdowns)
- How big should each position be? (position sizing)
None of it predicts the next trade. Gold can do anything on any single trade. Trading math works across a series of trades, which is why it is the foundation of risk management and backtesting.
All examples on this page are hypothetical. Gold prices are illustrative, in the 4,000 to 4,250 range. Win rates and payoffs are chosen to demonstrate the math, not to describe any real strategy.
How it applies to gold (XAUUSD)
A few gold-specific points shape the math:
- Contract size. On most brokers 1 lot = 100 oz, so a $1 move equals $100 per lot and $1 per 0.01 lot. See XAUUSD pip value explained.
- Wide stops are normal. Gold’s intraday ranges mean stops of $5 to $15 are common on intraday timeframes, and larger on swing trades. Position size must shrink as stop distance grows.
- Costs in R. A spread of $0.30 on a $5 stop costs 0.06R per trade. On a $15 stop it costs 0.02R. Short stops make costs a much larger share of every trade.
- Slippage around news. US data at 8:30 New York time can push losses beyond −1R. Your real average loss may be −1.1R or worse if you trade near releases.
- Gaps. Gold reopens Sunday at 18:00 New York time and can gap past stops. Swing traders should expect occasional losses larger than planned.
R-multiples: the common language
An R-multiple is a trade’s profit or loss divided by the amount risked at entry (1R).
| Trade | Risk (1R) | Result in $ | R-multiple |
|---|---|---|---|
| A | $50 | +$100 | +2.0R |
| B | $50 | −$50 | −1.0R |
| C | $80 | +$40 | +0.5R |
| D | $80 | −$96 | −1.2R (slippage) |
| E | $100 | +$310 | +3.1R |
Why traders use R:
- It removes account size from the picture, so you can compare strategies fairly.
- It shows whether you respect stops. If your average loss is −1.4R, something is wrong with execution.
- It makes expectancy simple to calculate.
Win rate vs reward to risk: the breakeven table
Reward to risk (R:R) compares your average win to your average loss. The breakeven win rate is the win rate at which you neither make nor lose money before costs:
Breakeven win rate = 1 ÷ (1 + R:R)
| Average win : average loss | Breakeven win rate (before costs) |
|---|---|
| 0.5 : 1 | 66.7% |
| 1 : 1 | 50.0% |
| 1.5 : 1 | 40.0% |
| 2 : 1 | 33.3% |
| 2.5 : 1 | 28.6% |
| 3 : 1 | 25.0% |
| 4 : 1 | 20.0% |
| 5 : 1 | 16.7% |
Neither a high win rate nor a high R:R is “better” on its own. What matters is the combination. A 30% win rate at 3:1 beats a 60% win rate at 0.6:1.
On gold, far targets are reached less often. When you widen targets, your win rate usually falls. Test the trade-off rather than assuming a bigger R:R is automatically better.
The expectancy formula
Expectancy is the average result per trade over many trades:
Expectancy (R) = (Win rate × Average win in R) − (Loss rate × Average loss in R)
Loss rate = 1 − win rate. Use positive numbers for average loss in this formula.
Three hypothetical strategies
| Strategy | Win rate | Avg win | Avg loss | Calculation | Expectancy |
|---|---|---|---|---|---|
| A: trend pullback | 40% | 2.0R | 1.0R | (0.40 × 2.0) − (0.60 × 1.0) | +0.20R |
| B: scalping | 65% | 0.6R | 1.0R | (0.65 × 0.6) − (0.35 × 1.0) | +0.04R |
| C: “high win rate” | 55% | 0.8R | 1.2R | (0.55 × 0.8) − (0.45 × 1.2) | −0.10R |
Strategy C wins more often than A but loses money. Strategy B is barely positive, so costs could easily turn it negative.
Adding costs
Subtract average costs per trade in R. Suppose Strategy B uses a $4 stop and the round-trip spread plus commission costs $0.35:
- Cost per trade = $0.35 ÷ $4 = 0.0875R, about 0.09R.
- Expectancy after costs = 0.04R − 0.09R = −0.05R.
The strategy that looked profitable now loses money. This is common with tight-stop gold scalping, which is why cost modeling matters. See order types and execution for how spreads behave.
From R to dollars
Expected profit = Expectancy (R) × Number of trades × Risk per trade ($)
At +0.20R per trade, 100 trades and $50 risk per trade, the average expectation is 0.20 × 100 × $50 = $1,000. Real results will vary around that figure, sometimes widely.
Losing streaks: what normal looks like
Even a profitable strategy has long losing streaks. The table shows the probability that a strategy experiences at least one losing streak of the given length somewhere in 200 trades. It assumes each trade is independent with a fixed win rate, which real trading only approximates.
| Win rate | At least 5 losses in a row | At least 6 | At least 8 | At least 10 |
|---|---|---|---|---|
| 40% | ~99.9% | ~98.5% | ~75% | ~38% |
| 50% | ~96.6% | ~80% | ~32% | ~9% |
| 60% | ~71% | ~39% | ~7% | ~1% |
These are calculated probabilities from the stated assumptions, not observed results. The lesson: with a 40% win rate, an 8-trade losing streak over 200 trades is more likely than not. Plan for it before it happens. See trading psychology for how to handle streaks.
Drawdown recovery: why losses hurt more than gains help
A drawdown is a fall from an equity peak. Recovering requires a larger percentage gain than the loss, because you grow a smaller balance:
Gain needed to recover = Loss ÷ (1 − Loss)
| Drawdown | Gain needed to recover |
|---|---|
| −5% | +5.3% |
| −10% | +11.1% |
| −15% | +17.6% |
| −20% | +25.0% |
| −25% | +33.3% |
| −30% | +42.9% |
| −40% | +66.7% |
| −50% | +100% |
| −60% | +150% |
| −75% | +300% |
| −90% | +900% |
Small drawdowns are easy to recover from. Large ones become extremely hard. This asymmetry is the core argument for small risk per trade.
Risk of ruin: the intuition
Risk of ruin is the chance of losing so much that you cannot continue, or of hitting a drawdown you define as unacceptable. Exact formulas exist but depend on assumptions that rarely hold perfectly. The intuition is enough:
- Risk of ruin rises sharply as risk per trade increases.
- It falls as expectancy rises.
- Even a positive-expectancy strategy can be ruined by oversizing.
This table shows how many consecutive full losses take you to a given drawdown at a fixed percentage risk (with size recalculated after each loss):
| Risk per trade | Drawdown after 10 straight losses | Losses to reach −20% | Losses to reach −50% |
|---|---|---|---|
| 0.5% | −4.9% | 45 | 139 |
| 1% | −9.6% | 23 | 69 |
| 2% | −18.3% | 12 | 35 |
| 5% | −40.1% | 5 | 14 |
At 5% per trade, a single ordinary losing streak can take away 40% of the account. At 0.5% to 1%, the same streak is unpleasant but survivable.
Risk percentages on this page are examples for learning, not recommendations. Prop firm accounts often have daily and overall loss limits that make even 2% per trade dangerous. See prop firm gold trading.
Position sizing: fixed fractional
Fixed fractional sizing risks the same percentage of current equity on every trade. Size shrinks after losses and grows after wins.
Position size (lots) = (Account × Risk %) ÷ (Stop distance in $ × $100 per lot)
The $100 per lot figure assumes 1 lot = 100 oz. Check your broker’s contract specification.
Step by step
- Decide your stop from the chart, where the idea is invalid.
- Measure the stop distance in dollars.
- Calculate dollar risk = account × risk %.
- Divide dollar risk by (stop distance × 100).
- Round down to your broker’s lot step.
| Account | Risk % | $ risk | Stop | Raw size | Rounded down |
|---|---|---|---|---|---|
| $5,000 | 1% | $50 | $5 | 0.10 | 0.10 lots |
| $10,000 | 1% | $100 | $8 | 0.125 | 0.12 lots |
| $25,000 | 0.75% | $187.50 | $7.50 | 0.25 | 0.25 lots |
| $50,000 | 0.5% | $250 | $12 | 0.208 | 0.20 lots |
Use the position size calculator to avoid arithmetic mistakes. For small accounts, see XAUUSD lot size for small accounts.
Compounding
With fixed fractional sizing, gains compound. If expectancy is +0.20R and risk is 1%, the average gain per trade is about 0.2% of equity. Over 100 trades, 1.002 raised to the power 100 is about 1.22, so roughly +22% on average.
Two important caveats:
- Real results vary around the average. The order of wins and losses changes the path.
- Volatility drag means a choppy path compounds to less than a smooth one with the same average.
Measuring your own numbers
Every formula on this page needs inputs, and the only inputs that matter are your own. Here is how to collect them from your trading journal:
- Record 1R at entry. Write the dollar risk before the trade opens, based on entry, stop and size.
- Record the result in R. Divide the dollar result by 1R. Include spread, commission and swap.
- Tag each trade. Setup type, session (for example London or New York) and whether you followed your rules.
- Calculate in batches. Every 20 to 30 trades, update win rate, average win, average loss and expectancy.
- Compare by tag. Expectancy by setup and by session usually tells you more than the overall figure.
| Tag | Trades | Win rate | Avg win | Avg loss | Expectancy |
|---|---|---|---|---|---|
| London pullback | 40 | 45% | 1.9R | 1.0R | +0.31R |
| New York breakout | 35 | 37% | 2.2R | 1.1R | +0.12R |
| Asian range fade | 25 | 52% | 0.9R | 1.0R | −0.01R |
The figures in this table are hypothetical, to show the layout. In this example the trader might drop the Asian range fade, which is roughly breakeven before considering that the sample is small. With 25 trades, though, none of these numbers is reliable yet. Keep collecting before making big changes.
Expectancy per unit of time
A strategy with +0.3R expectancy that trades twice a month may earn less than one with +0.1R that trades three times a week. Multiply expectancy by your average number of trades per month to compare them. Then check that the busier strategy does not raise costs, fatigue or rule-breaking enough to cancel the difference.
Variations: from beginner to pro
Beginner: measure every trade in R. Use fixed fractional sizing at a small fixed risk. Learn the breakeven table and the drawdown table.
Intermediate: calculate expectancy from at least 100 logged trades. Include costs in R. Check whether your average loss stays close to −1R.
Experienced: run Monte Carlo shuffles of your R results to estimate drawdown ranges. Use reduced risk during drawdowns. Look at the distribution of R, not just the averages; a few large winners often drive gold trend strategies.
The Kelly criterion, with caution
The Kelly criterion gives the fraction of capital that maximizes long-run growth if you know your edge exactly:
Kelly % = W − (1 − W) ÷ R
where W is win rate and R is average win ÷ average loss.
A hypothetical strategy wins 45% of the time with average win 2R and average loss 1R. Kelly = 0.45 − (0.55 ÷ 2) = 0.45 − 0.275 = 0.175, or 17.5% per trade. Half Kelly = 8.75%. Quarter Kelly = about 4.4%.
Even quarter Kelly here is far larger than most traders risk. Why the caution?
- You never know your true win rate and payoff. Estimates from 100 trades carry wide uncertainty.
- Overestimating your edge leads to overbetting, which can be ruinous.
- Full Kelly produces very deep drawdowns even when the inputs are correct.
- Gold’s gaps and slippage create losses larger than −1R.
Many traders treat Kelly as an upper limit to stay far below, not a target.
Worked example (hypothetical)
A trader has a $20,000 account and risks 0.5% per trade ($100). The strategy’s logged history over 150 trades shows: win rate 42%, average win 2.1R, average loss 1.05R (slippage included), average costs 0.04R.
Expectancy: (0.42 × 2.1) − (0.58 × 1.05) − 0.04 = 0.882 − 0.609 − 0.04 = +0.233R per trade.
Trade plan: gold pulls back to 4,152 inside an H1 uptrend. Entry 4,152, stop 4,145 below the swing low plus a buffer ($7). Size = $100 ÷ ($7 × $100) = 0.142 lots, rounded down to 0.14 lots. Real risk = 0.14 × $7 × 100 = $98. Target 4,166.70 (2.1R, $14.70 away).
Streak planning: at a 42% win rate, the trader expects losing streaks of 8 or more are reasonably likely over a few hundred trades. Eight losses at 0.5% compounding is about −3.9%, which needs about +4.1% to recover. The trader accepts this.
Expected result over 100 trades: 0.233 × 100 × $100 ≈ $2,330 on average, before considering the variation around it. Not a forecast.
Combining it with other concepts
- Use these formulas to evaluate backtests.
- Apply sizing rules from XAUUSD risk management.
- Use streak expectations to prepare mentally; see trading psychology.
- Fit risk per trade to evaluation limits in prop firm gold trading.
- Volatility-based stops from ATR and Bollinger Bands feed directly into the sizing formula.
Best timeframes and sessions
The math is the same on every timeframe, but inputs change:
| Timeframe | Typical stop size | Cost impact in R | Note |
|---|---|---|---|
| M1 to M5 | Small | High | Costs can erase thin edges |
| M15 to H1 | Moderate | Moderate | Common balance for intraday |
| H4 to daily | Large | Low | Smaller size; gap and swap risk |
Costs also vary by session. Spreads are usually tighter during London (about 03:00 to 11:00 New York time) and New York hours than around the 17:00 New York daily break and in the Asian session.
Common mistakes
- Judging a strategy by win rate alone. Fix: calculate expectancy.
- Ignoring costs. Fix: subtract average costs in R.
- Using a fixed lot size. Fix: size from the stop every time.
- Underestimating losing streaks. Fix: use the streak table and plan for them.
- Risking too much to “recover faster”. Fix: remember the drawdown table.
- Trusting Kelly with small samples. Fix: use a small fraction or a fixed percentage.
- Rounding size up. Fix: always round down.
Limitations and honest caveats
- These formulas assume trades are independent and conditions stable. Real markets cluster wins and losses, and gold’s regimes shift.
- Your measured win rate and average R are estimates with uncertainty, especially from small samples.
- Slippage and gaps mean real losses can exceed planned risk.
- Positive expectancy in the past does not guarantee positive expectancy in the future.
- This page is general education, not personal financial advice.
Pro tips
- Track your average loss in R. If it drifts beyond −1.1R, investigate stop discipline or news exposure.
- Look at median R as well as the mean. If a few big wins carry the whole result, missing one of them changes everything.
- Calculate cost-adjusted breakeven. Subtract costs from wins and add them to losses. With 2:1 and 0.1R costs, the effective payoff is 1.9R vs 1.1R, so breakeven rises from 33.3% to about 36.7%.
- Simulate before you scale. Shuffle your last 100 R results many times to see the range of possible drawdowns.
- Reduce risk in drawdowns, not after recovery. It slows losses when your edge may be weaker.
- Keep sizing rules boring. Most account blowups come from sizing errors, not bad analysis.
Quick checklist
- I record every trade in R.
- I know my strategy’s win rate, average win and average loss.
- I calculate expectancy after costs.
- I know the breakeven win rate for my R:R.
- I have planned for the losing streaks my win rate implies.
- I size every trade from the stop with fixed fractional sizing.
- I round position size down.
- I understand how much gain is needed to recover my maximum acceptable drawdown.
- I treat Kelly as a ceiling, not a target.
Frequently asked questions
What is expectancy in trading?
Expectancy is the average amount you can expect to win or lose per trade over many trades. In R terms it equals (win rate × average win) minus (loss rate × average loss). A positive expectancy after costs is the basic requirement for a strategy to be worth trading.
What win rate do I need with a 2:1 reward to risk?
If every win is exactly 2R and every loss is exactly 1R, the breakeven win rate is 1 ÷ (1 + 2), or about 33.3%. Anything above that is profitable before costs. Spreads, commissions and slippage push the real breakeven a little higher.
What is an R-multiple?
An R-multiple expresses a trade’s result as a multiple of the amount you risked. If you risk $50 and make $150, that trade is +3R; if you lose $50, it is −1R. Using R lets you compare trades and strategies regardless of account size or lot size.
How much do I need to gain to recover a 50% loss?
You need a 100% gain to recover a 50% loss, because you are growing a smaller balance. A 10% loss needs about 11.1%, a 20% loss needs 25% and a 30% loss needs about 42.9%. This is why limiting drawdowns matters so much.
Should I use the Kelly criterion for gold trading?
Kelly is a useful theoretical idea but risky in practice, because it assumes you know your true win rate and payoff exactly. Small errors in those estimates can lead to severe overbetting. Traders who use it typically take a small fraction of the Kelly figure, and many prefer a simple fixed percentage.
What is risk of ruin?
Risk of ruin is the probability of losing enough of your account that you can no longer trade or hit a level you define as unacceptable. It rises sharply with larger risk per trade and lower expectancy. Keeping risk per trade small is the most direct way to reduce it.
Sources and further reading
- CME Group — Gold futures overview — Contract specifications and trading hours for COMEX gold
- CFTC — Commitments of Traders — Weekly futures positioning, including gold
- Investor.gov — Stop order — How stop orders work, and their limits in fast markets
External sites are independent of XAUUSD Global. Check dates and data yourself.