How to size every trade from your risk in MT5 and MT4 (with drag lines)

How to size every trade from your risk in MT5 and MT4 (with drag lines)

20 November 2026, 05:08
Dragos Mihai Ofrim
0
6

Position sizing is the part of trading you fully control. The stop sets how far price may go against you; the lot size sets what that distance costs. Pick the lot first and the risk changes with every stop. Pick the risk first and the lot follows from the stop, so every trade costs the same share of your account when it fails. This article shows the formula, the costs that belong in it, worked examples on gold and EURUSD, and how to do it on the chart with drag lines in DuoFX Trade Manager (user guide).

The formula

Lot size = money you are willing to lose / loss per lot at the stop.

The loss per lot has three parts:

  • The move to the stop: the distance from entry to SL in price, times the contract size. On gold 1 lot is usually 100 oz, so a US$1.00 move is US$100 per lot. On EURUSD 1 lot is 100,000 units, so 1 pip is US$10 per lot. Check your broker's contract spec.
  • Commission per lot, round turn (in and out).
  • A spread cushion: a stop can fill while the spread is wider than now. Counting one more spread keeps a normal slip inside your risk.

Then round down to the broker's lot step. Rounding to the nearest step can put you above your risk.

Worked example: gold

Account US$10,000, risk 1%, so US$100. Buy XAUUSD at 4,050.00 with the stop at 4,044.00, a US$6.00 move (600 points on a 2-digit gold quote).

  • Move to the stop: 6.00 x 100 oz = US$600 per lot.
  • Commission: US$7 per lot round turn.
  • Spread cushion: a spread of US$0.12 is US$12 per lot.
  • Loss per lot: 600 + 7 + 12 = US$619.
  • Lots: 100 / 619 = 0.1615, rounded down to 0.16 lots. Money at risk: 0.16 x 619 = US$99.04.

With a 4,047.00 stop (US$3.00) the same risk buys 100 / 319 = 0.31 lots. The risk stays the same, the lot changes. That is the point.

Worked example: EURUSD

Same US$100 risk, a 20 pip stop, commission US$7 per lot and a spread of 0.2 pips (US$2 per lot).

  • Loss per lot: 200 + 7 + 2 = US$209.
  • Lots: 100 / 209 = 0.478, rounded down to 0.47 lots, US$98.23 at risk.

On a pair whose quote currency is not your account currency, the value of a pip changes with the exchange rate, so the same stop gives a slightly different lot each day.

Doing it on the chart

DuoFX Trade Manager does this calculation on every move of a line.

  • 1. Attach it to the chart and set the risk on the panel: 1% of balance by default. The minus and plus buttons step it, and a click on the value switches between % of balance, % of equity, a money amount and fixed lots.
  • 2. The panel draws an entry, an SL and a TP line. Drag the SL to where the trade idea is wrong, behind a swing or a level, not at a distance chosen to fit a lot size.
  • 3. Read the lot size on the panel and the cards on the lines: the SL card shows the price, the points, the money and the % of the account; the TP card the money and the R.
  • 4. Click BUY or SELL. The order goes out with the SL and TP on it.

In the screenshot below the risk mode is a fixed money amount, A$50, on a gold sell with a 613 point stop.

How to size every trade from your risk in MT5 and MT4 (with drag lines)

The panel shows 0.05 lots and A$45.97 at risk, 0.51% of the account: 0.06 lots would have been over A$50, so the lot rounds down. The commission comes from your own closed trades on the symbol ("auto" in the footer). If a symbol has none yet, the rate of another symbol of the same kind on the account is used and named, and if nothing is found the panel asks you to type it in the inputs instead of guessing.

Keep the target in proportion: the R:R lock

The R:R lock is on by default at 1:2. Drag the SL and the TP moves so the target stays twice the stop; drag the TP and the SL follows at half the distance. The lot size follows the stop, so the money at risk stays at your setting while the reward moves with it. Click the ratio to pick 1:1, 1:1.5, 1:2, 1:3, 1:4 or 1:5, or click "R:R locked" to move the lines freely.

Next to the plain R:R the panel shows the net R after commission. A 2.00 R:R on a tight gold stop can be 1.93R net, and the gap grows as the stop gets tighter.

Pending orders from the same lines

Drag the entry line away from the price, or click Pending, and the order button names the order: BUY LIMIT, BUY STOP, SELL LIMIT or SELL STOP.

How to size every trade from your risk in MT5 and MT4 (with drag lines)

With "SL/TP follow entry" on, the SL and TP move with the entry line by the same distance, so the stop distance, the lots and the risk stay the same while you place the order. Click PLACE and the pending order goes out with its SL and TP. After an order the planning lines hide by default, so the chart never looks like a second order is waiting; SHOW PLAN brings a new plan back.

Prop accounts and small accounts

  • Prop accounts: set "Account size for % risk" to the challenge size, for example 100,000. The % is then taken from that size, the same way most firms state their rules, and not from the balance after a few trades.
  • Below the minimum lot: with a tight risk on a wide stop, even 0.01 lots can be too much. The panel then says what the minimum lot would risk and keeps the button off. It never sizes up by itself. Widen the risk, tighten the stop or skip the trade.
  • Lot cap: "Never more lots than this" stops a typo in the risk from becoming a large order.

Common mistakes

  • Sizing from the lot, not the risk. A fixed 0.10 lots risks US$300 on a US$30 gold stop and US$30 on a US$3 one.
  • Forgetting the commission. On tight stops it is a real share of the risk.
  • Rounding up. Always round the lot down.
  • Moving the stop to fit a lot. The stop belongs where the idea fails. Let the lot follow.
  • Using % of equity during a drawdown without knowing it. % of equity shrinks the lot while trades are open at a loss; % of balance does not. Both are valid, so pick one on purpose.

A short checklist

  • Decide the risk per trade before the setup, as a % or a money amount.
  • Place the stop where the trade idea is wrong.
  • Let the lot size follow, rounded down, with commission and a spread cushion included.
  • Check the net R, not only the plain R:R.
  • On prop accounts, take the % from the account size.

DuoFX Trade Manager is available for MT5 and MT4. For managing the trade after the fill, read Partial take profit, breakeven and trailing: managing a trade step by step.

Risk note: trading forex, gold and CFDs carries a high risk of loss. A position size calculator keeps the planned loss at your setting, but a stop can fill worse than its level in gaps and fast markets, so the real loss can be larger. The examples above are illustrations, not trade recommendations. Test any approach on a demo account first, and never risk money you cannot afford to lose.