Table of Contents
- Why Risk Management Settings Decide Whether an MT5 Robot Survives
- MT5 Robot Position Sizing: Fixed Lot vs Percentage Risk
- MT5 Expert Advisor Stop Loss Settings That Actually Hold
- Maximum Drawdown Settings for Forex Robots and Equity Circuit Breakers
- How to Backtest an MT5 Robot Before It Goes Live
- Portfolio-Level Risk Controls Across Robots and Symbols
- Frequently Asked Questions
Last Updated: October 8, 2026
Why Risk Management Settings Decide Whether an MT5 Robot Survives
The best risk management settings for MT5 robots are the ones that cap how much a single trade, a single day, or a single robot can cost you before the market decides for you.

Here is the uncomfortable truth most product pages skip. A trading robot can win eight trades in a row and still wipe an account on the ninth if nobody set a ceiling.
Below, we walk through position sizing, stop-loss configuration, drawdown limits, and how to test all of it before a single dollar goes live.
MT5 Robot Position Sizing: Fixed Lot vs Percentage Risk
Position sizing determines how much of your account balance each trade can put at risk, and it is the single setting that most changes your long-term outcome. Fixed lot means every trade uses the same volume.
Fixed lot is simpler and easier to audit. Percentage risk adapts as your account grows or shrinks, which is why most experienced traders prefer it for automated trading.
How to Calculate Lot Size From Account Equity
Use this formula:
Lot size = (Account equity × Risk per trade %) ÷ (Stop-loss distance in pips × Pip value per lot)
Worked example: $10,000 equity, 1% risk per trade, 25-pip stop, $10 pip value per standard lot.
- Risk amount: $10,000 × 0.01 = $100
- Stop-loss cost per lot: 25 × $10 = $250
- Lot size: $100 ÷ $250 = 0.40 lots
Maximum Position Size and Maximum Open Trades
Two settings stop a robot from overcommitting when signals stack up. Maximum position size caps the volume of any single trade. Maximum open trades caps how many positions can run at once.
A common mistake is leaving maximum open trades at zero, which many MT5 robots read as unlimited. If your robot fires on five correlated pairs at once, you have one big trade wearing five costumes, not five independent trades.
MT5 Expert Advisor Stop Loss Settings That Actually Hold
An Expert Advisor stop-loss setting only holds if it survives spread widening, slippage, and weekend gaps. A stop placed too tight gets hit by normal market noise.
For most MT5 robots, we suggest setting the stop-loss distance from recent volatility rather than a fixed pip count.
Always set a hard stop in the EA inputs, not just a mental one.
Check whether your broker enforces a minimum stop distance. If your EA stop sits inside that minimum, the order gets rejected and the trade opens unprotected. Test one live trade at minimum volume before scaling up.
Take-Profit and Risk-Reward Planning
Risk-reward ratio sets how far your take-profit sits relative to your stop-loss. A 1:2 ratio means you aim to make twice what you risk. That ratio lets a strategy stay profitable while winning fewer than half its trades.
Set take-profit in the EA inputs and confirm it matches your backtested expectancy. A robot that wins often but risks three dollars to make one will still bleed out over time.
Maximum Drawdown Settings for Forex Robots and Equity Circuit Breakers
Maximum drawdown settings define the worst-case loss your account will tolerate before the robot stops trading. This is your circuit breaker, and it matters more than any entry rule. Most ranking articles stop at “set a max drawdown” without explaining how the limit is measured, what triggers it, or what happens after it fires. That is the part that decides whether the setting actually protects you.
Equity Stop vs. Balance Drawdown: Pick the Right Measure
MT5 robots typically expose drawdown limits in one of two ways, and they are not interchangeable:
- Balance-based drawdown compares current equity to the highest closed balance. It ignores floating losses on open trades, so a robot can be deep underwater on open positions while the balance figure still looks healthy.
- Equity-based drawdown compares current equity (balance plus floating P/L) to the peak equity. This is the stricter, more honest measure for automated systems because it captures open risk in real time.
For a robot that holds positions through volatility, set the circuit breaker on equity, not balance. A balance-based limit can let a losing basket of trades run until they close, which is exactly when the damage is already done.
Daily Loss Limits: The Math
A daily loss limit caps how much the robot can lose in one session. Set it as a percentage of starting-of-day equity, not a fixed dollar figure, so it scales with the account.
Worked example: $25,000 equity at the start of the session, 2% daily loss limit.
- Daily loss cap: $25,000 × 0.02 = $500
- If the robot is down $500 in realized plus floating loss, it stops opening new trades for the rest of the day.
- If the robot is down $500 and still has open positions, the rule should also decide whether to close them or let them run to their stops.
A common pattern is to pause new entries at the soft limit and flatten everything at a hard limit set roughly 1.5x to 2x the soft limit.
Cooldowns and Restart Criteria
A circuit breaker without a restart rule gets overridden the first time it triggers. Define three things in advance:
- Cooldown length. A fixed pause, commonly the remainder of the session plus the next session, prevents the robot from re-entering the same losing condition immediately.
- Restart condition. Options include manual review, a required winning demo period, or a time-based reset at the next session open. Manual review is the safest for live accounts.
- State reset. Confirm whether the drawdown counter resets at the daily boundary or only after equity recovers to a defined level. If it resets every day, a slow bleed can stay under the daily limit while the account still declines.
Many MT5 robots implement drawdown limits inside the EA, which means the protection only works while the terminal is running, the robot is attached to a chart, and the connection is live. If the VPS drops or you close the terminal, the circuit breaker is gone. Broker-side stop-out levels and margin calls are the only protections that survive a disconnect, know where yours sit.
Where to Set Each Limit
| Limit | Measure | Typical Starting Point | Where It Lives |
|---|---|---|---|
| Daily loss (soft) | Equity vs. start-of-day | 2% of equity | Robot inputs |
| Daily loss (hard) | Equity vs. start-of-day | 3%-4% of equity | Robot inputs |
| Max drawdown | Equity vs. peak equity | 10%-20% of equity | Account level |
| Cooldown | Time | Rest of session + next | Robot inputs |
A drawdown limit that you override the first time it triggers is not a drawdown limit. It is a suggestion. Decide the rule in advance, write down the restart condition, and treat it as final.
How to Backtest an MT5 Robot Before It Goes Live
Backtesting an MT5 robot means running the strategy against historical price data to see how your chosen settings would have performed. It is the cheapest mistake you will ever make. But “run the Strategy Tester” is not a workflow, it is a button. The steps below are the ones that separate a setting that looks good on a curve from one that survives live conditions.
Step 1: Choose the Right Modeling Mode
MT5’s Strategy Tester offers several modeling modes, and the fastest one is the least realistic. For risk-management validation, use a mode that models real ticks or at minimum every tick based on real ticks.
Include spread and commission in the test. A strategy that looks profitable at zero cost can flip to a net loser once a realistic spread is applied, and your position-sizing math depends on that cost being present.
Step 2: Split the Data In-Sample and Out-of-Sample
Do not optimize and validate on the same period. A standard split is roughly 70% in-sample for tuning and 30% out-of-sample for validation, with the out-of-sample period kept untouched until the settings are frozen.
Run the robot across at least two distinct market regimes, for example, a trending stretch and a ranging or high-volatility stretch. A setting that only works in one regime is not a risk setting; it is a bet on that regime continuing.
Step 3: Run a Sensitivity Check
Change one input at a time and re-run. If a small change in risk-per-trade, stop distance, or max open trades causes a large swing in drawdown or profit factor, the setting is fragile.
A practical rule: if moving risk per trade from 1.0% to 0.8% or 1.2% changes the equity curve shape dramatically, the strategy is overfit to that input.
Step 4: Forward Test on Demo With the Exact Live Settings
Backtests show how a strategy behaved. Forward testing shows how it behaves now. Run the robot on a demo account for several weeks with the exact settings you plan to use live, same risk per trade, same stop distance, same max open trades, same daily loss limit.
Compare three numbers between backtest and demo:
- Maximum drawdown, if demo drawdown is far larger than the backtest suggested, the settings are not ready.
- Average trade duration, large differences often signal execution or spread issues the backtest did not model.
- Win rate and average win/loss, a shift here usually means the entry logic is behaving differently in live conditions.
If any of the three diverges materially, reduce risk per trade and test again before going live.
Step 5: Document the Settings Before Deployment
Write down the exact input values you validated, the period tested, and the drawdown observed. When the robot later hits a drawdown limit, you need the baseline to know whether the behavior is within expectations or a sign the settings no longer fit the market.
Run the same validation on a second broker’s demo if you can. Spread, execution, and stop-level rules differ between brokers, and a setting that holds on one feed can behave differently on another. The risk controls should be robust to that difference, not tuned to one feed.
MetaTrader 5 Strategy Tester documentation
Portfolio-Level Risk Controls Across Robots and Symbols
Portfolio-level controls manage total exposure across every robot and symbol on the account, not just one. This is where most retail setups fall apart.
If you run three robots that all trade EUR/USD, GBP/USD, and USD/CHF, you do not have three strategies. You have one dollar-direction bet placed three times.
| Control | What It Limits | Where to Set It | Typical Starting Point |
|---|---|---|---|
| Risk per trade | Loss on one position | Each robot’s inputs | 0.5%-1% of equity |
| Maximum open trades | Simultaneous positions | Each robot’s inputs | 1-3 per robot |
| Daily loss limit | One session’s total loss | Account or robot level | 2%-3% of equity |
| Maximum drawdown | Total account decline | Account level | 10%-20% of equity |
| Correlated exposure | Same-direction bets | Manual review | Cap by currency, not robot |
We group portfolio controls into three layers: per-trade limits, per-robot limits, and account-wide limits.
Traders running two or more MT5 robots at once, or a single robot across several correlated currency pairs.
MetaTrader 5 automated trading documentation
Frequently Asked Questions
What are the best risk management settings for an MT5 robot?
Start with 0.5% to 1% risk per trade, a hard stop-loss on every order, and a maximum drawdown limit of 15% to 20% of account equity. Add a daily loss limit, cap maximum open trades at three to five, and restrict the robot to one or two symbols while you validate performance. These risk management settings keep a single bad stretch from wiping out months of gains, and you can tighten them further once live results confirm the robot behaves as tested.
Should I use a fixed lot size or risk-based position sizing in MT5?
Risk-based position sizing is safer for most traders because it adjusts lot size to your account equity and stop-loss distance automatically. A fixed lot ignores account growth or shrinkage, so the same 0.10 lot carries more relative risk after a drawdown. Use fixed lots only when you are testing a new robot on a small account, then switch to percentage risk once the settings prove stable across different market conditions.
What is a safe maximum drawdown for a trading robot?
Most traders treat 15% to 20% as the outer limit for maximum drawdown settings on a forex robot. Anything above 30% is difficult to recover from because a 30% loss requires a 43% gain just to break even. Set the drawdown limit in the robot’s inputs so it pauses trading when equity falls below that threshold, and review the setting after every backtest to confirm the strategy stays within it during volatile periods.
How do I set a stop loss for an MT5 Expert Advisor?
Open the Expert Advisor’s input parameters and look for the stop-loss field, usually measured in points or pips. Set it based on the strategy’s average losing trade from backtest data, not a round number. If the EA has no stop-loss input, add one through the code or use a risk manager EA that enforces protective orders on every position. Always verify the stop-loss appears on live trades after you attach the robot.
How do I backtest risk settings for an MT5 EA?
Run the Strategy Tester in MT5 with at least five years of tick data, then change one risk setting at a time and compare results. Check maximum drawdown, profit factor, and recovery factor, not just net profit. After backtesting, forward test on a demo account for four to six weeks to confirm the robot behaves the same with live spreads and slippage. Only then move to a small live account with the validated risk management settings.
Risk management settings are the difference between a robot that trades and a robot that survives. The hard part is not understanding the concepts; it is applying them consistently across every system you run. EZMT5 gives you instant access to 11 fully built, optimized MT5 trading systems with real-time trade opportunities, two changeable license keys per system, and no contract to lock you in. Get started with EZMT5 and put tested risk controls behind every automated trade you place.

