рджреНрд╡рд╛рд░рд╛ William Harris ┬╖ рдЕрдВрддрд┐рдо рд╕рдореАрдХреНрд╖рд╛
How to Calculate Risk Per Trade for Forex EAs (Position Sizing)
рдЖрдкрдХреЛ рдХреНрдпрд╛ рдЪрд╛рд╣рд┐рдП
- тАв Calculator or spreadsheet
- тАв Current account equity (MT5 тЖТ Account window)
- тАв EA's typical stop-loss distance in pips
- тАв Pip value for the symbol you trade
рдЪрд░рдг-рджрд░-рдЪрд░рдг рдирд┐рд░реНрджреЗрд╢
рдЪрд░рдг 1: Understand fixed-fractional sizing
Fixed-fractional position sizing risks a constant percentage of equity per trade. As the account grows, lot sizes scale up; as the account drawdowns, lot sizes scale down. This is mathematically optimal for capital preservation over long horizons and is what every professional risk-management framework uses.
The alternative тАФ fixed-lot sizing тАФ risks a constant dollar amount regardless of equity. For a $1000 account trading 0.1 lot, a 100-pip loss is $100 = 10% of equity. After three losses you're at $700 still trading 0.1 lot тАФ but now that 0.1 lot represents 14% per loss instead of 10%. Drawdowns compound destructively.
Fixed-fractional inverts this: after losses, lot sizes decrease, so each subsequent loss is the same percentage of the (now smaller) equity. The drawdown stays bounded.
The one downside of fixed-fractional: recovery from drawdown is slower than with fixed-lot, because you're trading smaller lots on the way back up. Trade-off for capital preservation.
рдЪрд░рдг 2: The formula
Lot Size = (Account Equity ├Ч Risk Percent) / (Stop Loss in Pips ├Ч Pip Value per Lot)
Breaking down each input:
тАв Account Equity тАФ read from MT5's Account window. Use current equity (mark-to-market), not balance. If you have open positions, equity already reflects unrealized P&L.
тАв Risk Percent тАФ the percentage of equity you're willing to lose on this single trade. Standard retail: 1%. Conservative: 0.5%. Aggressive: 2%. Prop firms: 0.5% to stay safely under daily-loss limits.
тАв Stop Loss in Pips тАФ the distance from entry to stop loss, in pips. For EURUSD at 1.0850 with stop at 1.0820, that's 30 pips.
тАв Pip Value per Lot тАФ the dollar value of a 1-pip move on a 1.0 lot position. Symbol-specific (see next step).
Worked example: $5000 equity, 1% risk, 40-pip stop on EURUSD with $10/pip pip value. Lot Size = ($5000 ├Ч 0.01) / (40 ├Ч $10) = $50 / $400 = 0.125 lots
MT5 only accepts lot sizes in increments of 0.01, so round to 0.12 lot. The actual risk becomes 0.12 ├Ч 40 ├Ч $10 = $48 = 0.96% of equity. Close enough to the 1% target.
рдЪрд░рдг 3: Pip value by symbol
Pip value is per 1.0 standard lot (100,000 units of the base currency). For account currency = USD:
тАв EURUSD, GBPUSD, AUDUSD, NZDUSD тАФ $10/pip. (USD is the quote currency, pip = 0.0001, so 0.0001 ├Ч 100,000 = $10.)
тАв USDJPY, USDCHF, USDCAD тАФ pip is 0.01 (JPY) or 0.0001 (CHF, CAD), but USD is the base, so pip value varies with the current rate. At USDJPY 150, pip value тЙИ $6.67. At USDJPY 100, pip value тЙИ $10. For practical EA sizing, look up current pip value in MT5's market info or use our pip-value calculator.
тАв EURGBP тАФ pip is 0.0001 in GBP. At GBPUSD 1.27, pip value тЙИ $12.70 per lot. Updates with GBPUSD.
тАв XAUUSD (Gold) тАФ pip is 0.01 (1 cent). Pip value = $1/pip per standard lot. So a 50-pip move on 0.10 lot of gold = 50 ├Ч $1 ├Ч 0.10 = $5. Many traders incorrectly treat gold pip as $10/lot like EURUSD; this overestimates risk 10├Ч.
тАв BTCUSD тАФ pip is 0.01 to 1.00 depending on broker convention. Check the broker's symbol specification.
For a non-USD account currency, multiply pip value by the conversion rate. EUR account holding EURUSD: pip value is тВм(10 / EURUSD_rate). MT5's Market Watch тЖТ Symbols тЖТ Properties shows the broker's pip value in account currency.
рдЪрд░рдг 4: Map the formula to your EA's inputs
Most EAs expose either a fixed LotSize input or a RiskPercent input. Use RiskPercent if available тАФ it implements fixed-fractional automatically.
If the EA only exposes a fixed LotSize: 1. Compute the right lot size for your current equity using the formula above. 2. Set the LotSize input to that value. 3. Recompute and update every time your equity changes by 20%+. This is manual but necessary.
If the EA exposes both LotSize and RiskPercent, RiskPercent usually takes precedence and overrides LotSize. Check the EA's documentation.
If the EA exposes a 'LotSizeMode' choice (Fixed / Percent / Money-Per-Trade), choose Percent.
A few EAs require Money-Per-Trade тАФ you tell the EA 'risk $50 per trade'. Compute manually: $5000 ├Ч 1% = $50.
For multi-symbol EAs, ensure the RiskPercent setting is per-trade, not per-day. Some EAs interpret 1% as 'no more than 1% loss per day total' rather than 'per trade' тАФ read the docs.
рдЪрд░рдг 5: Correlate risk across multiple EAs
If you run 5 EAs each at 1% risk, your worst-case daily loss is not 1% тАФ it's potentially 5% if all five lose on the same day. For correlated EAs (e.g. two scalpers on EURUSD), losses are highly correlated and tend to cluster.
The right approach: тАв Compute the EA's correlation matrix from historical trade timestamps. тАв Set per-EA risk to (Target Total Risk) / sqrt(N) for uncorrelated EAs, or (Target Total Risk) / N for correlated EAs.
For a target of 1% total daily risk: тАв 1 EA тЖТ 1% per EA тАв 2 uncorrelated EAs тЖТ 0.7% each (1% / sqrt(2)) тАв 5 uncorrelated EAs тЖТ 0.45% each (1% / sqrt(5)) тАв 5 correlated EAs (all EURUSD scalpers) тЖТ 0.2% each (1% / 5)
In practice, most EA portfolios are 30тАУ70% correlated, so use the per-EA risk formula 1% / sqrt(N ├Ч 1.5) as a heuristic. For 5 EAs: 1% / sqrt(7.5) = 0.37%.
рдЪрд░рдг 6: Set a drawdown budget separately from per-trade risk
Per-trade risk and account-level drawdown budget are separate parameters. A 1% per-trade risk allows for ~20% drawdown before triggering most psychological/regulatory limits; a 0.5% per-trade risk allows for ~10% drawdown.
Define your hard drawdown stop in advance: тАв Personal account тАФ when account drawdown hits -15% from peak, stop the EAs and review. тАв Prop firm challenge тАФ stop EAs at 70% of the firm's max drawdown rule (e.g. 7% out of 10% allowed) to leave margin for the final closing. тАв Demo account тАФ no need for hard limit; drawdown is data, not pain.
Commit to the limit in writing. If you hit it, stop trading the EA until you investigate why. The most common cause is regime change (the market entered conditions the EA wasn't tuned for); the cure is parameter re-tuning, not raising the stop and hoping.
MT5 has built-in 'Max equity drawdown' settings in some EAs. Use them as a safety net but don't rely on them тАФ the EA developer's max-DD logic isn't always what you want.
рдмрдЪрдиреЗ рдХреЗ рд▓рд┐рдП рд╕рд╛рдорд╛рдиреНрдп рдЧрд▓рддрд┐рдпрд╛рдБ
- тЬЧ Using fixed lot size regardless of account equityрдареАрдХ рдХрд░реЗрдВ: Switch to RiskPercent input on the EA. As equity changes, lot size auto-adjusts.
- тЬЧ Mis-calculating XAUUSD pip value as $10/lot (it's $1/lot)рдареАрдХ рдХрд░реЗрдВ: Gold's pip is 0.01 (1 cent), so 1 lot moves $1 per pip. Don't apply the EURUSD pip value to gold.
- тЬЧ Setting 1% risk per EA when running 5 EAsрдареАрдХ рдХрд░реЗрдВ: Total risk is what matters. Scale per-EA risk down so combined exposure stays at target.
- тЬЧ Confusing risk percent with leverage percentрдареАрдХ рдХрд░реЗрдВ: Risk % is potential loss; leverage % is position size. Risking 1% of equity on a 40-pip stop is about 25% effective leverage on a $5000 account at 1:30 broker leverage.
- тЬЧ Recomputing position size monthly instead of per tradeрдареАрдХ рдХрд░реЗрдВ: If the EA reads account equity dynamically (recommended), it sizes correctly automatically. If you set lot manually, recompute before every session, not monthly.
- тЬЧ Treating prop-firm risk rules as the same as personal risk rulesрдареАрдХ рдХрд░реЗрдВ: Prop firms have hard daily-loss limits (often 5%) that you cannot exceed even momentarily. Size at 0.5% per trade so daily total stays well under the limit.
рдЕрдХреНрд╕рд░ рдкреВрдЫреЗ рдЬрд╛рдиреЗ рд╡рд╛рд▓реЗ рдкреНрд░рд╢реНрди
Should I limit risk per trade, per day, or both?
Per-day limit prevents the 'revenge trading after a loss' scenario where one bad trade leads to escalating positions trying to recover. Per-month limit catches systematic EA degradation (e.g. regime change). Per-year limit prevents creeping risk inflation. EAs should support daily-loss-limit and pause-after-loss inputs; if yours doesn't, run a separate guardian script that monitors equity and disables all EAs when limits hit.
What's the difference between leverage and risk per trade?
A common confusion: 1:500 leverage doesn't mean you should risk 500x your equity. It means you CAN open positions up to 500x your equity. A sensible trader on a 1:500 account still risks 1% per trade тАФ the high leverage is reserve capacity in case of margin spike, not an invitation to size up. Most EA setups use 5-20% effective leverage even on 1:500 accounts; the rest is buffer.
The optimal answer depends on whether the EA's edge degrades with size. Fixed-edge strategies (true alpha) can compound indefinitely without slippage degradation. Most retail EAs are not fixed-edge тАФ they target retail liquidity pools that don't absorb infinite size, so above $100k account size you start to see slippage degrade execution. Plan to take profits down to manageable size as the account grows past the 'tested at this size' window.
Should I use the Kelly Criterion for position sizing?
The full Kelly formula: optimal fraction = (b*p - q) / b, where b = win/loss ratio, p = win rate, q = 1-p. For PF 1.7 / 60% win rate / 1.13 win/loss ratio: Kelly = (1.13*0.6 - 0.4) / 1.13 = 25%. Full Kelly would say risk 25% per trade тАФ utterly insane in practice because if your real win rate is 55% instead of 60%, you blow up. Half-Kelly (12.5%) is still aggressive; quarter-Kelly (6%) is what most professional money managers use. The 1% retail guidance is roughly quarter-Kelly for a typical EA, calibrated to be robust against estimation error.
Some EAs use ATR-based stop loss. How does that affect position sizing?
ATR-based sizing is more sophisticated and adapts to volatility. In low-volatility regimes the EA takes larger positions with tighter stops; in high-volatility regimes smaller positions with wider stops. The risk % stays constant. This is genuinely better than fixed-pip stop sizing for trend-following strategies. Verify your EA recomputes lot size per signal: open the EA code or ask the vendor.
My EA has 'Risk Mode' = Aggressive / Balanced / Conservative. What's the difference?
The branding is marketing. The numbers matter. Open the EA's documentation and find the explicit risk percentage and stop-loss multiplier per mode. If the docs don't specify, run a small backtest with each mode and compute the effective risk per trade from the trade list. Some vendors' 'Conservative' mode is more aggressive than other vendors' 'Aggressive' mode тАФ always verify the numbers.
Need the exact pip value for your trade?
Pip value varies by symbol, account currency, and exchange rate. Our pip-value calculation guide walks through it step-by-step.
Continue to: How to calculate pip value тЖТрд╕рдВрдмрдВрдзрд┐рдд рдЧрд╛рдЗрдб

William Harris
FxRobotEasy рдХреЗ рд╕рдВрд╕реНрдерд╛рдкрдХ рдФрд░ рд▓реАрдб рдбреЗрд╡рд▓рдкрд░
рд╢рд┐рдХрд╛рдЧреЛ, USA ┬╖ 2021 рд╕реЗ
- 12+ рд╕рд╛рд▓ рд▓рд╛рдЗрд╡ рдЯреНрд░реЗрдбрд┐рдВрдЧ
- 10+ рд╕рд╛рд▓ MQL5 / MQL4
- 3 рд▓рд╛рдЗрд╡-рд╕рддреНрдпрд╛рдкрд┐рдд Expert Advisors
- 2021 рдореЗрдВ рд╕реНрдерд╛рдкрд┐рдд
тАЬрдореИрдВ рдордзреНрдп рд╡рд┐рджреНрдпрд╛рд▓рдп рд╕реЗ рдХреЛрдб рдХреЗ рд╕рд╛рде рдЪреАрдЬреЗрдВ рдмрдирд╛ рд░рд╣рд╛ рд╣реВрдБред рдореИрдВ рд╡рд┐рд╢реНрд╡рд╡рд┐рджреНрдпрд╛рд▓рдп рд╕реЗ рдЯреНрд░реЗрдб рдХрд░ рд░рд╣рд╛ рд╣реВрдБред рдЙрди рджреЛ рджреБрдирд┐рдпрд╛рдУрдВ рдХрд╛ рдЪреМрд░рд╛рд╣рд╛ тАФ рдПрд▓реНрдЧреЛрд░рд┐рдердо, рдмрд╛рдЬрд╝рд╛рд░, рдФрд░ рдЙрдиреНрд╣реЗрдВ рдЬреЛрдбрд╝рдиреЗ рд╡рд╛рд▓реА рдкреНрд░реМрджреНрдпреЛрдЧрд┐рдХреА тАФ рд╡рд╣ рдЬрдЧрд╣ рд╣реИ рдЬрд╣рд╛рдБ рдореИрдВрдиреЗ рдкрд┐рдЫрд▓реЗ рдкрдВрджреНрд░рд╣ рд╡рд░реНрд╖ рдмрд┐рддрд╛рдП рд╣реИрдВред FxRobotEasy рддрдм рд╣реЛрддрд╛ рд╣реИ рдЬрдм рдЖрдк рддрдм рддрдХ рд░реБрдХрдиреЗ рд╕реЗ рдЗрдирдХрд╛рд░ рдХрд░рддреЗ рд╣реИрдВ рдЬрдм рддрдХ рдЖрдкрдиреЗ рдЬреЛ рдХрд▓реНрдкрдирд╛ рдХреА рд╡рд╣ рд╡рд╛рд╕реНрддрд╡ рдореЗрдВ рд▓рд╛рдЗрд╡ рдмреНрд░реЛрдХрд░ рдЦрд╛рддреЗ рдкрд░ рдХрд╛рдо рди рдХрд░реЗредтАЭ