TL;DR. MetaTrader 5 has no built-in way for a trader to lock themselves out after a bad day. A risk manager EA fills part of the gap: it watches the account and closes positions once your limit is hit. It does this after the order fills, and only while the terminal it runs on is open. Anyone who can add an EA can remove it. The honest setup combines an EA (to close), a VPS (to keep it running) and a read-only witness (to see what the EA misses).
What MT5 offers natively
On futures platforms like TopstepX or Tradovate, the platform's own servers can lock you out after a daily loss. MT5 is different. Its risk controls are on the broker's side: margin calls, stop-outs, and whatever limits the broker or prop firm configures. A trader can't set a personal "stop me at −2% today" in MT5 itself.
That leaves three options:
- Broker or firm settings. Rarely available to retail traders, and not personal.
- A risk manager EA running in your terminal.
- A read-only witness that watches the account from outside.
What a risk manager EA actually does
"Risk manager EA", "equity protector", "drawdown limiter" and "daily loss EA" all describe roughly the same thing: an Expert Advisor attached to a chart that monitors your account and acts when a rule is crossed.
Typical features:
- Daily loss closure: when equity falls a set amount below the day's start, close all positions.
- Lock mode: after the limit, close any new position as soon as it opens, and delete pending orders when they're placed, until the next day.
- Max trades per day: close the position that exceeds your count.
- Max position size: partially close anything above your size cap.
- Session window: close positions opened outside your trading hours.
Some also add visual friction (an overlay on the chart), sounds, or alerts to your phone.
How it works under the hood (and why it's "after fill")
An EA runs inside your MetaTrader terminal. It receives events from the account, such as "a deal was added" or "an order was placed", and can send its own orders in response.
This means an EA can't stop an order before it reaches the broker. The sequence is:
- You (or your phone app, or another PC) send an order.
- The broker fills it.
- The EA sees the new deal on the account.
- The EA sends a closing order, usually within a second or two.
Your position exists for that short window, and you pay the spread and commission on the round trip. On a calm market that's small. On gold during news or at rollover, a single round trip on a large position can cost hundreds of dollars, and on a prop account that cost counts toward the firm's daily loss limit.
Pending orders are the exception: the EA can delete them as soon as they're placed, before they fill.
The four honest limits of any MT5 EA
1. It only works while the terminal runs
If your PC is off, asleep or disconnected, the EA does nothing. A trade from your phone while your desktop is off goes through untouched. Running the terminal on a VPS keeps it on 24/5. But check your firm's rules first: Goat Funded Trader, for example, prohibits VPN, VPS, proxy and hosting services while trading on any account from 6 October 2026, per its EA help page.
2. Anyone who can add it can remove it
The most honest sentence about MT5 risk tools came from a moderator on the MQL5 forum: "If you can add an EA, you can remove it" (MQL5 forum). Remove the EA, disable Algo Trading, or close the terminal, and the rule is gone. A well-built EA can detect that it was removed and tell someone. It can't prevent it.
3. It reacts after the fill
As above: each attempt during a lock costs money. A tilted trader who keeps re-entering pays for every closed attempt.
4. It only sees its own account
An EA attached to account A knows nothing about account B, another firm's challenge, or a different broker. Multi-account traders need one per terminal and account, each configured separately.
None of this makes EAs useless. It means they are a close-after-fill tool, not a wall, and you should know that before you rely on one.
What prop firms allow
EA policies vary a lot, sometimes between programs of the same firm. A risk manager EA is usually treated more leniently than a trading bot, but not always. From the firms' own pages, checked 14 November 2026:
| Firm (program) | EA policy, in short | Source |
|---|---|---|
| FTMO (Challenges and Instant) | EAs allowed; EA-driven hyperactivity (over 2,000 server requests a day) forbidden; no third-party access to the account | ftmo.com |
| E8 Markets (E8 One, E8 Pro) | EAs and bots allowed, including third-party, within limits (2,000 server requests a day, 100 open orders) | help.e8markets.com |
| Alpha Capital Group (Alpha Pro, One, Three) | MT5 only, prior approval required; only risk-management or trade-assistance EAs | help.alphacapitalgroup.uk |
| Alpha Capital Group (Alpha Direct) | EAs disabled | help.alphacapitalgroup.uk |
| The5ers | Not banned outright; EAs whose source code you don't own and EAs generating excessive server requests are among those prohibited | the5ers.com |
| FundedNext (Stellar) | EAs and VPS only on 5K–25K accounts via the official paid add-ons | fundednext.com |
| FXIFY (1-Phase) | Allowed with prior approval | intercom.help/fxify |
| FXIFY (Instant Funding Lite, Lightning) | Prohibited | intercom.help/fxify |
| Maven Trading | EAs and automated trading prohibited; all trades manual | maventrading.com |
| Goat Funded Trader | Only EAs you built yourself; no third-party EAs | help.goatfundedtrader.com |
Funding Pips states that third-party EAs are permitted only as a trade or risk manager (help.fundingpips.com); we have not yet verified that page ourselves.
If your firm requires approval or bans third-party EAs, the read-only witness described below is often still possible, because it doesn't trade or run inside the terminal. Check with your firm.
The missing piece: a read-only witness
MT5 accounts have two passwords: the master (trading) password and the investor password, which gives read-only access. A service connected with the investor password can see every trade on the account, from any device, but can't place, change or close anything.
A witness fixes the EA's blind spots:
- Terminal off? The witness still sees the phone trade.
- EA removed? The witness sees trades continue with nothing closing them.
- Another device? Every deal on the account is visible.
What a witness can't do is stop or close a trade. Its power is visibility: an alert to you, to a partner, and a mark in your record. That sounds weak until you've had to explain a rule break to someone you respect.
A sensible MT5 setup
- Decide your rules while calm. Daily loss inside the firm's limit, max losing trades, cool-down after a loss, session end. Use a position size calculator so three full losses stay inside your daily limit.
- Check your firm's EA policy on its own page. Ask for approval if needed.
- Run the EA on the terminal you trade from, or on a VPS if your firm permits it.
- Connect a read-only witness with your investor password.
- Name a witness person, a friend, mentor or trading partner, who is told when a rule breaks.
- Make loosening slow. If you can change your EA's limit in its input dialog at −$180, it's a suggestion.
How Mast works on MT5
On MetaTrader 5, Mast closes and witnesses. Our EA closes positions and locks you out while your terminal runs. A read-only witness, connected with your investor password, sees trades from any device. It does not stop orders before they fill. We never ask for your master password.
What Mast adds beyond a standard risk manager EA:
- Rules live on the server, not in the EA dialog. Tightening applies at once. Loosening waits your chosen delay (24 hours by default), or your partner's approval. Reinstalling the EA re-applies an active lock.
- Bypass detection. Removing the EA, disabling Algo Trading, or trading from a device the EA can't see alerts your partner and shows in your score.
- The cost of attempts, made visible. During a lock, the chart overlay shows what closed attempts have cost today and how much room is left before the firm's daily limit.
- Witness first. Onboarding starts with the read-only witness: connect your investor password and see 90 days of history and what tilt cost you, before you install anything.
Read more on our MT5 daily loss lock page.
Start with what you can see
Start free on Mast: connect an MT5 account with your investor password and get a real daily-loss lock on one account. Or run the free Tilt Audit on an MT5 HTML or XLSX report. It reads the file in memory on our server and stores nothing.
Frequently asked questions
Can MT5 stop me from trading after a daily loss?
Not natively. MetaTrader 5 has no trader-side daily loss lock. A risk manager EA can close positions and delete pending orders after a limit is reached, but only while the terminal it runs on is open and connected.
Does a risk manager EA stop orders before they fill?
No. An EA reacts to events on the account. A new order goes through, and the EA closes the resulting position within a second or two. Each closed attempt still costs spread and commission.
Will a risk manager EA catch trades from my phone?
Yes, if the terminal running the EA is open and connected at the time, because it sees every deal on the account. If that terminal is off, it can't act. A VPS keeps it running; a read-only witness sees the trade either way.
Are risk manager EAs allowed at prop firms?
It depends on the firm and program. FTMO allows EAs within its hyperactivity limits. Some firms require prior approval, some only allow EAs you own, and some, like Maven Trading or Alpha Capital Group's Alpha Direct, prohibit EAs. Check the firm's own policy page.
What is a read-only witness on MT5?
A connection using your investor password, which can see all trades on the account but cannot trade. It detects trades from any device, even when your EA terminal is off, and can alert you or a partner.
Sources
Firm policies checked on the firms' own pages on 14 November 2026, except Funding Pips (not yet verified).
- MQL5 forum: https://www.mql5.com/en/forum/500894
- FTMO forbidden trading practices: https://ftmo.com/en/forbidden-trading-practices/
- E8 Markets EA policy: https://help.e8markets.com/en/articles/5515409-can-i-use-indicators-or-expert-advisors-when-trading-the-e8-account
- Alpha Capital Group EA policy: https://help.alphacapitalgroup.uk/en/articles/6934236-can-i-use-an-expert-advisor-ea
- The5ers prohibited practices: https://the5ers.com/faqs/prohibited-trading-practices/
- FundedNext trading objectives: https://fundednext.com/general-rules/cfds/trading-objectives
- FXIFY program pages: https://intercom.help/fxify/en/articles/14834059-the-1-phase-account · https://intercom.help/fxify/en/articles/14939653-the-instant-funding-lite-account
- Maven Trading FAQ: https://maventrading.com/faqs
- Goat Funded Trader EA policy: https://help.goatfundedtrader.com/en/articles/10749630-can-i-use-expert-advisors-eas
- Funding Pips (not yet verified): https://help.fundingpips.com/hc/en-us/articles/34505029138449-Trading-Conduct-and-Security-Standards