Daily Loss Limits and Position Sizing: How Many Losses Can Your EA Take in One Day?
Position sizing in a prop firm challenge is often planned around the total drawdown limit. The daily loss limit can be reached much faster than it looks. This post shows how the daily loss limit works at FTMO, how few losing trades it takes to hit it at common risk levels, and gives an MQL5 script that measures how much room is left today.
1. How the daily limit works (FTMO example)
Rules differ between firms and change over time, so always check your own firm's current page. At FTMO, as published on its Trading Objectives page:
- The Maximum Daily Loss is 5% of the initial capital on the 2-Step Challenge and 3% on the 1-Step Challenge.
- The limit is recalculated every day at 00:00 CE(S)T: account balance at that moment minus the daily loss amount.
- It is checked against equity, so open positions, swaps and commissions count, not just closed trades.
Two consequences: a floating loss can breach the rule even if the trade later recovers, and the reset follows Central European time, not your broker's server time.
2. How many losses until the limit?
With a 5% daily limit and risk expressed as a fixed percentage of the initial capital:
- 0.5% per trade: the 10th full loss reaches the limit.
- 1% per trade: the 5th full loss reaches the limit.
- 1.5% per trade: the 4th full loss passes it (6%).
- 2% per trade: the 3rd full loss passes it (6%).
"Reaches" is not safe either: a commission, a swap or one point of slippage takes you through.
3. A synthetic example
Illustration only, not a real strategy: an EA takes up to 4 trades a day, wins 40% of them, and risks 1.5% per trade. If the four trades of a day all lose, that is 6% and the challenge is over. Assuming independent trades, the probability of four losses in a day is 0.6^4, about 13%. Over 20 trading days, the probability of at least one such day is about 94%.
The same EA at 1% per trade cannot pass 4% from four closed losses. The edge is identical; only the sizing changed the outcome.
4. The traps that make it worse
- Correlated positions. Long EURUSD and long GBPUSD at the same time are often strongly correlated and can behave like one bigger trade. Their floating losses add up against the same limit.
- Slippage and gaps. A stop is not a guarantee. News spikes and weekend gaps can turn a planned 1% loss into more.
- Trades crossing midnight. A position opened before the reset carries its floating loss into the new day's equity check.
- Losing the morning. After two losses, the room left for the rest of the day is smaller, but the position size usually is not.
5. Measuring today's room in MQL5
This script estimates the room left before a daily limit calculated FTMO-style. It assumes the reset coincides with the broker's server midnight; if it does not, adjust the start time. Deposits and withdrawals are ignored by filtering on trade deals only.
#property script_show_inputs
input double InpInitialCapital = 100000.0; // initial capital of the account
input double InpDailyLossPct = 5.0; // daily loss limit, % of initial capital
double ClosedTradeResultSince(datetime from)
{
double sum = 0;
if(!HistorySelect(from, TimeCurrent())) return 0;
for(int i = 0; i < HistoryDealsTotal(); i++)
{
ulong tk = HistoryDealGetTicket(i);
if(tk == 0) continue;
long type = HistoryDealGetInteger(tk, DEAL_TYPE);
if(type != DEAL_TYPE_BUY && type != DEAL_TYPE_SELL) continue;
sum += HistoryDealGetDouble(tk, DEAL_PROFIT)
+ HistoryDealGetDouble(tk, DEAL_SWAP)
+ HistoryDealGetDouble(tk, DEAL_COMMISSION);
}
return sum;
}
void OnStart()
{
datetime dayStart = iTime(_Symbol, PERIOD_D1, 0); // server midnight
double balance = AccountInfoDouble(ACCOUNT_BALANCE);
double equity = AccountInfoDouble(ACCOUNT_EQUITY);
double balAtStart = balance - ClosedTradeResultSince(dayStart);
double limit = balAtStart - InpInitialCapital * InpDailyLossPct / 100.0;
double room = equity - limit;
PrintFormat("Balance at day start: %.2f Limit: %.2f Equity: %.2f",
balAtStart, limit, equity);
PrintFormat("Room left today: %.2f (%.2f%% of initial capital)",
room, 100.0 * room / InpInitialCapital);
}
Use it as a check, not as a substitute for your firm's own dashboard, which is the reference.
6. Practical rules
- Size risk per trade from the maximum number of trades your system can take in one day, plus a margin for costs and slippage.
- Count correlated open positions as one exposure.
- Give the EA a daily stop below the firm's limit, so a bad day ends before the rule ends the account.
- In backtests, look at the worst day, not only the maximum drawdown. Export the trades and group them by day.
If you evaluate an EA for a prop firm, including Titan Breakout, our H1 breakout EA at Pipmaster France, run that worst-day check on its backtest. Titan Breakout is free to download for backtesting: Titan Breakout.
The example in section 3 is a theoretical calculation, not the result of any real strategy or account. Prop firm rules change; check your firm's current rules. Trading leveraged products involves a high risk of capital loss.


