The gate is damage-control, not an edge source: it can only allocate the strategy's existing (negative) edge onto least-bad days — best case flat, never gain. Its value is CONDITIONAL: a holding pattern until an entry edge (plan 017 L2 depth) is found, at which point it flips to force-multiplier (good names x good days). Owner's 'it just turns the bot off' critique is correct at the current no-edge base. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
3.1 KiB
The regime gate: what it is, and why "it fails everything" is the right question
Owner's question (2026-07-18): "I don't know if we need the regime thing if everything just fails the regime as well. What's the whole point of that?"
Honest answer, in three parts.
What it actually is
The regime gate scores each session P(our ORB makes money today) from free
pre-open features (premarket breadth, SPY momentum/vol, the bot's own recent
trailing results), using a small walk-forward model. Below the threshold, it
sits the whole day out. Config: TRADING_REGIME_GATE_ENABLED=1,
TRADING_REGIME_GATE_P_MIN=0.5. It is the one research lever out of ~13
that survived out-of-sample testing.
Why it "fails everything" right now — and why that's honest, not broken
Recent sessions genuinely scored bad (Friday 07-17 = −0.9R realized). The gate isn't malfunctioning when it sits out — it's correctly reporting that the recent regime is one the ORB loses in. Over the full 266-session backtest it did NOT sit out everything: it traded ~32% of days and took the strategy from −0.11R/session (bleeding) to roughly flat. So "always no" is a recent-weeks artifact of a genuinely bad stretch, not the gate's normal behavior.
The real limitation you're pointing at (and you're right)
A gate that only ever says "no" is indistinguishable from turning the bot off. That is the honest ceiling: the regime gate is damage control, not an edge source. It cannot create profit that isn't there — it can only allocate the strategy's existing (slightly negative) edge onto the least-bad days. Its best possible outcome on a losing base strategy is flat. Never gain.
So its value is entirely conditional:
- If the base entry has no positive edge (where we are now — 12 conversion levers refuted, ~20% win rate), the regime gate is just a sophisticated "don't trade much." Flat-vs-bleeding is a real but unexciting win, and yes — at the limit it's a kill switch with extra steps. Your instinct is correct.
- If a positive entry edge is found (the whole point of the plan-017 L2 depth work), the regime gate flips from damage-control to force multiplier: trade the good NAMES on the good DAYS, and the two signals compound instead of one merely limiting losses.
Big-picture relevance
The regime gate is not the thing that makes money. It's the thing that stops the bot bleeding while we search for the thing that makes money. Keep it on because flat beats bleeding for free — but judge it correctly: it is a seatbelt, not an engine. The engine, if it exists, is an entry signal that separates winners at the trigger (plan 017 / order-book depth). The day an entry edge clears the bar, the regime gate becomes genuinely valuable. Until then, it's a holding pattern — and a holding pattern is the correct posture for a strategy still looking for its edge.
If plan-017 Phase 0 shows the order book separates winners, the regime gate earns its keep. If not, the honest move is the owner-selector fork, and the regime gate reverts to a simple "trade fewer days" toggle you can leave on or off with little consequence.