How to set a daily loss limit (and why it is not a hard cap)
How to set a daily loss limit: size it against your risk per trade, decide what counts and when the day starts, and see why open trades can push a day past it.
Key takeaways
- A daily loss limit stops new trades once the day’s loss reaches it. Unless the tool also closes positions, trades already open keep running.
- A day can end past the limit, because open trades run to their own stops and slippage or a gap can make each loss bigger than planned.
- Dividing the limit by the risk per trade gives the number of full losses a day allows. At 1% per trade, a 3% limit allows three, or four when each trade is sized from the current balance.
- Before choosing the number, decide what counts (closed trades only, or equity with floating losses) and whose clock starts the day.
- MT5 has no built-in daily loss limit. It comes from an EA setting, a separate utility or your own discipline.
On this page
To set a daily loss limit, choose the most you accept losing in one day as a percentage of the day’s starting balance, often a small multiple of your risk per trade, and open no new trades once the day’s loss reaches it. It is a rule about new trades, not a cap on the loss: trades already open run to their own stops, and prices can jump past a stop, so a day can end beyond the limit.
All numbers below are illustrative, not recommendations.
What a daily loss limit is
A daily loss limit is the maximum loss for one trading day. Once the day’s loss reaches it, no new trades open until the next day. It sits between two other limits: the risk per trade, the planned loss if one trade hits its stop loss, and a maximum drawdown, the largest fall of the account you accept over weeks or months.
The number is the easy part. Three design choices decide how the limit behaves:
- What counts. Closed trades only, or equity, which includes the floating loss of open trades. A tool that leaves out commission and swap understates the loss.
- The base. The balance at the start of the day, or the initial deposit. Deposits and withdrawals should move the base, not count as profit or loss.
- When the day starts. Midnight UTC, midnight in the broker’s server time or your own local midnight.
MetaTrader 5 shows the broker’s server time, not yours: Market Watch gives quote times “according to the time zone of the broker’s trading server” (MetaTrader 5 help). That need not be UTC or your time zone, so a limit that resets at server midnight can reset in the middle of your afternoon. An Expert Advisor can read either clock, server time with TimeTradeServer() or GMT with TimeGMT(), so what matters is which one your tool uses.
How to set a daily loss limit from your risk per trade
A daily limit only means something next to the risk per trade. Divide one by the other and you get the number of full losses, trades closed at their stop, that the day allows. One day-trading educator writes that many traders he knows stop after three consecutive full losses, which at about 1% per trade is 3% of the account (Trade That Swing).
The table counts losses in a row, one trade at a time, with the limit checked before each new trade. “Fixed amount” means every trade risks the same share of the day’s starting balance. “% of current balance” means each trade risks a share of the balance after the previous loss, so each loss is a little smaller.
| Risk per trade | Daily limit | Limit ÷ risk | Losses until new trades stop (fixed amount) | Same, at % of current balance |
|---|---|---|---|---|
| 0.5% | 2% | 4 | 4 losses, day at −2.00% | 5 losses, day at −2.48% |
| 1% | 2% | 2 | 2 losses, day at −2.00% | 3 losses, day at −2.97% |
| 1% | 3% | 3 | 3 losses, day at −3.00% | 4 losses, day at −3.94% |
| 1% | 5% | 5 | 5 losses, day at −5.00% | 6 losses, day at −5.85% |
| 2% | 3% | 1.5 | 2 losses, day at −4.00% | 2 losses, day at −3.96% |
| 2% | 5% | 2.5 | 3 losses, day at −6.00% | 3 losses, day at −5.88% |
Two things stand out. At % of current balance, n losses in a row cost 1 − (1 − r)ⁿ, with r the risk per trade: at 1%, three losses cost 1 − 0.99³ = 2.97%, still under a 3% limit, so a fourth trade opens and can take the day to −3.94%. And a limit that is not a whole number of losses is crossed by the loss that reaches it: at 2% per trade, a 3% limit ends the day about 4% down.
The drawdown calculator does this arithmetic for any risk and limit on its “Streak to limit” tab, in both modes. To turn the risk per trade into a lot size, use the position size calculator or read how to calculate lot size.
Why a daily loss limit is not a hard cap
A limit checked before each new trade can stop the next trade, not the ones already running. Each of those can still lose its full risk, or more.
The last step is slippage: the difference between the stop price and the fill. A stop is a trigger, not a promised price. Once it is reached, the order becomes a market order and fills at the next available price, which in a fast market can be well past the stop (FINRA on stop orders). The largest jumps tend to come around high-impact news and at the weekend open (a weekend gap). Had the price jumped 30 pips past trade 4’s stop, the fill would have been 50 pips away: a $250 loss on $100 of planned risk.
So the worst case for a day is roughly the closed loss when the last trade opened, plus the full risk of every trade open at that moment, plus slippage and gaps. The overshoot can be made smaller:
- Counting the risk still open. A stricter check opens a trade only if today’s loss, plus the risk on every open stop, plus the new trade’s risk fits within the limit. In the example, trade 4 would be refused (2% + 1% + 1% = 4%), leaving a worst case of about 3% plus slippage.
- Fewer open positions. Before slippage, the overshoot is bounded by the risk of the trades open at once.
- A limit below the loss you cannot accept. If a 5% day is the most you can take, a 5% limit leaves no room for the overshoot.
- Staying out of known jumps. A news blackout pauses new entries around major releases; weekends are the other known gap.
Counting open trades: closed P/L or equity
A limit that counts closed trades only ignores a losing trade until it closes. Take a 3% limit with −2% closed and one trade floating at −1.5%. A closed-only limit reads −2% and allows another trade. An equity-based limit reads −3.5% and stops.
An equity-based limit stops sooner, but it can trigger on a floating loss that later recovers, and an open winner makes room for new risk against profit not yet taken. A closed-only limit cannot be tripped by a dip, but it lets losses pile up in open trades. Prop firms set their own rules on this: see prop firm daily drawdown.
What should happen when the limit is hit
The first step is always the same: no new entries. The choice is what happens to the trades still open.
| Approach | What happens | Trade-off |
|---|---|---|
| Block new trades, leave open ones | Open trades keep their stops and targets | The day can end past the limit by the risk still open, plus slippage |
| Block new trades, close all | Positions close at market, pending orders are deleted | The loss stays nearer the limit, but trades that might have recovered are closed, perhaps in a spike |
Then the lock. If trading resumes as soon as equity climbs back under the limit, a recovering open trade can switch trading back on and the day can lose again. A lock that holds until the next day, and survives a restart of MT5, avoids that.
A kill switch is the manual version: one action that stops trading and closes positions when you decide. MT5 has the two halves as separate controls:
- Stopping the EAs. The Algo Trading button in the toolbar (AutoTrading in the MT5 help), turned off, disables automated trading for every Expert Advisor in the terminal (MetaTrader 5 help). It closes nothing, and running programs can no longer execute trading functions, so EAs also stop managing their open positions (MQL5 docs).
- Closing positions. Right-click the Trade tab of the Toolbox and open Bulk Operations, which can close all positions and delete all pending orders. These commands appear only when One Click Trading is enabled under Tools → Options → Trade (MetaTrader 5 build 3260 release notes).
Setting a daily loss limit in MT5
The MT5 terminal has no daily loss limit setting. None of the tabs under Tools → Options, from Server and Charts to Expert Advisors and Notifications, caps a day’s loss (MetaTrader 5 help). The nearest option, “Stop if equity is less than” on the Signals tab, applies only to copying a trading signal: it is a fixed equity floor that ends the copying and closes all positions, not a daily limit. That leaves three ways.
1. The setting in your EA. If your Expert Advisor has a daily loss input, find out before relying on it:
- Does it count closed trades only, or equity?
- Which clock starts its day, and what balance is the base?
- Does it only block new trades, or close open ones too?
- Does the lock survive a restart of MT5?
- Does it see your manual trades and other EAs on the same account, or only its own trades?
2. A separate equity-protector utility. This is an EA on a chart of its own, since MT5 runs only one EA per chart (MetaTrader 5 help), that watches the whole account’s equity. Designs differ: one free utility in the MQL5 Code Base closes open positions and deletes pending orders when a limit is hit, and resets on the broker’s server time (MQL5 Code Base). Like any EA, it only works while the terminal runs, on a PC that stays on or a VPS.
3. Your own discipline. Write the number down. Check the day’s closed trades on the History tab of the Toolbox (View → Toolbox, or Ctrl+T) and the floating P/L on the Trade tab. When the day’s loss reaches the number, stop, and switch off Algo Trading if an EA is running. It costs nothing and works only if you do it on the bad days.
How PipWarden does it
PipWarden is an Expert Advisor that runs in MT5 on a Windows PC or VPS, with a broker that allows EAs; it does not run on a phone. The daily loss limit is set per account on the dashboard, on the “Risk & protection” tab under “Account limits”, as a percentage: 5% by default, adjustable from 0.5% to 50%.
- The day is the UTC day. Its base is the balance minus today’s closed trades (commission and swap included), so deposits and withdrawals do not count as profit or loss, and restarting MT5 does not reset it.
- What counts is equity, so floating losses count toward the limit.
- When it is checked: before every order, on the server when a signal is evaluated and again in the EA, with live data from your terminal, right before it opens a trade.
- At the limit: new trades are refused while the day’s loss is at or past the limit. Once the breach is confirmed (the server sees it in the account data the EA sends, or the EA sees it for 10 seconds in a row), the rest of the UTC day is locked, even if equity recovers. Signals the server skips for this reason show “Daily loss limit reached” in the log, and you get an alert by email or Telegram, depending on your alert settings.
- Open trades are not closed. They keep their stop loss and take profit and are still managed. PipWarden does not reserve room for the risk still open: with the defaults of 1% risk per trade and up to 3 open positions, up to about 3% of risk can be open when the limit is reached, so a day can end roughly that far past it, or further with slippage, a gap or open profit given back.
The kill switch is separate: one click cancels pending entries and closes every position the bot opened, and leaves your manual trades alone. You can also pause the bot from the dashboard. See the risk controls and how it works for the other checks before each order.
Forex and CFD trading is high risk, and you can lose money, including more than a daily limit suggests. This guide explains how limits work and is not financial advice. Read the risk disclosure before trading.
Frequently asked questions
How big should a daily loss limit be?
Can open trades push my loss past the daily limit?
When should a daily loss limit reset?
How do I set a daily loss limit in MT5?
What happens to open trades when the daily limit is hit?
Educational content, not financial advice. Forex and CFDs are traded on margin and are high risk: you can lose money, and more than your deposit with some brokers. Examples use made-up numbers and show no real results. Read the risk disclosure.