BESTMT4EA

Forex Risk & Money Management

Daily Drawdown Protection for Prop Firm EAs

How daily drawdown limits work in prop firm challenges, how an EA can respect them, where automation fails, and how to test the protection before a challenge.

BESTMT4EA Trading Desk
Updated 2 November 202616 min read

Quick answer

Prop firm challenges usually set a maximum loss measured from the day's starting equity, and breaching it can end the challenge. An EA can help by stopping trading before the limit is reached, but only if the protection is coded, tested and checked against the firm's own rule. Read the rule exactly, build a buffer below it, and test the stop logic on demo before any challenge.

Key takeaways

  • Each firm defines its daily loss limit differently, for example from the start of the day, from the balance or from equity, so read the rule before coding anything.
  • A protective EA should stop trading at a buffer well above the firm's limit, because a single trade can overshoot a stop.
  • Gaps, slippage and open trades held over the reset can breach a daily limit even when the EA is protecting it.
  • Test the daily protection on demo across many days, including days that open with a gap or a news event.
  • A challenge is an evaluation of a process, so keep the risk per trade small enough that one bad day cannot end it.
Free companion resourcev1.0Free for personal and educational use

Prop firm EA risk rules worksheet (PDF)

A free companion resource for this article, built in-house: a practical worksheet or checklist to use alongside what you have just read. It is not the product, EA or indicator this article discusses, and nothing in it installs on your terminal.

Version
1.0
Licence
Free for personal and educational use

Licence:Free for personal and educational use · updated 2 November 2026

BESTMT4EA Trading Desk

MQL4/MQL5 developers and traders. We publish the live track record for everything we review.

Ask us on Telegram
On this page
  1. Why do daily limits catch so many challenge traders?
  2. How is a daily drawdown limit defined?
  3. Why can an EA help, and where can it fail?
  4. How do you set the buffer?
  5. What does a daily stop look like in code?
  6. How do open trades behave across the daily reset?
  7. How do gaps and news affect the protection?
  8. How should the protection be tested?
  9. What are the common mistakes in prop protection?
  10. How does daily protection fit into the wider plan?
  11. What does a worked daily protection example look like?
  12. How should a daily stop behave across a weekend?
  13. What does the trader control, and what does the EA control?
  14. How do you review a challenge day by day?
  15. How do you handle a day that starts close to the limit?
  16. Why should the lot size be recalculated during a challenge?
  17. What should happen after a stop event?
  18. What does this guide not promise?
  19. What is the offer in this guide?
  20. How do you start this week?

Why do daily limits catch so many challenge traders?

A prop firm challenge asks a trader to show, over a set period, that they can trade within the firm’s rules. Most challenges have two limits: a total loss limit over the whole challenge and a daily loss limit within each trading day. The total limit is easy to understand. The daily limit is where many attempts end, often on a day when the trader felt in control.

The daily limit is easy to breach for a simple reason. It is measured from a reference point that moves with the day’s open, and a few losing trades in a short period can use up the whole allowance. A trader who has risked one percent per trade can still breach a daily limit of four or five percent after several losses in a row, especially if one of the trades is held through a fast move against the position.

This guide explains how daily drawdown limits are usually defined, how an EA can be set to respect them, where automation fails, and how to test the protection before any challenge begins. It does not name or rank firms, because their rules differ and change. Read the rule for the firm you are using and apply the method to that rule, not to a generic one.

How is a daily drawdown limit defined?

Firms define the daily reference in different ways. Some measure the loss from the balance at the start of the day. Others measure from the equity at the start of the day, which includes the floating result of any trades still open. A few measure from the highest equity reached during the day, which makes the allowance shrink as the day’s profits are given back. The definition changes the arithmetic, and it must be read exactly.

The reset time is also defined by the firm. A reset at midnight in the firm’s time zone is different from a reset at the broker’s server rollover, and the difference can move a trade from one day to another. Check which time the firm uses, and check the broker’s server time against it, because a mismatch can make a day look safer or riskier than it is.

Write the rule in one sentence in your journal. For example: the daily loss is measured from the equity at the start of the server day, and any amount below minus a stated figure is a breach. A rule written in one sentence is far easier to code and test than one read in fragments.

Why can an EA help, and where can it fail?

An EA can monitor the account continuously. It can read the current equity, compare it with the day’s reference and stop opening new trades when a set buffer is reached. Human attention is intermittent, and an EA does not get tired or distracted, so in principle it can enforce the rule more consistently than a person.

The limits are real. An EA can stop new trades, but it cannot stop an open trade from losing money. A position held when the buffer is reached continues to move until it is closed, and its loss can carry the account past the limit. An EA also reacts only on the ticks or bars it receives. A gap at the open of a session can move the price beyond the stop before any order is filled, and the EA cannot prevent the fill.

For these reasons, an EA is a backstop, not a guarantee. The main protection comes from the risk per trade. A trader who risks a small fixed share of the balance on each trade is far less likely to reach a daily limit, and the EA’s stop is there for the cases where the normal protection fails.

How do you set the buffer?

The buffer is the distance between the EA’s stop level and the firm’s limit. It must be large enough to cover one losing trade at the planned size, plus the slippage observed on the worst recent fill, plus a margin for the spread. If one trade at the planned size can lose more than the buffer, the buffer is too small.

A simple method is to calculate the worst single-trade loss at the planned size, add the worst slippage seen in the demo data, and add a fixed percentage of the limit as a margin. The result is the buffer, and the EA stops at the firm’s limit minus that buffer. Write the calculation in the journal, so that the buffer can be explained to a reviewer.

Recheck the buffer when the lot size changes, when the stop distance changes or when the instrument changes. A buffer set for one pair may be too small for a more volatile one, and a buffer set for an earlier balance may be wrong after a gain or a loss.

What does a daily stop look like in code?

A daily stop compares the current equity with the reference equity at the day’s start. If the difference is below the buffer, the EA closes or refuses new trades for the rest of the day. The logic should check the reference again at each reset, so that a new day starts with a fresh allowance.

Keep the stop separate from the strategy. A protection module that stops all trading when the buffer is reached can be tested independently, and its behaviour is easy to check. A strategy that contains its own loss logic can be harder to verify, because its protection is mixed with its signals.

Log every stop event with the time, the equity, the reference and the buffer. A log of stop events is the record that shows whether the protection worked, and it is the first thing a reviewer will ask for.

How do open trades behave across the daily reset?

A trade held across the reset belongs to which day? The answer depends on the firm’s rule, and it must be coded explicitly. Some firms count the floating loss of an open trade at the reset as part of the new day’s starting equity, which means a losing trade carried over midnight can leave the next day with less allowance than expected.

Test this case on demo. Hold a position across the reset in a controlled way, and confirm that the EA’s reference and the firm’s reference agree. A mismatch found on demo costs nothing, while the same mismatch found in a challenge can end it.

Consider whether the EA should close all positions before the reset. This removes the carry-over question at the cost of closing trades that may have been part of the plan. Decide the rule in advance, and record it.

Exness

How do gaps and news affect the protection?

Scheduled news and session opens can move price beyond the EA’s stop in a single step. A breakout trade placed before a release may fill far from its planned stop, and the loss may exceed the buffer in one event. An EA cannot close a position that has already moved past the limit, so the protection must be designed to avoid such positions, not to rescue them.

Use a news rule that stops new trades before scheduled high-impact events, and closes or reduces open trades before the release if the buffer is close. The rule should be written before the challenge and tested on demo around real release days. Record the fill prices and the slippage, because those numbers set the size of the buffer.

Remember that some firms restrict trading around news, and the restriction may be part of the rules. Check the firm’s terms before setting the news window.

How should the protection be tested?

Test the daily stop across many days, not a single trending week. Include days that open with a gap, days with a major release, quiet days with small moves and days that end with an open position near the buffer. Count the days on which the stop triggered, and check that each trigger matched the rule.

Test the reset logic explicitly. Run the EA across a reset with an open position, across a weekend, across a daylight-saving change, and across a server time change if the broker has announced one. Each case should produce the reference and the behaviour the firm’s rule requires.

Record every test day in the journal. The record should show the start equity, the reference, the lowest equity reached, the stop events and the outcome. A test that records only the days the protection worked will overstate its value.

What are the common mistakes in prop protection?

The first mistake is to read the firm’s rule loosely. A rule that uses equity is coded as if it used balance, and the protection fails on the first day with an open loss. Read the rule exactly, and write it in one sentence before any code is written.

The second mistake is a buffer that is too small. A buffer that covers only the spread and not one full losing trade will not protect the account on the first bad trade. The third is trusting the EA to close a losing trade that has already moved beyond the limit.

The fourth mistake is to ignore the carry-over across the reset. The fifth is to change the risk per trade in the middle of a challenge, because a larger size makes the daily limit come sooner. The sixth is to use an EA that the firm’s rules do not permit, which can end a challenge regardless of its result.

How does daily protection fit into the wider plan?

Daily protection is one layer of a risk plan. The first layer is the risk per trade. The second is the maximum number of trades in a day. The third is the daily stop. The fourth is the total loss limit and its own buffer. Each layer catches failures that the one above it misses, and a plan that relies on only one layer is fragile.

The leverage guide explains how leverage changes the size of a position for a given risk, which matters when the daily allowance is small. The risk-reward guide explains how to set stops and targets so that a single trade’s loss is a known fraction of the allowance.

What does a worked daily protection example look like?

Imagine a challenge with a daily loss limit of 5% of the starting equity, measured from the equity at the server day’s open. The account starts the day at 10,000, so the firm’s limit is a loss of 500. The trader plans to risk 0.5% per trade, which is 50 money at risk per trade, and sets the EA’s daily stop at a buffer below the limit.

Advertisement

The buffer is calculated from three figures. The worst single-trade loss at the planned size is 50. The worst slippage observed on demo is 10 money. A margin of 20% of the limit adds 100. The total buffer is therefore 160 money, and the EA stops new trades when the day’s loss reaches 340, which leaves 160 between the stop and the firm’s limit.

On a bad day, the EA opens three trades, and each loses its full stop. The loss totals 150, which is below the 340 stop, so trading continues. A fourth trade loses 200 because it gaps through its stop. The day’s loss is now 350, which passes the EA’s stop but not the firm’s limit of 500. The EA cannot have prevented the fourth loss, and it stops trading immediately after it. The example shows that the buffer absorbed the gap, which is why it must be sized from observed slippage and not from the stop alone.

The example also shows the limit of the protection. Had the gap been 400 instead of 200, the day’s loss would have reached 550 and breached the firm’s rule, and no EA would have prevented that fill. The main defence in such a case is the risk per trade, which keeps any single gap small compared with the limit.

How should a daily stop behave across a weekend?

A weekend gap is one of the most common causes of a daily breach. The market may reopen far from its Friday close, and any open position will show its full gap at the first tick. The daily reference for Monday may be set at the reopening price, or it may be set from Friday’s equity, depending on the firm’s rule and the broker’s server time.

Decide the weekend rule in advance. The simplest rule closes all positions before the Friday close, so that no trade crosses the weekend. A more complex rule holds positions and accepts the gap risk. Test the chosen rule on several weekends in the demo history, and record the largest gap observed. If the largest gap is larger than the buffer, the rule must close positions before the weekend.

What does the trader control, and what does the EA control?

The trader controls the risk per trade, the number of trades in a day, the choice of instruments, the news rule and whether to run the EA at all. These decisions are made before the challenge and recorded in the worksheet. They determine most of the daily risk.

The EA controls the enforcement of the daily stop, the logging of stop events, the reset at the server time and the closing or refusal of new trades once the buffer is reached. These are mechanical tasks, and they can be tested independently of any strategy.

Keeping the two sets of responsibilities clear makes the review straightforward. When a daily limit is approached, the question is whether the trader’s decisions or the EA’s enforcement failed, and the journal should answer it. A failure of the first set calls for a change to the plan. A failure of the second calls for a fix to the code.

How do you review a challenge day by day?

At the end of each trading day, record the starting equity, the reference, the lowest equity reached, the highest equity reached, the number of trades, the number of stop events and the final equity. Note whether the day was a gap day, a news day or a quiet day, so that the record can be split later.

Review the record weekly. Count the days on which the buffer was reached, the days on which the firm’s limit was approached, and the days on which the EA’s stop acted. A rising count of near-limit days is a warning, even before a breach occurs, and it may call for a reduction in risk per trade or a pause in trading.

Write the weekly conclusion in one or two sentences. The conclusion should describe what the record shows, not what the trader hoped for. A challenge is an evaluation of a process, and the weekly review is where the process is judged.

How do you handle a day that starts close to the limit?

Sometimes the account begins a day already near the daily allowance, perhaps because the previous day ended with an open loss that carried over, or because the reference was set at a high point and the equity has since fallen. In those cases the buffer that the EA would normally use may leave very little room for a trade at all.

The sensible response is to reduce the size or to stop trading for the day, and to decide this before the session opens. A rule such as “if the remaining allowance is below two planned losses, trade only at half size” or “do not open new trades” is simple to write and easy to check. Build it into the EA as a separate condition, so that it is applied regardless of the strategy’s signal.

RoboForex

Record each such day with the reason it began near the limit, because a rising number of days that begin near the limit is a sign that the risk per trade is too high for the allowance, or that the carry-over rule needs attention.

Why should the lot size be recalculated during a challenge?

A lot size chosen at the start of a challenge is calculated from a balance that will change. A gain increases the balance and makes the same percentage risk larger in money. A loss reduces the balance and makes the same percentage risk smaller. Whether the lot is recalculated each day or kept fixed is a choice, and it changes the daily exposure.

Decide the rule before the challenge. A fixed money risk per trade keeps the daily exposure stable but ignores the balance. A percentage risk that recalculates each day adapts to the balance, but it can increase exposure after a gain, which is when a trader may be most tempted to press. Whichever rule is chosen, test it on demo with the same balance changes you would expect in the challenge, and record how the lot size moved. Write the rule into the worksheet with its formula, so that the lot on any given day can be recalculated by hand and checked against the terminal.

What should happen after a stop event?

When the daily stop acts, the trader should not simply wait for the next day and resume at full size. A stop event is information about the plan, and the response should be a short review before trading resumes. Note the cause: a single gap, a run of ordinary losses, a news release or a trade that broke the plan. Each has a different remedy.

If the cause was a rule breach, such as moving a stop or adding to a losing trade, the remedy is discipline, and the EA may need an extra check that prevents the repeat. If the cause was a run of ordinary losses within the risk per trade, the plan may be sound but the daily trade count may be too high. If the cause was a gap, the buffer or the news rule may need revision. Record the cause and the remedy, and do not resume until the record is written. A short pause after a stop event, spent on the review rather than on the next trade, is usually the most valuable part of the day, and it costs far less than a second breach. Treat the review as part of the trading day, with its own entry in the journal, rather than as an optional extra. Set a fixed time for it, so that it happens after every stop event and does not depend on how the day felt, because a review that is skipped after a bad day is the one that matters most. If the review shows that the same cause keeps recurring, change the plan for the next challenge rather than repeating the same rules and hoping for a different outcome. A recurring cause is the most valuable finding a challenge can produce, and it deserves a written answer before the next attempt begins.

What does this guide not promise?

This guide does not promise that an EA will protect a challenge, pass a challenge or keep a trader within any firm’s limit. Challenges are evaluations with strict rules, and many traders do not pass them. Automation adds risk as well as protection, and a poorly tested EA can breach a limit faster than a careful trader would.

The guide also does not describe any firm’s rules, which change over time. Always read the current terms for the challenge you are taking, and check whether automated trading is permitted at all.

What is the offer in this guide?

The offer is the prop firm EA risk rules worksheet, a printable worksheet for writing down a firm’s daily and total limits, the buffer, the reset time, the news window and the carry-over rule in one place. It is designed to be completed before any EA is coded or tested, so that the protection follows the written rule.

Use the worksheet with the demo test log for each challenge, and keep the completed copy with the challenge record.

How do you start this week?

Start by finding the exact text of the daily loss rule for the challenge you are considering. Write it in one sentence, including the reference point, the reset time and the threshold. Then write the buffer calculation, using the worst single-trade loss at your planned size and the worst slippage seen on demo.

Next, run the EA on demo across at least twenty days, including a gap, a release and a reset with an open position. Record each stop event and check it against the rule. Only when every case matches the rule should the EA be considered for a challenge, and even then, it should be checked against whether automated trading is permitted at all.

For the arithmetic of stops and targets, use the risk-reward guide, and for the statistics behind judging a sample, the Monte Carlo testing guide.

For more free tools and checklists, visit the resource library.

Frequently asked questions

What is a daily drawdown limit in a prop firm challenge?

It is the maximum loss the firm allows within one trading day, measured against a reference point it sets, such as the starting equity or the balance at the day's open. Breaching it usually ends the challenge, so the rule must be read carefully.

Can an EA guarantee I stay within a daily limit?

No. An EA can stop trading when a loss reaches a set level, but a gap or a slipped fill can carry the loss past that level before the EA reacts. A buffer and a conservative risk per trade reduce this risk, and no code removes it entirely.

What buffer should a daily stop use?

There is no fixed figure. A common approach is to stop well before the firm's limit, leaving room for one normal losing trade and some slippage. The buffer should be chosen from the stop distance and the worst observed fill, and written before the challenge.

Does the daily reset time matter?

Yes. Some firms reset the daily reference at a fixed server time, and the EA must use the same time. A reset at a different hour can change which trades count toward the day's loss, so check the firm's definition and the broker's server time.

Should I use an EA for a prop challenge?

Only if the EA is verified and its behaviour in the challenge conditions is tested. Many firms also restrict automated trading or specific strategies, so check the rules before using an EA at all.

What is the most important protection?

Keeping the risk per trade small. A daily stop is a backstop, not the main defence. An account that loses a small fixed share per trade is far less likely to reach a daily limit than one that relies on the backstop.

Sources

Risk warning

Past performance is not indicative of future results. Trading forex and CFDs carries a high level of risk and can result in the loss of all of your capital. The results shown are specific to the broker, account type and settings used on the tracked account and will differ elsewhere. Nothing on this site is financial advice.

Keep learning

Hand-picked next reads on the same topic.

Featured EA · Myfxbook tracked

Obsidian Aether EURUSD EA

AI-powered grid scalper for MetaTrader 5 — adaptive ATR spacing, range & trend dual detection, and institutional-grade risk management.

+94.78% GainPF 1.51414 Trades
View Full Review