Your Daily Loss Guard Is Probably Watching the Wrong Number
Most risk-management code I see for prop challenges checks the account balance. That is the wrong variable, and it is the reason accounts die on days that ended in profit.
Every major firm's daily loss rule watches equity, continuously. Not the closing balance, not the realised result at the end of the session — the worst point your equity touched while the day was running. Floating profit and loss counts at FTMO, at FundedNext, at The5ers and at Maven. So does swap. So does commission.
Here is the failure mode in numbers, on a $100,000 account with a 5% limit. Your closed trades sit at −$3,000. One position is still open and drifts to −$2,100 before it turns and closes at +$500. The day ends at −$2,500, which is comfortably inside the rule. But for a few minutes the combined figure touched −$5,100. That moment is the breach. The recovery changes nothing, and the account is already gone.
If your EA compares AccountInfoDouble(ACCOUNT_BALANCE) against a threshold, it will not see that moment. It has to watch ACCOUNT_EQUITY, and it has to watch it on every tick, not on every closed position.
The second variable most guards get wrong is the reset.
The daily line is recalculated at a specific instant, and that instant belongs to the firm, not to you. FTMO resets at midnight Central European time and recomputes the allowance from the balance recorded at that moment. FundedNext resets at midnight server time, which is GMT+3 during daylight saving and GMT+2 outside it.
If you are trading from Chicago, the FTMO reset lands in your late afternoon. From Singapore, it lands mid-morning. Any guard that anchors the day to the local machine clock, or to the broker server clock without checking that the two match the firm's rule, will draw the line in the wrong place.
This creates a trap worth coding around explicitly: a position carried across the reset takes its floating loss into a freshly calculated day. A drawdown that was survivable at 23:59 can breach a new line at 00:01 without a single new order being placed.
The third one is the assumption that the limit is fixed.
It is at FTMO. It is not at FundedNext, where the daily allowance expands with intraday profit. Book $2,000 by midday on a $100,000 account and you have $7,000 of room for the rest of that session rather than $5,000. Same headline percentage as FTMO, materially different rule, and a static threshold in your code will either stop you too early or model the wrong firm entirely.
And one thing that is not about code at all.
What happens at the moment of breach differs even inside the same firm. On The5ers' Hyper Growth program, hitting 3% costs you the remainder of the trading day. On Pro Growth, the same 3% ends the account. Identical number, opposite consequence. Before you write the guard, read the sentence in the terms that says whether a breach pauses you or kills you — it decides how conservative the threshold in your code needs to be.
Practical takeaways for anyone writing this logic:
Track the worst equity point of the day, not the current one. Store it and compare against it.
Derive the day boundary from the firm's stated reset time, converted to server time, and re-derive it when DST changes.
Set the internal stop below the published line. Spreads widen and slippage appears exactly when you are already under pressure. Stopping at 3.5 to 4 percent on a 5 percent rule costs almost nothing and removes the failure mode.
I keep a maintained comparison of how the four firms above calculate the daily limit, what counts toward it and when it resets, here: https://challengeradar.com/daily-loss-comparison. The FTMO rule specifically, including the reset and the overnight case, is broken down here: https://challengeradar.com/ftmo-daily-loss.
Every figure above reflects each firm's standard product at the August snapshot. Firms change terms. Verify on the official page before you buy anything.


