MT5 EA Drawdown Management — Auto-Stop Settings and Mental Discipline
Contents
- What Is Drawdown?
- DD Is Unavoidable
- Understanding DD Statistically
- Normal DD vs. Dangerous DD
- Normal Range
- Warning Signs
- MaxDailyLossPct — Setting a Daily Loss Limit
- Recommended Settings
- MaxDrawdownPct — Setting an Overall DD Ceiling
- Recommended Settings
- What to Do — and What Not to Do — During DD
- Do These
- Never Do These
- Understanding Consecutive Losses Statistically
- Resuming After an Auto-Stop
- Summary
- FAQ
- Q: Why is the real-world DD larger than what the backtest showed?
- Q: How long does a drawdown period typically last?
- Q: Should I switch to a demo account and keep testing there during DD?
- Q: Can multiple EAs all hit drawdown at the same time?
- Q: Is it okay to set MaxDailyLossPct to 0 (unlimited)?
- Q: During a drawdown, is halving my lot size a reasonable compromise?
- Related Pages
MT5 EA Drawdown Management — Auto-Stop Settings and Mental Discipline
The hardest part of running an EA is watching a losing streak drag on. Day after day in the red, and the same questions surface: "Is something broken?" "Should I shut it down?" This article covers how to read drawdown (DD) correctly and how to manage it through configuration — not emotion.
What Is Drawdown?
Drawdown (DD) is the percentage decline in account balance or equity from its most recent peak.
Drawdown = (Peak Balance − Current Balance) / Peak Balance × 100%
Example: $10,000 → $9,200 → DD = 8%
EA performance reports typically show two types of drawdown:
| Type | Meaning |
|---|---|
| Maximum Drawdown | The largest DD recorded over the entire backtest period |
| Relative Drawdown | Maximum DD as a percentage from peak equity |
| Absolute Drawdown | DD measured from the initial starting balance |
The figure most commonly reported is maximum drawdown (in absolute dollars or as a percentage).
DD Is Unavoidable
One critical fact to accept: every EA will experience drawdown at some point. What matters is its magnitude and recovery speed.
Even professionally managed hedge funds see 5–15% DD per year. Any EA that advertises "zero drawdown" is either hiding its risk or was backtested over too short a period.
Understanding DD Statistically
If an EA's parameters haven't changed, drawdown is part of an expected-value probabilistic process.
Just like flipping a coin produces heads and tails, an EA wins and loses in a probabilistic pattern. Even if a 10-year backtest showed a maximum DD of 15%, that full DD could easily be concentrated into a single one- or two-year window.
Normal DD vs. Dangerous DD
Normal Range
- The current DD remains within the maximum DD seen in backtesting
- Positions are opening normally and there are no errors in the log
- The current market environment is one the EA handles poorly (e.g., a trend-following EA during a prolonged sideways market)
Warning Signs
- Current DD has grown significantly beyond the backtest maximum (1.5× or more)
- Continuous errors are appearing in the MT5 Experts tab
- The EA has stopped entering trades (stuck behind a filter condition)
- Broker spreads have suddenly widened
MaxDailyLossPct — Setting a Daily Loss Limit
The EAs on this site include a MaxDailyLossPct parameter.
MaxDailyLossPct = 3.0
→ If the account loses 3% or more in a single day, new entries are halted for the rest of that day.
This is a safety valve that caps single-day losses. It prevents losses from snowballing on days when the market moves sharply in one direction — such as major economic data releases.
Recommended Settings
| Number of Active EAs | Recommended MaxDailyLossPct |
|---|---|
| 1 | 3.0–5.0% |
| 2–3 | 2.0–3.0% per EA |
| 4 or more | 1.5–2.0% per EA |
Note: The daily loss limit only stops new entries for that day. Open positions are not closed.
MaxDrawdownPct — Setting an Overall DD Ceiling
Some EAs include a MaxDrawdownPct parameter (or similar).
MaxDrawdownPct = 20.0
→ If the account balance drops 20% from its peak, the EA shuts down completely.
This functions as a bankruptcy prevention valve. It serves as insurance against unexpected worst-case scenarios — a misconfigured parameter, extreme broker slippage, or a sudden market shock that causes DD to blow past expectations.
Recommended Settings
Set this to 1.5–2.0× the backtest maximum DD.
Example: Backtest max DD = 12%
→ Set MaxDrawdownPct = 20–25%
What to Do — and What Not to Do — During DD
Do These
1. Check the logs First, look at the MT5 Experts tab for errors. If errors are present, the problem may be in the EA's configuration.
2. Assess the market environment Determine whether the current market regime plays to the EA's strengths or weaknesses. A trend-following EA losing repeatedly during a range-bound market is working exactly as designed.
3. Compare against the backtest Check whether the current DD falls within the range observed over the past 10-year backtest. If it does, the EA is functioning normally.
Never Do These
1. Change parameters Tweaking parameters during a drawdown is the worst possible move. The more you try to "optimize for current conditions," the worse your future performance tends to be.
2. Suddenly increase lot size Bumping up lot size to "make back losses" means the next stop-loss hit lands with far greater damage.
3. Close positions manually out of emotion If you chose to trust this EA's strategy and let it run, manually exiting during a drawdown only locks in losses.
4. Pause the EA and wait Stopping during a losing streak and restarting during recovery is statistically one of the most loss-generating patterns possible.
Understanding Consecutive Losses Statistically
When you flip a coin 100 times, getting 8 or 9 heads in a row isn't rare. In the same way, an EA with a 50% win rate losing 8–10 trades in a row is statistically well within normal expectations.
| Win Rate | Probability of 5 Losses in a Row | Probability of 10 Losses in a Row |
|---|---|---|
| 60% | 1.0% | 0.01% |
| 50% | 3.1% | 0.1% |
| 40% | 7.8% | 0.6% |
"10 losses in a row means the EA is broken" is the wrong interpretation. The right one: "10 losses in a row is something that can statistically happen roughly once every 50 occurrences."
Resuming After an Auto-Stop
If the EA stopped via MaxDailyLossPct, it will automatically resume trading the next day. If it stopped via MaxDrawdownPct, a manual restart is required.
Pre-restart checklist:
- Checked the MT5 Experts tab for errors?
- Compared the current DD against the backtest DD?
- Checked for any significant change in market regime?
- Confirmed that no parameters have been changed?
If everything looks clean, restart with the same settings and let it run.
Summary
Drawdown is an unavoidable part of running an EA. The key takeaways are:
- Follow the auto-stop rules you configured beforehand (MaxDailyLoss / MaxDrawdown)
- Judge the EA's health using logs and backtests — not feelings
- Understand what constitutes a statistically normal DD, and don't stop the EA if you're within that range
The urge to stop the EA is human instinct. But the whole advantage of automated trading is that it keeps following the rules. Configuring your auto-stop thresholds in advance is the single most important step for eliminating emotional interference.
FAQ
Q: Why is the real-world DD larger than what the backtest showed?
The main causes are: ① backtests don't account for slippage; ② actual spreads are wider than assumed; ③ the backtest data quality was poor (coarse tick data); ④ current market conditions differ substantially from the backtest period. Expect real-world DD to run approximately 1.5× the backtest maximum.
Q: How long does a drawdown period typically last?
It depends on the EA's strategy, but swing-style EAs commonly go through DD periods of 2–4 weeks. Scalping EAs experience shorter DD periods but they occur more frequently. Check the longest DD duration in your backtest, confirm you can tolerate that length of time, and then go live.
Q: Should I switch to a demo account and keep testing there during DD?
If the DD is within 1.5× the backtest maximum DD and there are no errors in the log, there is no need to revert to demo. However, if DD has exceeded that threshold or errors are persistent, return to demo and investigate the cause.
Q: Can multiple EAs all hit drawdown at the same time?
Yes. When a major market-wide event occurs — US CPI, FOMC, geopolitical shocks — even EAs with different correlations can enter drawdown simultaneously. This is exactly why total portfolio risk management is so important.
Q: Is it okay to set MaxDailyLossPct to 0 (unlimited)?
Technically possible, but not recommended. You lose all protection during sessions with concentrated losses — major data releases, sudden market gaps. A minimum setting of 3–5% is strongly advised.
Q: During a drawdown, is halving my lot size a reasonable compromise?
"Rather than stopping the EA, halve the lot size and keep it running" is a valid middle-ground approach. That said, you will also recover at half speed during the rebound. Any lot size change counts as a parameter modification — always record the reason and the date.
Related Pages
Related
2026-07-07
AutoTrading Disabled in MT5: Fix Retcodes 10027 & 10026 (EA Not Trading)
2026-07-07
Invalid Stops in MT5: Fix Retcode 10016 & MT4 Error 130
2026-07-07
Market Closed in MT5: Fix Error 10018 & 132 (Even on Weekdays)
2026-07-07
Off Quotes & Requote in MT5: Fix Errors 10021 / 10004 (and MT4's 136 / 138)
5-Day Email Course (Free)
Get one email a day covering the essentials of FX automated trading, how to read backtests correctly, and tips for choosing a broker.
* Privacy strictly protected. You can unsubscribe at any time.