How prop firms enforce daily loss and max loss rules, and why timing matters
By Daniel Chen · · 4 min read
Proprietary trading firms sell evaluation challenges: a trader gets a simulated account with rules, and passing them leads to a funded account and a share of the profits. For the firm, the rules are the product. For engineers, enforcing them correctly and quickly is the hard part.
The usual rules
- Profit target: reach a percentage gain on the starting balance to pass a phase.
- Daily loss limit: within one trading day, losses may not exceed a percentage of the starting balance.
- Maximum loss: the account may never fall more than a set percentage below the starting balance.
- Consistency: no single day may account for too large a share of the total profit.
- Minimum trading days: the target has to be reached over a minimum number of profitable days.
Count open trades, not just closed ones
A daily loss check that only looks at closed trades is easy to game: just keep a losing position open. The remaining buffer has to include the day's closed profit and loss plus the floating result of open positions, including swap and commission. Be explicit about which clock defines the day, because trade servers often run on their own time zone.
Near real time, not once an hour
If breaches are checked by an hourly job, a trader can keep trading past a limit for most of that hour. A monitor that evaluates every active account every few seconds, from a fast local copy of the trading data, closes that gap. Publish the rules from the main backend so both sides always work from the same numbers.
Failing an account must be reliable
When a limit is breached, positions need to be closed and trading disabled on the trading server, not just marked as failed in a database. Make the fail action idempotent so a retry does no harm, retry the trading server calls, and raise an error if the server refuses. A database that says 'failed' while the account can still trade is the worst of both worlds.
Verify before promoting
Passing a phase deserves the same care as failing one. Before opening the next account, read equity again from an independent source and check that the numbers agree. Money decisions deserve two witnesses.
- Prop trading
- Risk
- MetaTrader 5
- Trading