Comparing Position-Sizing Models for an EA: Same Trades, Different Risk

Two copies of the same EA can take exactly the same trades, at the same prices, and still have very different drawdowns. The only difference is how each one decides how many lots to trade.

Position sizing is usually set once, early, and then forgotten. A fixed lot size goes into the first backtest, or a "risk 1% per trade" input, and every later test inherits it. Yet the sizing model shapes how deep the drawdowns go, how much a losing streak costs, and how sensitive the result is to the order in which trades arrive.

This guide treats sizing as its own experiment. You freeze the trade list, replay it under several sizing models, apply the broker's volume limits, and compare the models on risk, not on the final balance.

One point up front: a sizing model cannot turn a losing set of trades into a winning one. It changes how the same results are spread over time and how much each loss costs. If the trades have no edge, every sizing model just loses at a different speed.

The sizing models worth comparing

Most EAs use one of a handful of models. Each one answers the question "how many lots?" differently.

ModelHow it sets the lot sizeWhat it does to risk per trade
Fixed lotThe same lots on every tradeVaries with the stop distance; wide-stop trades risk more
Fixed cash riskLots chosen so a stop-out loses the same amount of money, based on the starting balanceConstant in money; grows as a share of equity in a drawdown
Fixed fractionalLots chosen so a stop-out loses a set fraction of current equityConstant as a share of equity; shrinks in money during a drawdown
Volatility-scaledLots scaled down when volatility (for example ATR) is highDepends on how the stop is set; see below
Capped or steppedAny of the above, with a maximum lot size or risk changed only in stepsLimits how far size can drift from the tested range

Two points often get missed. First, if the stop is already set from volatility, such as a multiple of ATR, then fixed fractional sizing is already volatility-scaled: a wider stop means fewer lots for the same risk. Adding a separate volatility adjustment on top changes the risk per trade, so test it as a different model. Second, models that increase size after a loss, such as martingale or averaging into a losing grid, are a separate class. A replay only shows their risk if the trade list contains a long enough losing streak, so they need the worst-case streak tested on purpose, not just the history.

Step 1: Get a trade list measured in R

To swap sizing models, you need each trade's result independent of the lots it was traded with. The standard unit is R: the trade's result divided by the amount it would have lost at its initial stop. A trade that hits its stop is −1R. A trade that makes twice its initial risk is +2R.

For each trade, record two numbers:

  • The result in R.
  • The risk at 1.0 lot: the stop distance multiplied by the value of one point per lot, in account currency. This is what lets you convert any lot size back into money.

If the EA has no fixed stop, define a risk unit before you start, such as the distance to a time-based or indicator-based exit, and write it down. Without a consistent risk unit, the comparison has nothing to hold constant.

Step 2: Freeze the trades and replay each model

The rules, the entries, the exits and the trade order stay exactly as they were. Only the lot size changes. That way, any difference between the models comes from sizing alone.

import numpy as np

def lots_for(model, equity, start, risk_1lot, p):
    """Lot size one sizing model asks for. risk_1lot is the money lost at
    the stop on 1.0 lot (stop distance x value per point at 1 lot)."""
    if model == "fixed_lot":
        lots = p["lots"]
    elif model == "fixed_cash":       # same money at risk on every trade
        lots = p["risk"] * start / risk_1lot
    elif model == "fractional":       # a fixed fraction of current equity
        lots = p["risk"] * equity / risk_1lot
    else:
        raise ValueError(model)
    lots = np.floor(round(lots / p["step"], 9)) * p["step"]  # volume step
    return min(max(lots, p["min_lot"]), p["max_lot"])

def replay(trades, model, p, start=10_000.0):
    """trades: list of (result_in_R, risk_1lot), in the original order.
    Returns the equity path for one sizing model."""
    eq = [start]
    for r, risk_1lot in trades:
        lots = lots_for(model, eq[-1], start, risk_1lot, p)
        eq.append(eq[-1] + r * risk_1lot * lots)
        if eq[-1] <= 0:
            break
    return np.array(eq)

def risk_summary(eq):
    """Maximum drawdown and worst single trade, both as a share of equity."""
    peak = np.maximum.accumulate(eq)
    trade_moves = np.diff(eq) / eq[:-1]
    return {"max_dd": float(((peak - eq) / peak).max()),
            "worst_trade": float(trade_moves.min())}

p holds the model's settings and the symbol's volume limits, for example {"risk": 0.01, "lots": 0.10, "step": 0.01, "min_lot": 0.01, "max_lot": 50.0}. Take the volume step, minimum and maximum from the symbol's specification on the account you intend to use, not from a default.

The replay has one built-in assumption: that trading a different size would not have changed the fills. For small sizes in liquid markets that is usually reasonable. For large sizes, or thin markets, it isn't, and the replay will understate costs.

Step 3: Check what rounding does to small accounts

Brokers only accept lot sizes in fixed steps, with a minimum. On a large account, rounding barely matters. On a small one, it can change the real risk per trade a lot.

A hypothetical example: a 2,000 account risks 0.5% per trade, so 10 per trade. The value of one pip per lot is 10, and the stop is 35 pips, so one lot would risk 350. The model asks for 0.0286 lots, which rounds down to 0.02 lots, risking 7, or 0.35%. Now take a trade with a 150-pip stop: the model asks for 0.0067 lots, but the minimum is 0.01, so the trade risks 15, or 0.75%, one and a half times the intended risk. (Hypothetical arithmetic for teaching purposes, not from any strategy or account.)

Rounding down quietly lowers risk. Raising to the minimum quietly raises it, and it does so on exactly the wide-stop trades. The replay above applies both, which is why it is worth running even if the EA's own sizing code looks correct. The lot-size maths itself, and how to code it in MQL5, is covered in EA position sizing under a daily loss limit.

Step 4: Compare on risk, not on the final balance

The tempting comparison is the final balance. It is also the least useful, because it depends heavily on the order of the trades and on a handful of large winners. Compare the models on how they behave when things go wrong:

  • Maximum drawdown, as a share of equity at the peak.
  • The cost of the worst losing streak, in money and as a share of equity at its start.
  • The largest single-trade loss as a share of equity at the time.
  • How risk per trade moves during a drawdown: does each loss get larger or smaller as a share of what is left?

The last point is where the models differ most. A hypothetical example with ten losses in a row, each −1R:

ModelRisk settingLoss after ten −1R tradesRisk on the eleventh trade, as a share of equity
Fixed fractional1% of current equityAbout 9.6%1.0%
Fixed cash risk1% of the 10,000 starting balance10.0%About 1.1%
Fixed cash risk, already 20% down100 per trade at 8,000 equity12.5% of the 8,000About 1.4%

Hypothetical arithmetic for teaching purposes, not from any strategy or account.

Fixed fractional sizing takes smaller losses in money as equity falls, and for the same reason each win recovers less, so climbing back takes slightly longer. Fixed cash risk keeps the money at risk the same, so each loss is a bigger share of what is left the deeper the drawdown goes. Neither is right in general. The point is to see which behaviour you have, on your trades, before it happens live.

Fixed lots behave differently again. If the stop distance varies, the risk varies with it. A hypothetical example: at 0.20 lots, with 10 per pip per lot on a 10,000 account, a 15-pip stop risks 30, or 0.3%, and a 60-pip stop risks 120, or 1.2%. The wide-stop trades carry four times the weight of the narrow ones, so the backtest result leans heavily on how those trades happened to turn out. (Hypothetical arithmetic for teaching purposes, not from any strategy or account.)

If you read drawdown figures from several tools, check that they measure the same thing. Equity and balance drawdown, and absolute and relative drawdown, can differ widely; see drawdown explained.

Step 5: Reshuffle the trade order

Fixed fractional sizing is path-dependent: the same trades in a different order give a different equity path, because each trade's size depends on what came before. A single replay in the historical order shows one path. Reshuffling shows the range.

def compare_models(trades, models, n=2000, seed=7):
    """Reshuffle the trade order n times and replay every model on each
    shuffle. models: {"name": (model, params)}. Returns the 50th, 90th and
    99th percentiles of maximum drawdown for each model."""
    rng = np.random.default_rng(seed)
    dds = {name: [] for name in models}
    for _ in range(n):
        order = rng.permutation(len(trades))
        shuffled = [trades[i] for i in order]
        for name, (model, p) in models.items():
            dds[name].append(risk_summary(replay(shuffled, model, p))["max_dd"])
    return {name: np.percentile(v, [50, 90, 99]) for name, v in dds.items()}

Every model sees the same shuffles, so differences between them come from sizing, not from luck in the sampling. Read the upper percentiles: the 90th and 99th percentile drawdowns say more about a sizing model than the median does. Reshuffling assumes the trades are independent of each other; if losses tend to cluster, a plain shuffle will understate the long losing streaks. How to read and adjust these percentiles is covered in Monte Carlo testing a trading strategy.

Step 6: Don't optimise the sizing on the same data

The risk fraction, the lot size and any caps are parameters. If you pick them by running the backtest at many levels and keeping the one with the best final balance, you have fitted them to that one history, and the most aggressive setting usually wins in hindsight.

Set the sizing from the risk side instead, before looking at results:

  1. Decide the drawdown limit first. For example, the deepest drawdown the account or its rules allow, with a margin for slippage and gaps.
  2. Work backwards to a risk level. Use the upper reshuffled percentiles, not the historical path, to see which risk level keeps the drawdown inside that limit.
  3. Write the model and the reason down. Record the model, its settings, the volume limits used and why, alongside the test results.

If the EA is meant for an account with a daily or overall loss limit, such as a prop-firm account, the sizing also has to fit inside that rule on its worst days, and that check belongs with the daily guard rather than here.

Step 7: Check the EA sizes the way the replay does

The replay is a model of the EA's sizing, not the EA itself. Before trusting the comparison, run the EA in the Strategy Tester with the chosen model and compare its actual lot sizes with the replay's, trade by trade. Mismatches usually come from:

  • Equity versus balance. The EA sizes from one while the replay uses the other.
  • The wrong value per point. Cross pairs and non-forex symbols need the tick value in account currency, which changes with exchange rates.
  • Rounding in a different direction. Rounding to the nearest step instead of down can raise risk on every trade.
  • Floating open positions. If several trades can be open at once, sizing from equity includes their floating profit or loss.

What a sizing comparison doesn't tell you

  • Whether the trades have an edge. That has to be established before sizing matters.
  • Whether the future will look like the trade list. The reshuffle only rearranges trades that already happened.
  • Whether larger sizes would fill the same way. The replay assumes they would.
  • Which model suits a particular account. That depends on its rules, its size and the risk its owner is prepared to carry. The comparison shows the trade-offs; it doesn't choose for you.

Common position-sizing mistakes

  1. Comparing models on the final balance. It rewards the most aggressive setting in hindsight.
  2. Testing only in the historical order. Path-dependent models need reshuffling.
  3. Ignoring the minimum lot. Small accounts can carry far more risk than the input says on wide-stop trades.
  4. Stacking volatility scaling on an ATR-based stop without noticing. It changes the risk per trade.
  5. Testing size-up-after-loss models only on history. The danger is in the losing streak the history didn't contain.
  6. Choosing the risk fraction by optimising it.
  7. Assuming the EA's code matches the replay. Check the lots trade by trade.

Position-sizing comparison checklist

  • Trade list recorded in R, with the risk at 1.0 lot for every trade
  • Risk unit defined in advance for any trade without a fixed stop
  • Rules, entries, exits and trade order frozen; only the sizing changes
  • Volume step, minimum and maximum taken from the symbol specification on the intended account
  • Each model compared on maximum drawdown, worst streak and largest single loss, not final balance
  • Risk per trade during a drawdown checked for each model
  • Trade order reshuffled, with every model run on the same shuffles
  • Risk level set from the drawdown limit before looking at results
  • EA lot sizes in the tester matched against the replay, trade by trade
  • Chosen model, settings and reason written down with the test results

Frequently asked questions

What is the difference between fixed lot and fixed fractional position sizing?

Fixed lot trades the same number of lots every time, so the money at risk changes with the stop distance. Fixed fractional chooses the lots so that a stop-out loses a set fraction of current equity, so the risk per trade stays the same share of the account and shrinks in money terms during a drawdown.

Which position-sizing model is best for an EA?

There isn't a single best model. Each one trades off how losses are spread, how a drawdown unfolds and how sensitive the result is to trade order. The useful step is to replay the same trades under each model, compare them on drawdown and losing streaks, and choose the one whose worst cases fit the account's limits.

Can position sizing make a losing strategy profitable?

No. Sizing changes how much each trade's result is worth in money. It doesn't change whether the trades win or lose on balance. A set of trades with no edge stays without an edge under any sizing model.

Why do I need to measure trades in R to compare sizing models?

R expresses each trade's result as a multiple of the amount it risked at entry, so it doesn't depend on the lots used. That lets you hold the trades constant and change only the sizing, which is what makes the comparison fair.

Does the minimum lot size really matter?

On small accounts, yes. When the model asks for less than the minimum lot, the trade is placed at the minimum and risks more than intended, and this happens on the trades with the widest stops. Replaying with the real volume limits shows how often it happens and by how much.

Want a second pair of eyes?

Start with our free Sample Stress-Test Report. It walks one anonymized, illustrative strategy through a full stress test, start to finish, so you can see what rigorous validation looks like before you test your own.

Read the Sample Stress-Test Report

Want your own backtest checked? The Strategy Audit + 60-minute call is a paid service at a launch price of £100, credited in full against our build and portfolio offers. You send an MT4/MT5 Strategy Tester report or trade-list CSV; what we can check depends on the files you supply, and walk-forward and parameter sweeps are not included because they need the strategy itself. It is analysis of strategy testing, not investment advice, and does not promise any trading or evaluation outcome. See the Strategy Audit

Disclaimers

CollosoTrading provides educational content and analytical services for retail and professional algorithmic traders. We do not provide regulated investment advice, financial advice, or personal recommendations. Trading derivatives, leveraged products, and CFDs carries a high level of risk and may result in losses exceeding deposits. Past performance, including any verified or unverified historical results referenced on this site, is not indicative of future results. Consult an independent regulated financial adviser before making investment decisions.

All figures are backtests or simulations unless marked LIVE. Hypothetical or backtested performance results have inherent limitations and may not reflect actual trading. No representation is made that any account will or is likely to achieve profits or losses similar to those shown. Individual results vary. Any figures in this article are hypothetical arithmetic for teaching purposes, not results from any strategy or account. We do not guarantee the outcome of any prop firm challenge.