Blog
Blog
Your Indicator Has No Idea What Market It Is In
A momentum signal that worked reliably for eight months can start losing money in the ninth without a single parameter changing. The signal did not break. The market did.
Most systematic traders have experienced this. Few have a structural explanation beyond "the regime changed," which is observation, not diagnosis. The question is whether it is possible to detect regime transitions before positions are sized and committed.
Why the Same Signal Wins and Loses
Every technical indicator embeds an assumption about how price moves.
Momentum indicators assume that recent direction continues. Mean-reversion indicators assume that recent direction exhausts itself. Both assumptions are sometimes correct, sometimes catastrophically wrong, and which one applies at any given moment is not visible in price history at the timescale where the signal fires.
In a trending market, buying breakouts works and fading them destroys capital. In a ranging market, the same breakouts are traps and fading them is profitable. The indicator value looks identical in both environments. An RSI reading of 68 means completely different things when the orderbook is stacked with resting buyers behind price versus when resting liquidity has evaporated and any aggressive selling will find nothing on the way down.
The canonical treatment of this is not obscure. Hasbrouck (2007) documented that information about future price changes enters the orderbook before it reaches the tape. What follows is how that insight applies to regime detection specifically.
What a Regime Actually Is at the Microstructure Level
"Regime" in most retail frameworks means "a period where my strategy worked or did not work." That framing is backwards.
A regime is a structural condition in the orderbook that determines how price responds to incoming flow. Two conditions define the dominant ones.
In a directional regime, aggressive order flow moves price cleanly. Buyers cross the spread, price advances, and the ask side does not immediately refill at the old level. Sellers are not competing to supply liquidity at current prices. The market is moving because conviction on one side exceeds the other's willingness to stand in the way. OFI and price tend to co-move with low lag. Each wave of aggression produces a commensurate price response.
In an absorption regime, aggressive order flow is absorbed by patient counterparties without significant price change. A large resting buyer is sitting behind the bid. Sellers are crossing into it. Price barely moves. This is not a weak signal. It is a structurally different environment: a patient actor is accumulating while aggressive sellers provide the flow. When that patient buyer satisfies its position and removes the bid, the next wave of selling meets nothing. Price can gap.
These two regimes look nearly identical from a price chart during the absorption phase. They diverge catastrophically after it.
The Orderbook Features That Distinguish Them
Price-to-flow response is the clearest separator.
In a directional regime, aggressive flow and mid-price move together. Calculate OFI over a rolling window and regress it against the contemporaneous price change. The coefficient is high. Flow is translating efficiently into price. This is the environment where momentum signals fire correctly.
In an absorption regime, the same OFI-to-price regression goes flat or inverts. Aggressive flow is large but price response is small. Something is absorbing the imbalance. The signal from the imbalance and the signal from price tell opposite stories.
Depth stability adds a second dimension. A directional market depletes depth directionally. The ask thins as buyers clear it, and refill is slow at exhausted levels. Bid depth holds. An absorption market shows the opposite: depth on the side being sold into holds or grows. Resting interest is increasing, not decreasing, against the flow. The depth pattern around the trade activity reveals whether the aggressive side is winning or being absorbed.
Order arrival rate and the ratio of limit to market orders round out the picture. Directional regimes produce high market-order intensity: participants are urgent. Absorption regimes produce high limit-order intensity on one side: one actor is willing to wait, the other is not.
None of these require knowing who the actors are. The structural signature appears in the public orderbook data. The engineering is non-trivial, but the information is there.
The Transition Signal Is More Valuable Than the Regime Label
Knowing the current regime is useful. Detecting the transition is the actual edge.
A regime shift in the orderbook tends to precede the price behaviour that confirms it by enough time to matter. The depth structure that defines an absorption regime - resting liquidity holding against directional flow - does not disappear silently. It either holds until it does not, or it erodes. The rate of erosion is visible.
Consider an illustrative scenario grounded in documented microstructure dynamics. A large resting bid has been absorbing selling pressure for 40 minutes. OFI has been negative for most of that time. Price has barely moved. Then, across three consecutive windows of perhaps 90 seconds each, the bid depth figure drops by 30%, 40%, and 60%. The resting interest is withdrawing. No more absorption. The next wave of selling flow, identical in size to the waves that moved nothing, now has nothing to absorb it.
This is not prediction. It is a structural description of what is already happening at the limit-order level. The trader reading a price chart sees a flat candle. The trader reading the orderbook sees a support removing itself in real time.
The transition signal is the rate of change of the structural feature, not its level. A deep orderbook that is getting shallower fast is more predictive than a shallow orderbook that has been shallow for an hour.
Cross-Exchange Regime Confirmation
Crypto markets fragment regime signals in a way equity markets do not.
A regime that appears on one exchange but not others is either noise, exchange-specific flow, or the early stage of a market-wide transition that has not propagated yet. The distinction matters. Single-exchange OFI divergence that resolves without price movement is noise. Multi-exchange regime alignment that resolves with price movement is structural.
When regime signals align across many live venues simultaneously - OFI directional, depth depleting on the same side, price-to-flow response coefficients rising everywhere at once - the regime label carries more weight. When they diverge, the dominant exchange's signal tends to lead, and arbitrage mechanics push the others to follow.
Cross-exchange depth divergence is a separate signal. A deep bid on one exchange coexisting with thin bids on the others suggests concentrated resting interest in a specific venue, not broad market conviction. The regime interpretation differs entirely.
Cont, Kukanov, and Stoikov (Journal of Financial Econometrics, 12(1):47-88, 2014) formalised the price-impact relationship that underlies single-venue OFI. The cross-venue extension is structurally the same mechanism operating across a fragmented market. That is also why what market depth actually measures matters here: regime shifts are easier to see once you stop treating depth as a static execution number. If the derivatives crowd is also becoming fragile, the funding rate is not a cost adds a second regime clue. And if the signal only exists on one venue, the crypto orderbook fragmentation problem explains why the single-book read can still be incomplete.
The Honest Limitation
Orderbook-based regime detection does not eliminate losing trades. It does not produce clean binary labels that tell you which strategy to run from one minute to the next. Regimes blend, transition, and reverse.
What it provides is a prior. A momentum signal into a confirmed directional regime has a better expected distribution than the same signal firing into an absorption regime with deteriorating depth structure on the directional side. Better distribution is not a guarantee. The framework shifts the probability, not the certainty.
Any implementation that says "regime is X, therefore signal is Y, therefore trade" will fail. The regime feature reduces, not eliminates, the uncertainty embedded in any signal's interpretation.
That failure mode is also what most traders will build. Everyone will use the concept as a filter, which is too crude. The value comes from weighting, not gating.
The Ring Closes
Your momentum signal is right about what price did. It has no information about the structure that will determine what price does next.
Regime detection through orderbook features answers the question that the signal cannot: is the current market environment one where the signal's core assumption holds? A breakout into a directional market, confirmed by aligned depth depletion and high price-to-flow response, is a breakout with a structural tailwind. The same pattern into an absorption regime with resting depth holding against the move is a breakout walking into a wall that is still standing.
The chart shows both identically. The orderbook does not.
It is the structural condition of the orderbook that changes how price responds to incoming flow, not just a chart pattern label.
Because the market environment changed. A breakout in a directional regime and a breakout into absorption are not the same event.
Often it is the transition, not the label itself: depth withdrawal, changing price-to-flow response, and cross-venue alignment shifts.
No. It improves weighting and interpretation. It does not tell you with certainty which trade will work next.
Because crypto liquidity is fragmented. A regime signal on one venue may be noise, local flow, or only a partial view of a broader change.