What to Do When an EA Hits a Losing Streak
A run of losses is not by itself proof that an EA has stopped working. This article covers how often streaks appear at a given win rate, how to write pause rules in advance, and how to run a risk review that ends in a decision.
Key takeaways
- A streak alone tells you little: at a hypothetical 40% win rate, several all-loss five-trade windows in 100 trades is unremarkable arithmetic.
- Decide your reduce and stop levels before the EA starts trading, so the decision is not made while stressed.
- Rule out technical causes — connection, settings, spread, broker changes — before judging the strategy itself.
- Never increase lot size to recover losses; that is how a drawdown becomes a wipe-out.
In this article
- A losing streak is a number, not a verdict
- How often streaks show up: hypothetical arithmetic
- First, rule out a technical fault
- Compare the drawdown with the tested range
- Pause rules worth writing before you need them
- The risk review: execution first, then strategy
- A written reset protocol, with the arithmetic
- What to check next, in order
A losing streak is a number, not a verdict
A losing streak is a run of consecutive losing trades. It feels like evidence that something has broken. It is information, not a verdict.
That distinction matters because the wrong reaction — changing entries, stops and targets after every loss — makes it impossible to learn whether the original method was followed or whether the change caused the difference. Once you start adjusting after each loss, you have no clean comparison left.
At a hypothetical 50% win rate, the chance that any single five-trade block is all losses is about 3.13% — uncommon in one block, but across a few hundred trades such runs are expected to appear. The next section puts numbers on that.
How often streaks show up: hypothetical arithmetic
The table below is a simple calculation, not a market statistic. It assumes a fixed win rate and that each trade is independent of the last. Real trading only approximates those assumptions, so treat the figures as an illustration of scale.
| Win rate (hypothetical) | Chance a given 5-trade block is all losses | Expected all-loss five-trade windows in 100 trades |
|---|---|---|
| 60% | 1.02% | about 1 |
| 50% | 3.13% | about 3 |
| 40% | 7.78% | about 7 to 8 |
| 30% | 16.81% | about 16 |
The second column is the probability that a given five-trade block is all losses, and it equals (1 minus the win rate) raised to the fifth power. At a 50% win rate that is 0.50 to the fifth, or 0.03125 — 3.13%. At a 40% win rate it is 0.60 to the fifth, or 0.07776 — 7.78%. The third column multiplies that by roughly 96 overlapping five-trade windows in a 100-trade sample.
Because those windows overlap, the third column counts windows, not separate streaks. A single six-loss run contains two all-loss five-trade windows, so the number of distinct streaks is lower than the count shown. Read the column as a measure of how much all-loss clustering to expect, not as a tally of separate events.
The practical reading: at a 40% win rate, several all-loss five-trade windows inside a hundred trades is unremarkable arithmetic. A streak on its own tells you very little. What matters is whether the outcomes, execution and market conditions still fit the expectations written into the strategy — and that is a question about a defined sample, not about the last five trades. If you want to see how position size and win rate interact, the risk-of-ruin calculator is a reasonable place to start.
First, rule out a technical fault
Before you judge the strategy, check whether the strategy actually ran as designed. Rule out a technical problem first — connection, settings, spread and broker changes.
- Connection: did the terminal stay online, or did trades get delayed or missed?
- Settings: confirm the inputs on the live chart match the ones you tested. A changed lot mode, magic number or session filter is easy to miss.
- Spread and commission: wider spreads turn small wins into losses on tight-target systems. Compare current spreads with the ones in your test.
- Broker changes: a swap in account type, leverage, symbol suffix, contract size or execution model changes the economics of every trade.
If any of those changed, you do not have a strategy result. You have a technical result. Fix the cause first, then re-examine the trades.
Compare the drawdown with the tested range
A drawdown is the fall from a previous peak in balance or equity. Every strategy has losing runs, and a backtest report shows the maximum drawdown that occurred in the tested period. That number is your reference point, not a promise about the future.
The useful split is this: a drawdown inside the tested range, with the EA behaving as designed, is uncomfortable but expected. A drawdown beyond the tested range, or one accompanied by behaviour you did not design for — trades at odd hours, position sizes that do not match the rules, missing stop losses — needs investigation.
Recovery arithmetic explains why the size of the hole matters so much. A 10% loss needs about an 11% gain to get back to the same equity. A 20% loss needs 25%. A 50% loss needs 100%. The deeper the hole, the more the maths works against you, which is the whole argument for pausing early rather than trading through.
Pause rules worth writing before you need them
A pause rule is a pre-committed condition that stops or shrinks trading. The point is that you decide it while calm, not while staring at a red screen. Published EA designs show several ways to build one.
One published pattern, described in the MQL5 article Fortified Profit Architecture, is a circuit breaker: when consecutive losses reach a set number, or drawdown reaches a set percentage, the EA sets a global pause flag and stops trading. A second published pattern, from an MQL5 blog post on loss-streak protection, is a graduated ladder — behave normally after one loss, reduce risk after two, activate a soft cooldown after three, and trigger a deeper protective mode after four.
A more formal version is a governance ladder based on drawdown thresholds. In the governance-logic EA published on MQL5, the settings are 2% drawdown for CAUTION, 5% for RESTRICTED and 7% for LOCKDOWN, with hard limits at 10% drawdown and 5% daily loss that block all trading.
| Level (example) | Trigger | What the EA does |
|---|---|---|
| CAUTION | 2% drawdown | Lot multiplier 0.5, maximum 1 position, at least 60 seconds between trades |
| RESTRICTED | 5% drawdown | Held for 180 seconds before any downgrade |
| LOCKDOWN | 7% drawdown | Held for 300 seconds |
| Hard limits | 10% drawdown or 5% daily loss | All trading blocked |
In that same design, equity must recover to 99% of its peak before the EA downgrades a level, so a small bounce does not immediately restore full risk.
Other published designs are simpler. The Royatvand/mql5-risk-manager locks after N consecutive losing closes in a day, using InpMaxLossStreak (default 0), and also locks at a set equity drawdown from the peak. The yegorsokolov/MQL5 repository closes all trades and starts a cooldown if floating drawdown breaches a default 0.9% limit, and has a separate soft loss-streak guard that triggers a bar-based cooldown. A commercial strategy builder, AlfaTactix, offers a daily loss limit that closes all trades, cancels pending orders and opens nothing new until the next trading day, plus a losing-streak rule that closes trades and pauses until the next day or a restart.
None of these designs is inherently better. The common thread is that the rule exists in writing before the streak, and it does something specific rather than relying on your judgement in the moment.
The risk review: execution first, then strategy
Once the technical checks are clean and the drawdown is inside the tested range, the review is about evidence. Start with the three questions that actually separate causes.
- Was the plan followed? A trade taken early, oversized, or managed outside the written rule is an execution issue. It should not be used as clean evidence for or against the strategy.
- Was the market doing something the design did not anticipate? Spreads, volatility and session behaviour change. If the EA trades a condition that no longer exists, that is a design question, not a discipline question.
- Is the sample big enough to mean anything? Five trades is noise. Review a defined sample rather than the most recent trade.
Two rules keep the review honest. First, do not change several inputs at once, because you cannot tell which one helped or hurt. Second, never increase lot size to recover a loss — that is how a drawdown becomes a wipe-out. Document each change with the date, the input and the reason, so the next review has something to compare against.
A written reset protocol, with the arithmetic
A reset protocol is a written sequence you start when a trigger is hit. One published version has four parts: stop and review, size down, trade only your best setups, and a defined way back to normal risk.
Suggested triggers from that source include five losses in a row, a drawdown of 5R from your equity peak (R being the amount risked per trade), or two rule breaks in one week. Those are starting points to adapt, not standards.
Here is what the size-down step does, using hypothetical numbers. Say you risk 1% of equity per trade and take five more losses. Compounding, 0.99 to the fifth power is 0.951, so you are down about 4.90%. Halve risk to 0.5% and five more losses cost about 2.48% instead: 0.995 to the fifth power is 0.975. The trade-off is arithmetic rather than opinion: at 1% risk a 1R winner adds roughly 1% of equity, at 0.5% it adds roughly 0.5%, so covering the same percentage distance back to the old high takes about twice as many net R of gains.
Size also changes how long you last before some triggers fire, but not all of them. A trigger measured in R does not move: 5R means five times whatever you risk per trade, so it is reached after the same five losing R whether you risk 1% or 0.5%. Count-based triggers such as five losses in a row or two rule breaks in a week are likewise unaffected by position size — halving risk does not buy you a single extra loss before they fire. Only a percentage-equity trigger, such as a 5% drawdown from peak, arrives later when each trade risks less, because each loss removes a smaller slice of the account.
That trade-off is the entire point of a reset. You are not trying to win the money back quickly. You are trying to stay in the sample long enough to make a decision based on data rather than on how you feel.
What to check next, in order
If you are dealing with a streak right now, work down this list rather than improvising.
- Rule out a technical problem first. Connection, settings, spread and broker changes — if any of those moved, the results are not comparable with your test.
- Measure the drawdown against the tested maximum. Inside the range and behaving normally means the plan is working as designed. Outside the range means investigate before adding risk.
- Score each trade in the streak for plan adherence. Separate execution errors from strategy outcomes.
- Apply your pre-written pause or size-down rule. If you never wrote one, write it now, before the next streak.
- Change one variable at a time and document it. Note the date, the input, and why.
If you are trading a funded account, add the firm's rules to the list. A daily loss limit and a maximum overall loss limit are separate rules with separate consequences: in one published strategy builder, the daily limit closes the strategy's trades and blocks new ones until the next trading day, while the maximum drawdown limit closes trades and cancels pending orders. Read your own firm's definitions rather than assuming they match.
Finally, remember what a streak cannot tell you. It cannot tell you the strategy is dead, and it cannot tell you it will recover. It is one input into a review that should already have been defined.
Frequently asked questions
Should I switch my EA off after three losses in a row?
Not automatically. Three losses is a small sample — at a hypothetical 50% win rate, three losses in a row has a 12.5% chance in any given three-trade block, so it will appear in a long run of trades. A better trigger is a rule you wrote in advance, such as a set number of consecutive losses, a drawdown threshold, or a defined number of rule breaks.
How many losses in a row is normal for a gold EA?
It depends on the EA's own win rate, and the figures here are not specific to gold. At a hypothetical 50% win rate, the chance that any given five-trade block is all losses is about 3.13%, so a five-loss run is uncommon in a single block but expected to appear occasionally across a few hundred trades. At 40%, the chance rises to about 7.78% per block.
Can I increase lot size to recover a losing streak faster?
No. Increasing size to recover a loss is how a drawdown becomes a wipe-out. The published reset protocol runs the other way: reduce risk per trade, trade only your best setups, and define the conditions for returning to normal size.
How long should a pause last?
There is no universal answer. Published EA designs use fixed windows such as 180 or 300 seconds at a given protection level, or pause until the next trading day. What matters is that the duration is defined in advance and that you review the streak before trading resumes.
Free tools mentioned in this article
Related guides: What is drawdown?.
Sources
- Fortified Profit Architecture: Multi-Layered Account Protection - MQL5 Articles – mql5.com
- Loss Streak Protection in Algorithmic Trading: Why Smart MQL5 EAs Reduce Risk Instead of Forcing Trades – mql5.com
- Engineering Trading Discipline into Code (Part 7): Automating Equity Protection Through Governance Logic – mql5.com
- yegorsokolov/MQL5 – github.com
- Royatvand/mql5-risk-manager – github.com
- MT5 Prop Firm EA Rules: Daily Loss, News, Lots (2026) – AlfaTactix
- EA in Drawdown: What to Do (and What Not to Do) – forexcopilotea.com
- How to Know When a Forex Strategy Is Not Working – tradingforexforprofit.com
- How to Trade After a Losing Streak: A Data-First Reset – pipsdecoded.com
Sources checked on 23 November 2026. Rules and figures from third parties can change, so check the original before relying on them.
More from the blog
Want to test an EA on your own platform?
Gold Rush Algo is an MT5 Expert Advisor for XAUUSD. Download the free backtest version and judge it with your own numbers before deciding anything.
