The funded-account rules, enforced before you can break them.
Most funded accounts aren't lost to a bad strategy. They're lost to breaking a rule at the wrong moment: the daily loss you forgot, the trade that ran past the drawdown, the entry in a locked-out window. We wire the firm's rules into the pipeline and halt at a buffer you set, well before the hard line that ends the account.
The rules, enforced in code.
No black box. Every order passes through one guard first. It checks the firm's rules against a soft buffer you set, not the hard line, and if any is close it flattens and blocks the order. The limits stop being something you hold in your head mid-trade.
1# guard.py — the firm's rules, enforced before every order2from burneh.prop import Guard, block, flatten34class FundedGuard(Guard):5 daily_loss_limit = 2000 # firm's hard line6 trailing_dd_max = 4000 # firm's hard line7 buffer = 0.80 # act at 80% — well before the line89 def before_order(self, account, order):10 # check every rule against its SOFT buffer, not the hard line11 if account.daily_loss >= self.buffer * self.daily_loss_limit:12 flatten(account)13 return block("daily-loss buffer hit — flattened for the day")1415 if account.trailing_dd >= self.buffer * self.trailing_dd_max:16 flatten(account)17 return block("trailing-drawdown buffer hit — flattened")1819 if account.in_news_lockout(order.symbol):20 return block("news lockout — no new entries here")2122 return self.allow(order)Every rule, watched live.
Daily loss, trailing drawdown, profit target, trading days, and news lockouts, all tracked in real time against the firm's numbers. Watch the daily-loss gauge: when it reaches the amber buffer, trading halts on its own, before the hard line is ever touched.
One bad day, run two ways.
Same losing session. With the buffer, the automation flattens you at −$1,600 and the account lives. Without it, the loss runs to the firm's −$2,000 hard line, and a fast tick carries it straight through. Toggle the guard and run the day.
By the time price reaches the hard line, a fast market has often already carried you past it. The buffer isn't caution for its own sake, it's the margin that keeps a bad day from ending the account.
Every rule, watched in real time.
A funded account isn't lost to a bad strategy nearly as often as it's lost to breaking a rule you forgot at the wrong moment. So the rules stop being something to remember, and become something the system enforces.
The most you can be down on the day. We halt before it, not at it.
The floor that trails your peak equity. Cross it and the account is gone, so we watch it live.
Tracked toward the evaluation goal, without pushing size to chase it.
Counted, so you don't fail on a technicality by finishing too fast.
No new entries into a restricted news window, when the firm forbids it.
Per-day profit caps and position limits enforced where the firm requires them.
This keeps you from failing the avoidable way. It can't make you pass.
Enforcing the rules removes the silly ways to blow a funded account: the forgotten daily limit, the trade that ran past the drawdown, the entry in a locked-out window. It does not make a losing strategy profitable, and it doesn't guarantee an evaluation or a payout. It buys your strategy the chance to prove itself without a rule breach ending the run early, and we'll never sell it as more than that.
The funded-account rules, enforced before you can break them.
Daily loss, trailing drawdown, profit target, trading days, and news lockouts watched live, with a halt at a soft buffer well before the hard line.