Notebook 014 - The Tape Has Memory
A transition matrix can tell the desk what tends to persist, but it still does not grant permission to trade.
The tape does not start from zero every morning. That is easy to say and harder to build into a trading process without turning it into superstition. A strong week can keep feeding strength. A choppy tape can stay choppy longer than the first clean candle wants to admit. Volatility can remain contained, oil pressure can keep leaning on the market, and leadership can persist even when the day-to-day screen feels noisy.
This weekend’s Onyx work added a new research layer for that problem: an observable Markov regime model. It is not a magic predictor. It is not a new strategy. It is not a button that turns a market label into permission. It is a way to ask a narrower question: given the regimes we can observe in the tape, how often do they persist, and what usually happens next?
That question belongs in the desk process. It gives the plan one more piece of memory. The important part is keeping that memory in the right place. A Markov chain can inform the morning plan. It can challenge a visible tape read. It can make the desk more or less confident in a risk-on posture. It still cannot approve a trade.
The Model Contract
The first job was to make the regime language simple enough to audit.
The Markov model starts with observable market behavior, not a hidden state. For each source, it looks at trailing returns and classifies the tape into three plain labels: BULL, SIDE, or BEAR. That is intentionally blunt. The point is not to describe every nuance of the market. The point is to create a stable vocabulary that can be counted, tested, and compared.
Once the historical days are labeled, the model builds a transition matrix. If the tape is BULL today, how often has it stayed BULL tomorrow? How often has it shifted to SIDE? How often has it broken into BEAR? The same question gets asked from each state. That is the memory. Not a story about what should happen, but a record of what the labeled tape has tended to do.
The useful output is not just the current state. It is persistence. If a BULL state has high stickiness, the desk should know that the observable tape has tended to hold its character. If a SIDE state keeps absorbing attempts to trend, that matters too. A regime label without persistence is just a snapshot. The transition matrix turns the snapshot into a path.
The Tape Is A Basket
SPY and QQQ matter, but they are not the whole read.
The model does not only look at one index. Onyx now reads a basket of market sources: broad market, growth, semiconductors, small-cap breadth, volatility, and oil pressure. That matters because a single index can look cleaner than the underlying market actually is. QQQ strength means something different when semiconductors confirm it, volatility is contained, and breadth is participating. It means something else when oil, rates, or volatility are pushing back.
The interesting detail is that not every source points in the same direction in the same way. A falling volatility product can be supportive even though its own raw state is technically bearish. Rising oil can be a warning even if its state is bullish. The desk does not need every source to be translated into the same emotional language. It needs each source to say what its regime means for risk.
That is where this work becomes more than a toy model. It does not simply ask whether the market is up. It asks whether the parts of the tape that usually support risk are aligned, whether the parts that usually threaten risk are quiet, and whether the current configuration has tended to persist.
The First Read
The weekend run was constructive, but not clean enough to become authority.
The first full weekend run produced a constructive observable read. The composite Markov state was BULL, with the one-day forecast heavily tilted toward continued BULL conditions and high stickiness across the major equity and semiconductor sources. Volatility stress was contained, which supported the risk-on read. Oil, however, stayed in the warning column because oil strength can carry geopolitical and inflation pressure into the desk.
That is useful. It says the observable tape had memory in the risk-on direction. It supports the idea that the next plan should not treat every rally as random noise. If SPY, QQQ, semiconductors, breadth, and volatility all confirm in live trading, the desk has a reason to be prepared for selective deployment instead of hiding behind vague caution.
But the read was not a full green light. The hidden-regime model did not agree cleanly. The observable Markov model said BULL while the HMM read was more sideways. That disagreement is not a problem to smooth away. It is exactly the kind of tension a desk should want to see before it grants fresh authority. One model says the visible tape has been persistent. Another says the underlying state may be less resolved. The plan should hear both.
A Second Opinion Is Not A Vote
Model disagreement is a risk note, not a bug.
The temptation with models is to make them vote. If Markov says BULL and another model says SIDE, average them, pick the louder one, or make a score. That can be useful in some systems, but it is not the main lesson here. For Onyx, disagreement is not something to hide. It is something to route into the plan.
If both observable and hidden-regime research agree, confidence improves. If they disagree, the desk should become more selective. That does not mean no trades. It means the plan needs cleaner gates. It means fresh risk should require confirmation from the live tape, not just a weekend report. It means the best names can still be prepared, but they should be prepared with caps, invalidation, target logic, and no-loss compatibility already written.
That is the right role for a second opinion. It should change the quality of the question. It should not answer the approval question by itself.
Walk Forward Or It Does Not Count
A transition matrix is more useful when it is tested without peeking.
The weekend work also added walk-forward validation. That matters because regime research can look convincing if it is allowed to learn from the future. The useful test is stricter: build the transition matrix from prior data only, forecast the next labeled state, and then compare that forecast to what actually happened.
The first validation pass showed enough signal to make the research worth keeping in the process. The point is not that the model is now proven. It is that the model is being forced to earn its seat at the desk in an auditable way. If it gets worse, the reports should show that. If it works only in certain environments, the desk should learn that too.
This is the difference between a research artifact and a trading myth. A myth says the market feels sticky. A research artifact says here is how sticky the labeled state has been, here is how the forecast behaved out of sample, and here is where the signal should or should not affect the plan.
Research Is Not Permission
The most important field in the model is the boundary around it.
Every Markov report has to say the same thing in plain language: research only. It does not edit the plan. It does not change runtime authority. It does not submit orders. It does not loosen the no-loss rule. It does not turn a BULL probability into approval.
That boundary is not legal decoration. It is system design. Onyx is built so the trader executes the approved plan. The Markov model can help the desk decide whether a plan should be risk-on, selective, target-management first, or review-required. It can help size confidence. It can explain why a BULL tape deserves preparation or why a bullish surface read should be treated carefully. But it cannot promote a watchlist row into an executable lane.
This is where the Markov work connects back to the rest of the system. Notebook 013 was about the missing middle lane. The Markov layer helps decide when that middle lane deserves attention. It can say the backdrop is persistent enough to prepare a narrow leader. It can say oil or hidden-regime divergence argues for smaller size. It can say the tape has memory. The plan still has to grant permission.
The Desk Use
The value is not prediction. The value is better premarket posture.
The best use of the Markov model is not to ask, "Will the market go up tomorrow?" That question is too big and too brittle. The better question is, "What kind of day should the desk be prepared for if the live tape confirms?" That is a planning question, and planning questions are where Onyx gets better.
If the observable state is BULL, persistence is high, volatility is contained, and semiconductors confirm, the desk should not arrive with only a target-management mindset unless there is a specific blocker. It should prepare funded lanes for the best approved names and define what confirmation is required. If the model says BULL but HMM says SIDE, oil is hot, or breadth is weak, the plan can still be constructive, but it should be selective and explicit.
That is the real improvement. The model does not need to be prophetic. It needs to make the desk less vague. Instead of saying "the tape feels constructive," Onyx can say the observable regime is BULL, the transition matrix shows persistence, the hidden model disagrees, oil is a risk penalty, and therefore the plan should be prepared but not broad-live by default.
That is a better sentence. Better sentences become better plans.
The Lesson
The tape has memory, but memory is not authority.
The weekend Markov work gave Onyx a cleaner way to study regime persistence. It made the tape less momentary. Instead of treating each morning as a fresh vibe, the desk can now ask what state the observable market has been in, how sticky that state usually is, where the pressure sources agree or disagree, and whether another model sees the same thing.
That is useful because a trading process needs memory. The journal is memory of decisions. The plan is memory of permission. The dashboard is memory compressed into attention. The Markov matrix is memory of regime transitions. Each one belongs in a different layer.
The mistake would be letting those layers collapse. A strong Markov read should not become a trade. A divergent HMM read should not automatically freeze the desk. Oil pressure should not become a vague fear. Each input should become a better plan question.
That is the lesson from this weekend. The tape has memory. Onyx is learning to measure it. The desk still has to decide what that memory is allowed to mean.