EA Risk & Money Management — How to Calculate Lot Size and Set Your Risk %
Last updated: 2026-05-20 | Estimated reading time: 15 min
What ultimately determines an EA's real-world performance is money management, not the strategy itself. Even with the same EA, the difference between "an account that grows steadily" and "an account wiped out by a single losing streak" comes down to how much you risk per trade. This article explains the fundamentals of money management for protecting your account while running EAs.
Table of Contents
Why Money Management Matters More Than Strategy
No matter how good an EA is, losing streaks are inevitable. Even a top-performing EA with a 60% win rate will statistically produce 5- or 6-trade losing streaks. Whether your account can survive those streaks is entirely determined by your money management.
If you risk 20% of your account on a single trade, five consecutive losses will cut your balance roughly in half. But if you cap your risk at 1% per trade, even ten straight losses will only shrink your account by about 10%. Same EA, same market — completely different outcomes.
How to Set Your Per-Trade Risk %
Risk % defines what fraction of your account balance you're willing to lose on a single trade if the stop-loss is hit. Most EAs let you specify this with the RiskPercent parameter.
Here are general guidelines for risk %:
| Risk % | Type | Guideline |
|---|---|---|
| 0.5% or less | Conservative | High-volatility pairs or when running multiple EAs simultaneously. Suitable when prioritizing long-term stability. |
| 0.5–1.0% | Standard | Recommended range for most EAs and beginners. |
| 1.0–2.0% | Aggressive | Only for single-EA operation when you have strong confidence in your edge. |
| Over 2.0% | Dangerous | A losing streak can drain your account rapidly. Generally not recommended. |
How to Calculate Lot Size
Once you've set your risk %, you need to convert it into an actual lot size. The formula is:
For example: account balance ¥100,000, risk 1% (= ¥1,000), stop-loss 50 pips, pip value ¥1,000 per lot → Lot size = 1,000 ÷ (50 × 1,000) = 0.02 lots.
Most EAs handle this calculation automatically when you set UseFixedLot=false (automatic risk % mode). If you use fixed lots (UseFixedLot=true), your lot size won't adjust as your balance changes — so you'll need to review and update it manually on a regular basis.
Compounding vs. Fixed-Lot Trading
Compounding (UseCompounding=true) automatically adjusts your lot size based on your current account balance. When you're profitable, the next trade uses a larger lot; when you're in a drawdown, it uses a smaller one. Your risk % relative to your balance stays constant at all times.
Fixed-lot trading (UseCompounding=false) keeps your lot size anchored to your starting balance. Growth is slower because lots don't increase as your account grows, but the dollar impact of drawdowns is also held constant.
| Factor | Compounding | Fixed-Lot |
|---|---|---|
| Growth speed | Fast (snowball effect) | Gradual (steady) |
| During drawdown | Loss amount can also grow | Loss amount stays fixed |
| Best suited for | Growth phase after edge is confirmed | Validation period or when prioritizing stability |
| Caution | Watch out for naive "annual return × 10 years" projections | Easy to miss out on account growth |
Margin Level and Account Headroom
Margin level — calculated as equity ÷ required margin × 100 — is a measure of how much headroom your account has. When it falls below 100%, you can no longer open new orders; if it drops further, a forced stop-out (margin call) is triggered.
To run EAs safely, it's essential to maintain a comfortable margin level at all times. Many EAs include a UseMarginEmergencyClose safety feature that force-closes all positions if the margin level drops below a set threshold.
| Margin Level | Status |
|---|---|
| 1,000% or more | Plenty of headroom. Safe operating range. |
| 300–1,000% | Normal. No cause for concern. |
| 150–300% | Caution. Suspect overtrading or oversized lots. |
| Below 150% | Danger. Consider setting an emergency close threshold. |
📈 Diversify Risk Across Multiple EAs
The next step after money management is a portfolio strategy that combines low-correlation EAs to smooth out drawdowns.
Read the Portfolio Strategy →