Skip to content
MT5MT4soonTradingViewsooncTradersoonNinjaTradersoonPythonsoon
Expert Advisors & automation

Equity stop

Also called Equity protection, Equity stop loss, Account stop, Equity guard, Max drawdown stop

An equity stop is an account-level safety rule, usually inside an Expert Advisor, that closes every open trade when account equity falls to a set level or by a set percentage. It caps the total loss across all positions instead of one trade.

Each trade can carry its own stop loss and the account can still lose far more than you planned, because several losing positions open at the same time add up. An equity stop limits that total, which matters most when an Expert Advisor (EA) stacks trades.

An equity stop watches equity, not balance

Equity is your balance plus or minus the floating profit or loss of trades that are still open. Balance only changes when a trade closes. So an account can show an untouched balance while equity is already deep in the red.

The equity stop checks equity on every price update. When equity touches the level you set, the EA closes all open positions at market. Many versions also delete pending orders (orders waiting to open at a price you set in advance) and block new trades until you restart them.

The drawing below shows the gap between the two lines: balance stays flat while equity slides, and the stop acts on equity.

Equity falling to the equity stop while balance stays flat
The stop reads the falling equity line. Balance only catches up after the trades are closed.

Working out where a 10% equity stop triggers

The figures here are an illustrative example. Your account balance is $10,000 and the equity stop is set to 10%. A grid EA (one that opens extra trades at fixed steps as price moves against it) holds four buy positions of 0.25 lots each on a USD-quoted pair, so 1.00 lot in total across the basket (all the open trades the EA manages together), worth $10 per pip.

How far price can move before a 10% equity stop closes a 1.00-lot basket
Loss allowed$10,000 × 10%= $1,000
Equity stop level$10,000 − $1,000= $9,000
Pip value of the basket1.00 × $10= $10
Pips against the average entry$1,000 ÷ $10= 100
Room before everything closes100 pips

If the average entry of the four trades is 1.1000, the stop fires near 1.0900. Now copy the same steps with your own EA's maximum total lot size. If the answer is a distance the pair covers on an ordinary day, the stop will trigger often, and the lot size is too large for that stop.

The close is a market order, so the fill price is not fixed in advance. In a fast move or across a weekend gap, the final equity can land below $9,000.

When the equity stop is your real exit and when it is only a backstop

A simple decision rule: if your EA adds to losing positions (grid, or martingale, where each new trade after a loss is larger than the last), the equity stop is the real exit, so choose it first and size lots to fit. If every trade already has its own stop loss, multiply the risk per trade by the maximum number of open trades. When that total is smaller than the equity stop, the equity stop is only a backstop.

Fixed level, percentage or trailing: three ways to set it

TypeHow the level is setWhat to watch
Fixed money levelClose all if equity is below a set amountDoes not adjust after deposits or withdrawals
Percentage of balanceClose all if floating loss reaches a set share of balanceBalance is lower after each trigger, so every restart allows a fresh loss
Trailing from peak equityLevel follows the highest equity reachedCan close a basket on a normal pullback after a good run
A trailing equity stop following peak equity and closing the basket on a normal pullback
Illustrative values: the trailing level only moves up with new equity highs, so a normal pullback after a good run can be enough to close the basket.

Where you see and set an equity stop

You set it in the EA's input settings before attaching it to a chart. The name varies: equity stop, equity protection, max drawdown percent, or a money amount. Read the description to learn whether the number is a percentage, a currency amount or an absolute equity level.

You watch it in the account summary of your trading platform, where balance, equity and margin sit side by side. Some prop firms and brokers also show an account-level loss limit on their dashboard, which works on their side instead of yours.

Checks before you switch the EA on

  • Scope. Find out whether the stop closes only that EA's trades or every trade on the account, including manual ones and other EAs.
  • Stop-out gap. The broker's margin stop-out (the level where the broker closes your trades because your margin has run out) is a forced close you do not control. Your equity stop should sit well above it.
  • Prop-firm limits. Set the stop inside the firm's daily and overall loss limits, with a buffer for slippage.
  • After the trigger. Check whether the EA resumes on its own. An automatic restart can hit the stop again the same day.
  • Reference point. Confirm whether the percentage is measured from the starting balance, the current balance or peak equity.
  • Test it. Run the EA on a demo account with a tight setting and confirm that everything actually closes.
Where the equity stop sits relative to prop-firm loss limits and the broker's margin stop-out
Illustrative layout: your equity stop sits inside the prop-firm limit with a buffer for slippage and well above the broker's stop-out.

FAQ

Does an equity stop still work when my computer is off?

Usually not. An EA's equity stop runs inside your platform, so it needs the platform running and connected. A normal stop loss is held on the broker's server and works without it. This is why traders who rely on an equity stop often run the EA on a VPS.

How do I choose the right equity stop percentage for my EA?

Start from the EA's largest drawdown in testing (the deepest fall in equity from a peak) and set the equity stop beyond it. A stop set inside that drawdown will close the normal losing runs the EA goes through. If a stop placed beyond it is more than you can afford to lose, lower the lot size instead of tightening the stop. This is the same rule as in the section above: choose the stop first, then size lots to fit.

Related terms