Blog/MetaTrader solutions
11 min read

Daily Loss Limit in MT4 and MT5: How to Make It Stick

How to set a daily loss limit in MT4 and MT5: what counts as today's loss, how to keep it by hand and how Account Risk Guardian enforces it, plus what it does not do.

You lose two trades before lunch. You open the third one a little bigger, to win it back, and that goes wrong too. By mid-afternoon you have lost in a single day what you meant to risk in a whole week. The analysis was not the problem. The problem was that there was no daily loss limit, or there was one, but only in your head, and nobody enforced it.

In MetaTrader 4 and MetaTrader 5 every trade can have its own stop loss, but, as far as I know, MT4 and MT5 have no native terminal setting that says "today I lose no more than this". In this article I explain why that cap matters, how to keep it by hand in MT4 and MT5, and how a tool can do the job for you.

Why a stop loss on each trade is not enough

A stop loss protects one trade. The day is something else: it is the sum of every trade you open, plus the ones your Expert Advisors (EAs, the programs that trade on their own) open on the same account. If each trade risks 1% and you string together five losers, the day takes 5%, even if every single one had its stop in the right place.

Then there is what happens inside your head. After two or three losses in a row, stopping is hard. You feel the urge to size up to recover quickly, to take trades you would not have looked at in the morning, to go for "just one more". It is usually called trading on tilt, and you often do not notice it while it is happening.

The daily loss limit is set in the morning, with a cool head. In the afternoon, all you have to do is respect it.

A daily limit breaks that chain from outside your emotions. It does not make each trade lose less; it helps keep a bad day from turning into a bad week. That is why some funded accounts, the ones that let you trade a company's capital if you follow its rules, include a maximum daily loss among their conditions.

What counts as today's loss

Before choosing a number, you need to decide how to measure it. Today's loss is how far your equity (what the account would be worth if you closed everything right now) has fallen from a reference taken at the start of the day. If balance, equity and margin are still fuzzy, the article on margin call and stop out walks through them with an example.

Measuring on equity has an important consequence: both closed and open trades count. A position that is 200 euros down weighs on your day even if you have not closed it yet, and so do commissions and swaps, which also move equity. What should not count are deposits and withdrawals: adding money is not a gain and taking it out is not a loss. We saw the same issue for the drawdown of the whole account in the article on real drawdown without deposits or withdrawals.

That leaves the reference, and there are several sensible ways to set it:

Reference What equity is compared with Worth knowing
Equity at day start Equity when the day began A floating loss you already had at the start does not count for today
Balance at day start Balance when the day began A floating loss carried over from yesterday counts from the first minute
Higher of balance or equity The higher of the two at the start The strictest of the three, similar to some funded accounts
Highest equity of the day The highest your equity has reached today It rises with your gains, so it also protects what you made during the day

One last piece: when the day starts. MetaTrader runs on your broker's server time, which does not have to match your clock. If your day starts at server midnight and the server is an hour or two ahead of you, the counter resets earlier than you think.

An example day

Let's use made-up, round numbers. You have a 10,000 euro account and set a 3% limit measured on equity at day start: 300 euros. To avoid hitting it out of the blue, you add a warning at 50% of the limit (150 euros) and a more serious one at 80% (240 euros). The equity you do not want to see today, your cut-off equity, is 9,700 euros.

Server time What happens Equity Loss so far today Status
00:00 The day starts €10,000 €0 Normal
10:30 You close a trade at −€120 €9,880 €120 Normal, 40% of the limit
12:15 You open another, now at −€60 €9,820 €180 Warning, 60%
15:40 That same trade is at −€130 €9,750 €250 Critical, 83%
16:05 Still going against you, −€180 €9,700 €300 Limit reached

Chart of a made-up day. Equity starts at 10,000 euros and falls during the session. Three horizontal lines mark the warning at 9,850 euros, the critical level at 9,760 and the daily limit at 9,700, which equity touches at 16:05.

Notice that 180 of those 300 euros come from a trade that is still open. If you only looked at the history of closed trades, at 16:05 you would think you were 120 euros down with plenty of room left.

How to keep it by hand in MT4 and MT5

You can do this without any tool, with a notebook or a spreadsheet and some discipline. These are the steps:

  1. Before your first trade, decide the limit and turn it into money. In the example, 3% of 10,000 is 300 euros.
  2. Write down the reference when the server day starts, for example the equity shown in the Trade tab of the terminal.
  3. Work out your cut-off equity, which is the reference minus the limit (9,700 euros), and keep it in sight.
  4. Before opening each trade, check that its loss to the stop loss fits in what is left of the day.
  5. If equity touches the cut-off, close every position, delete pending orders and do not trade again until the next day.
  6. If you deposit or withdraw money during the day, adjust the reference by that same amount.

On paper it is simple. In practice it has three weak spots. First, equity changes with every tick and you are not watching the screen all the time. Second, if you run EAs, they trade at any hour, including while you sleep. And third, the hardest one: step 5 arrives at the worst possible moment, right after a loss, when everything in you wants to win it back. It is the step people find hardest to follow, and it is exactly the one that matters.

A tool for MT4 and MT5 that watches it for you

To be clear from the start: Account Risk Guardian is software I developed, it is paid, and I sell it on the MQL5 Market for MetaTrader 4 and MetaTrader 5.

You install it as an EA on a single chart and it watches the whole account: your manual trades and those of any EA, on every symbol. One of its rules is the daily drawdown, called Daily DD on the panel, which is exactly what we just did by hand.

You set the limit in percent or in money and choose the reference under "Measured from", with the four options from the table above. The warnings at 50% and 80% of the limit are set automatically and can be changed in Advanced mode. The day starts at the reset time you choose, in server time (00 by default), and deposits and withdrawals do not count as losses. The Drawdown tab shows at all times today's loss, what is left and the equity at which the limit would be reached, which is your cut-off equity worked out without a notebook.

What it does when the limit is reached

This is where it differs from doing it by hand. In the "When the limit is reached" field you choose what happens, with these options for the daily drawdown:

Response on the panel What it does Until when
Alerts only Alert window, push notification and sound; nothing is closed It only warns
Block new trades Closes new trades at once and keeps the open ones While today's loss stays at the limit
Lock new trades No new trades; open ones are kept Until the next daily reset (default), a fixed number of minutes or a manual unlock
Close all and lock Closes every position, deletes pending orders and keeps the account flat Until the day resets (default) or a manual unlock

The two blocks have similar names but last differently: "Block new trades" lifts on its own as soon as today's loss is back below the limit, while "Lock new trades" stays until the lock ends, by default at the next daily reset, even if the account recovers.

In the built-in templates (Conservative, Balanced and Strict), the daily drawdown comes set to Close all and lock. For something finer, "Customize actions..." lets you combine individual actions, such as closing only the losing trades or deleting pending orders. The response runs once per episode: it does not repeat in a loop while you stay at the limit.

A technical detail worth understanding: blocks act afterwards. Guardian cannot stop an order from reaching the server; what it does is close the position or delete the pending order that appears during the block. For what you are after, not to keep trading, the outcome is similar, although that trade may be open for a moment.

Before you let it close anything, you can start in simulation mode. It evaluates every rule and logs what it would have done (in the Activity tab you see lines such as "Would close 4 positions" with the amount), without touching any trade. The product's own guide suggests leaving it like that for one to three days, reviewing, and when it behaves as you expect, pressing "Go live", which first warns you about any rule that is already exceeded at that moment. And every time the day starts it sends you a push summary (on by default, and it needs your MetaQuotes ID in the MetaTrader options) with the day's result, the maximum drawdown, the trades and the automatic responses.

If your issue is piling on trades after a loss, Guardian also has rules for losing trades of the day, losing streaks and a no-trading pause (cooldown), but that is a topic for another article.

What Guardian does not do

So that you do not get the wrong idea, here is what it leaves out. Account Risk Guardian does not open trades, does not give signals and never places or moves a stop loss. It watches and responds to the limits you decide; choosing the limit is still up to you.

Nor does it guarantee that the loss stops exactly at the limit. Closes are sent at market after it detects that the limit has been reached, so slippage, a price gap (on the Monday open, for instance) or a broker rejection can make you lose more than planned or leave a position open. With a 300 euro limit, a large gap could leave the day's loss at 380, to use a made-up figure.

It only works with the EA loaded on the chart, the terminal connected and algorithmic trading enabled. If you switch the computer off, nobody is watching the account. The funded-account templates are generic, with limits at 90% of common reference values and no link to any specific firm, so always check the exact rules of your account. And in the Strategy Tester you can see the panel in visual mode, although in MetaTrader 4 it is view-only, because the MT4 tester does not send it clicks.

Account Risk Guardian is available for MetaTrader 4 and MetaTrader 5, with the panel in English, Spanish, French and Italian. You will find more details on its product page. And if you would rather not use any tool, the six steps above work just the same: what does not change is that the limit is decided before you start.


Risk warning: leveraged products such as CFDs are complex and can produce rapid losses, even greater than the capital deposited. According to the CNMV (press release of 12 July 2023), between 70% and 90% of retail investors who trade CFDs suffer losses, depending on the firm. The numerical examples in this article are made up and illustrative and do not indicate future results. No tool prevents losses. Leveraged products are not suitable for all investors.

For educational and informational purposes only, published on 2 December 2026. This is not financial, tax or legal advice, a personal investment recommendation, or an offer or solicitation to buy any product. Past performance is not a reliable indicator of future results and all investing involves risk, including loss of capital. Figures, rules and product features may have changed since publication. Consult an authorised professional before making decisions. Author: Eduardo Cumplido, European Financial Advisor (EFA) certificate no. 35.181.

Educational content, not investment advice. Examples use made-up numbers. Past performance does not guarantee future results.