Zum Inhalt springen

Guides

MT5 risk manager EA explained: what it can enforce, and what it can't

An honest guide to MetaTrader 5 risk manager and equity protector EAs: how they close trades, why they only work while the terminal runs, what prop firms allow, and how a read-only witness closes the gap.

By Oscar · Mast · Published

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:

  1. Broker or firm settings. Rarely available to retail traders, and not personal.
  2. A risk manager EA running in your terminal.
  3. 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:

  1. You (or your phone app, or another PC) send an order.
  2. The broker fills it.
  3. The EA sees the new deal on the account.
  4. 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 shortSource
FTMO (Challenges and Instant)EAs allowed; EA-driven hyperactivity (over 2,000 server requests a day) forbidden; no third-party access to the accountftmo.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 EAshelp.alphacapitalgroup.uk
Alpha Capital Group (Alpha Direct)EAs disabledhelp.alphacapitalgroup.uk
The5ersNot banned outright; EAs whose source code you don't own and EAs generating excessive server requests are among those prohibitedthe5ers.com
FundedNext (Stellar)EAs and VPS only on 5K–25K accounts via the official paid add-onsfundednext.com
FXIFY (1-Phase)Allowed with prior approvalintercom.help/fxify
FXIFY (Instant Funding Lite, Lightning)Prohibitedintercom.help/fxify
Maven TradingEAs and automated trading prohibited; all trades manualmaventrading.com
Goat Funded TraderOnly EAs you built yourself; no third-party EAshelp.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

  1. 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.
  2. Check your firm's EA policy on its own page. Ask for approval if needed.
  3. Run the EA on the terminal you trade from, or on a VPS if your firm permits it.
  4. Connect a read-only witness with your investor password.
  5. Name a witness person, a friend, mentor or trading partner, who is told when a rule breaks.
  6. 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).

Die Details

Guides

Education only. No trading signals, no promise of results.

Deine Regeln. Dein Konto.

Meinen kostenlosen Test starten
  • Kostenloser Test
  • 0 $ zum Start
  • Dein Abo beginnt an dem Tag, an dem du finanziert wirst