Fifteen days halted
Fifteen of the Kerdoos paper account's thirty-seven trading days ended with the daily-loss breaker tripped. That is the one number from the post-mortem I keep coming back to, because it is the only one that is good news and bad news in the same breath. The breaker worked every single time. It also overshot every single time, and for two months nobody was told it had fired. Three things, then, about what a circuit breaker is for.
What it is
The rule is one line of configuration, max_daily_loss_pct: if the account is down more than this fraction of its opening equity for the day, open no new positions until tomorrow. It sits in the risk manager alongside the position cap and the per-trade risk fraction, and the scanner asks it before every strike. The positions already open are left alone — their stops still ratchet, their exits still run, the end-of-day flatten still happens. What stops is the next trade.
It started life at 3 % and was raised to 5 % during the first weeks, which I know only because the halt log says so: halts at a 3 % threshold on the thirteenth of July and a 5 % threshold thereafter, while the configuration file naturally shows only the current value. That is a small lesson of its own — a running system's configuration is a current fact, and the only record of what it used to be is whatever the system wrote down at the time. The log did; I had not thought to.
Why it overshoots
Halts fired between −5.0 % and −7.09 % of the day's opening equity. Never at −5.0 exactly, because the breaker stops the next trade, not the current ones, and by the time the line is crossed there are up to five positions open that keep moving. On a day that is already bad enough to trip the breaker, they tend to keep moving the same way.
The overshoot was worse than the mechanism alone explains, and the reason is in the stops article. Risking one percent of equity per trade, the 5 % line is five clean stop-outs away, and on a day of ten-minute stop-outs that is before lunch. The breaker was doing its job — bounding the day — but the tight stops meant the account arrived at the line fast and with a full book of positions still open, so the bound was loose. The fix for the overshoot is not a lower threshold. It is fewer ten-minute deaths, which is a stop problem, and a cooldown that pauses a symbol after a run of net losses before the day's total gets anywhere near the line.
The other brakes, and which were off
The daily-loss breaker is one of five brakes in the system, and listing them side by side was more instructive than I expected, because three of the five turned out to be doing less than I thought.
| Brake | Stops | Does not stop | State, July → September |
|---|---|---|---|
| Daily-loss breaker | New entries for the rest of the day | Positions already open | Tripped on 15 of 37 days; overshot to −7.09 % |
| Position cap | New entries past five open | Entries raised in the same scan | Checked once per scan, not per order: 6/5 and 7/5 breaches, 23 orders rejected for buying power |
| Symbol cooldown | Re-entering a symbol after a run of net losses | Anything else | Keyed to net P/L, which had no fees in it; and the worker never ran the code that shipped it |
| Entries pause | All hunting and entering | Syncing, stop ratchets, exits | Did not exist until September; on since the 15th |
| Dry run | All orders | — | Off, deliberately: it also stops the exit manager closing positions |
The position cap is the clearest. It was asked once, at the top of a scan, before the symbol loop — so a scan that started with four positions open and raised six signals placed all six, and the log shows "Maximum open positions reached (6/5)" and "(7/5)" on nearly every trading day from the twelfth of August. Twenty-three of those orders were rejected by the broker for buying power, because each was sized against the balance the scan started with. A brake that is checked before the thing it brakes, rather than during, is a brake on the previous scan. It now keeps a running count and re-checks before every order, and decrements buying power as each goes out.
The cooldown is the sobering one. It shipped on the sixteenth of August, keyed to a trade's net result so that a symbol which had cost money three times running would be left alone. Net results had no fees in them, so the brake was blind to the largest cost in the crypto book — and that turned out not to matter, because the worker on the trading machine was still running the code from the fifth of August until the September sync. Zero cooldown skips in the log. BTC/USD entered twenty-one times on the twenty-fifth of August. A brake that has shipped and a brake that is running are different things, and nothing in the system distinguished them.
Nobody was told
Eight hundred and sixty-five daily-loss halt warnings and 1,475 "positions full" warnings were raised between July and September. Notifications were switched off the entire time — a flag in the environment that was never flipped after the webhook was wired — so every one of them went to the log and nowhere else.
This is the part I would fix first if I were starting again, ahead of the stops and ahead of the fees, because it is the reason the other two took two months to find. A halt that reaches a phone is a question — why today? — and fifteen of those questions would have led to the stop buckets in a week. A halt that reaches a log is a row. The dashboard did show a red HALTED banner when a breaker tripped and an amber AT CAPACITY for the routine case, and it cleared itself on the first clean scan, which is exactly right for someone watching the dashboard and worthless for someone who is not. Alerts dedupe to one per reason per six hours; they are on now, and the pre-flight command fires a test one so the pipe is known to work before the first halt.
What a breaker buys
It buys a bound on how wrong one day can be. That is all, and it is a lot: it is the reason the paper account is at $58,747 rather than somewhere worse, because fifteen days that were heading south were cut off at five to seven percent instead of running. What it does not buy is a strategy — fifteen bounded losing days are still fifteen losing days, and a breaker that trips forty percent of the time is a measurement of the strategy, not a defence of it. And what it costs is the entries not taken on the fifteen afternoons it was tripped, which I cannot measure, because the trades that were not placed have no result. I am comfortable with that trade. I am less comfortable that it took a post-mortem to learn how often it had been made.
Paper account, not advice. Whether a daily-loss limit belongs in anyone else's system, and where, is their question; what this one established is that a brake is only as good as the message that says it fired.