MT5 kill switch, how to stop an EA and protect your account fast

A kill switch on MetaTrader 5 is an emergency stop for an account or an Expert Advisor: it closes open positions and blocks new orders. You can trigger it by hand, with a script or EA that closes everything, or through a monitoring service that acts when a limit is near. Each option depends on reaction time and on a running terminal.

What a kill switch is for

An EA follows its rules whether the market suits them or not. When it starts losing faster than planned, you need a way to stop it before a loss limit is breached. On a prop firm account, one breach of the daily loss limit usually ends the challenge or the funded account.

A complete kill switch does three things:

  1. It stops the EA from opening new trades.
  2. It closes the positions already open, or at least the ones from the faulty EA.
  3. It keeps the EA stopped until you decide to restart it.

The third point is often forgotten. An EA that restarts on its own at the next tick, or after a terminal restart, can repeat the same damage.

The options on MT5

Manual: the Algo Trading button and closing positions

The fastest manual move is the Algo Trading button in the MT5 toolbar. When you turn it off, EAs can no longer send trade requests. Open positions stay open, with their stop loss and take profit still held on the broker's server.

You then close positions yourself from the Trade tab of the Toolbox. Recent MT5 builds offer bulk close options with a right-click. On an account with several EAs, you have to pick the right positions by magic number or comment, which takes time under stress.

The manual route has one obvious flaw: you have to be in front of the screen when it matters.

Scripts and EAs that close everything

A "close all" script runs once: it closes every position, or every position on a symbol or magic number. A guardian EA goes further. It watches equity or drawdown and closes everything when a threshold is crossed.

These tools act within the terminal, so they react fast. Their limits:

  • They only work while the terminal runs.
  • Many of them check equity on each tick of their own chart. On a quiet symbol, ticks can be sparse.
  • They rarely handle "stay stopped": after a restart, the other EAs pick up again.
  • Their rules are often account-wide, so one faulty EA stops all the others.

An external monitoring service

A monitoring service receives account data from the terminal, compares it with your limits and sends alerts. Some also apply protection actions back in the terminal. The value here is centralization: one place to set limits for several accounts and bots, with alerts on your phone.

Limits every kill switch shares

Limit What it means in practice
Terminal must run Any action placed through MT5 needs the terminal open and connected. A VPS reduces this risk.
Reaction time Checks happen on ticks or on a timer. Between two checks, the market keeps moving.
Slippage Market orders fill at the available price. In a fast move or a gap, the close price can be far from the trigger level.
Weekend and session gaps When the market is closed, nothing can be closed. The position reopens at the next price.
Broker-side stops Stop losses on the server work even if the terminal is off. They are your last line of defence.

A kill switch reduces the size of a bad day. It cannot guarantee that a limit will never be crossed. This is why a safety margin matters: trigger the protection before the real limit, so slippage has room.

What to look for in a kill switch

  • Trigger before the limit. A buffer below the daily loss or maximum drawdown limit.
  • Per-bot scope. Stopping only the EA at fault keeps the others running.
  • Persistent stop. The EA stays paused after a restart until you restore it.
  • Alerts. You should know within minutes that protection fired, wherever you are.
  • Offline detection. If the terminal disconnects, you should be told, because protection stops with it.
  • Clear rules you approved. No hidden logic deciding trades for you.

How Crash Guard handles it

Crash Guard works through the Bridge, a small EA installed in your MT5 terminal with a personal key. Your MetaTrader password is never requested. The Bridge synchronizes account activity about once a minute and applies the protection rules you have approved.

When a limit gets close, Crash Guard alerts you by e-mail, Telegram or MT5 push notification. Depending on your rules, it then suspends the bot involved, closes its open positions or blocks new orders. You can set limits per account and per bot, with a safety margin before a prop firm limit.

A stopped bot goes into quarantine. It stays paused until you restore it, in one click, once you understand what happened.

Crash Guard shares the limits above. The Bridge acts from your terminal, so the terminal must stay open, usually on the same VPS as your bots. If an account stops synchronizing, you are notified by e-mail. The free Watch plan monitors one account in read-only mode with alerts; automatic protection starts with the Starter plan.

For the full protection setup around an EA, see the guide on how to protect an MT5 Expert Advisor.

In short

  • A kill switch stops new orders, closes positions and keeps the EA stopped.
  • Manual stops need you at the screen; scripts and guardian EAs need the terminal running and react only between checks.
  • Slippage and gaps mean a kill switch limits damage without removing risk. Trigger it with a safety margin.
  • Look for per-bot scope, persistent quarantine, alerts and offline detection.

Read next

Protect your MT5 accounts automatically

Crash Guard enforces your risk limits in your terminal, with a safety margin before the prop firm limit. Crash Guard Watch is free.

Trading involves a risk of capital loss. Our tools help you monitor that risk; they do not remove it.