Part XI · Swing trading · Chapter 11B

Conditional mean reversion

The central claim, and the conditions it needs

Where we are

Chapter 11A built the dashboard that reads the regime. This chapter says what to do when that read says the market is mean-reverting. It states the conditional thesis, the three layers every trade must pass, and how to grade the evidence and the horizon behind each signal.

What you need first
  • Mean reversion, momentum and the regime problem in an AR(1) model (Chapter 3B).
  • The market dashboard and its four questions (Chapter 11A).
  • Gamma exposure, the gamma flip and the two regimes of dealer hedging (Chapters 8A, 8C and 8D).
  • The square-root-of-time rule (Chapter 1A).
  • The Edge Book's evidence tiers (Chapter 10A) and its view of microstructure edges (Chapter 1G).

1 · The thesis, stated with its conditions

The dashboard of Chapter 11A tells you what regime you are in. This chapter is about what to do when it says the regime is mean-reverting. That means three things hold at once: the macro layer allows mean reversion as the prior, structure puts the market at a pullback level, and dealer gamma positioning makes damping intraday flow likely. The conditional thesis is not "SPY mean reverts" but "SPY mean reverts when measurable conditions hold". The dashboard's four checks are exactly those measurable conditions.

In plain terms

A rule like "buy SPY after it falls" is right in some markets and ruinous in others. The thesis names those markets in advance: the rule works only when the trend is up, volatility is calm, credit is quiet and dealers are hedging against moves. It tells you to stand aside whenever one of those fails.

As a universal claim about SPY, mean reversion is empirically false. Chapter 3B showed why a pooled fit can hide it: the sign of the effect changes with the regime. The classic statistic compares the average next-bar return after an up stretch with the average after a down stretch. Write mupm_{\text{up}} for the mean return of the bar after a trailing NN-bar return above zero, and mdownm_{\text{down}} for the mean after one below zero. The statistic is their difference:

D=mup−mdown D = m_{\text{up}} - m_{\text{down}} (11B.1)

A positive DD is momentum: up stretches are followed by higher returns than down stretches. A negative DD is mean reversion: down stretches are followed by the higher returns. On SPY the sign of DD depends on the regime. Sort the days by VIX level, by the sign of GEX or by the direction of credit spreads, and the sign flips. A trader who claims to be "a mean-reversion guy" is making a regime assumption without realizing it.

Worked example: A pooled average hides the regime

Step 1: two regimes. Suppose, hypothetically, that 80% of days are calm and 20% stressed. After a down week, the next day's mean return is +0.10% in calm regimes and −0.15% in stressed ones. Down weeks come on 35% of calm days and 60% of stressed ones.

Step 2: which regime a down week comes from. By Bayes' theorem, the chance that a down week falls in the stressed regime is 0.2×0.6/(0.8×0.35+0.2×0.6)=0.12/0.40=0.300.2 \times 0.6 / (0.8 \times 0.35 + 0.2 \times 0.6) = 0.12/0.40 = 0.30. Stress is 20% of days but 30% of down weeks.

Step 3: the pooled edge. Averaged over every down week, the next day returns 0.70×0.10%+0.30×(−0.15%)=0.070%−0.045%=0.025%0.70 \times 0.10\% + 0.30 \times (-0.15\%) = 0.070\% - 0.045\% = 0.025\%.

Step 4: what conditioning buys. At a hypothetical round-trip cost of 0.05%, the pooled buy-the-dip rule loses money after costs. The same rule taken only in the calm regime earns 0.10% before costs and 0.05% after them. It also skips the days that lose 0.15%.

The figure works the example with its numbers free. Lower the calm share of days, and the pooled bar falls further below the cost line while the calm bar stays above it. Raise the cost past 0.10%, and neither rule pays.

80%
0.05%
+0.10%
−0.15%
stress: 20% of days, 30% of down weeks
pooled after cost = −0.025%
calm only after cost = +0.05%

Conditioning pays. Taken after every down week, the rule does not clear its cost. Taken only in the calm regime, it clears it by 0.05% a trade.

A pooled edge too small to pay, over a conditional edge that pays. Two made-up regimes: after a down week, the next day's mean return is the calm effect on calm days and the stressed effect on stressed ones, and down weeks come on 35% of calm days and 60% of stressed ones, as in the chapter's example. The pooled bar weights the two regimes by where down weeks fall, which Bayes' theorem gives, so stress counts for more than its share of days. The dashed line is the round-trip cost, which a bar must clear to pay.

2 · Writing the conditions down

The conditional framing avoids the trap. You write down the conditions under which you expect the edge to be positive, and you check them. If any condition fails, you do not take the trade. Some condition fails on most days, which is the system working, not a sign that it is broken.

Familiar ground

A trial's eligibility criteria work the same way. Most patients screened for a targeted-therapy trial fail screening, which is no flaw in the protocol. The criteria exist because the effect is expected only in the eligible population. Enrolling the ineligible to fill the trial dilutes the effect toward zero, just as taking every dip dilutes a conditional edge into a pooled one.

3 · Three nested horizons

The framework is a hierarchy in which each layer answers a different question, runs on a different clock and uses different inputs. A signal at one layer never overrides a contradicting signal at a higher layer.

LayerClockWhat it decides
1. Macro regimeWeeks to monthsWhether the mean-reversion edge is positive, weak or negative: the prior
2. Market structure2 to 10 daysWhether this setup sits at a level where the macro edge can be expressed cleanly
3. Dealer gamma and pathIntraday to 2 daysWhether today's mechanical flow supports the trade or works against it

Layer 1, the macro regime, sets the prior. Its inputs are the equity drift, read from the slope of the 200-day SMA, the VIX level and term structure, and credit and rates stress: HY OAS, IG OAS and the MOVE index. It also reads the yield curve, as 10Y−2Y and 10Y−3M, the dollar and FX (DXY, USD/JPY) and the composite signal score of Chapter 11G. In its default states, positive drift with contango and tight credit means mean reversion is on. An inverted curve with widening credit and backwardation means mean reversion is suspended.

Layer 2, market structure, finds the level and the pattern. Its inputs are the Weinstein stage (Chapter 11E), the location against key moving averages (the 10-, 21-, 50- and 200-day EMAs), pattern detection (Chapter 11D) and relative strength against a benchmark. It decides whether this specific setup sits where the macro edge can be expressed cleanly.

Relative strength is the price of the stock or index divided by the price of a benchmark, followed over time. A stock that gains 8% while SPX gains 3% sees its relative strength rise by 1.08/1.03−1=4.9%1.08/1.03 - 1 = 4.9\%. "Relative strength positive" means the ratio is rising. Chapter 11D gives the Mansfield version, which compares the ratio with its own average. Relative strength has nothing to do with the relative strength index of Chapter 11C, despite the name.

Layer 3, dealer gamma and path, sets the execution context. Its inputs are net dealer GEX (Chapter 8A), the distance to the gamma flip, how the VIX behaves intraday, options skew and the time of day. It decides whether today specifically supports the trade, or whether mechanical flow works against the position.

4 · The decision tree

The layers combine into a decision tree that you run in order:

1. Macro regime supportive?
   (high composite signal, contango,
    positive drift)
   If NO:  no trade.
   If YES: continue.

2. Structure says BUY?
   (Stage 2 pullback to a defined level,
    pivot intact, relative strength positive)
   If NO:  no trade.
   If YES: continue.

3. Gamma regime says the PATH is acceptable?
   (positive GEX above the flip, OR a clear
    setup for an amplification trade below it)
   If NO:  skip.
   If YES: take the trade.

4. Size for the loss budget (Chapter 13C),
   pre-commit the invalidation (Chapter 13C),
   record the trade in your journal.

Most days you stop at step 1 or step 2, which is correct for a framework designed to filter aggressively. The Dealer Mechanics Lab adds that trades surviving all three gates should be sized larger than trades that fail any of them. Since the tree takes no trade that fails a gate, read this as: concentrate your size in the few survivors rather than spreading it across every setup you see.

Worked example: How often the gates open

Step 1: the pass rates. Suppose, hypothetically, that Layer 1 is supportive on 60% of trading days. Structure offers a Stage 2 pullback on 15% of those days, with an acceptable gamma path on 70% of those.

Step 2: the product. Each rate is a share of the days that passed the gates before it. All three therefore open on 0.60×0.15×0.70=0.0630.60 \times 0.15 \times 0.70 = 0.063 of days, about 0.063×252=160.063 \times 252 = 16 days in a year of 252 trading days.

Step 3: what it means for size. Sixteen trades a year cannot carry an account at a tiny size each. The capital that a pooled strategy would spread over 252 days waits for those 16, sized by the loss budget of Chapter 13C.

Sizing the survivors larger has a formal reason in the Kelly criterion, whose bet grows with the edge per unit of variance (Chapter 3D). A trade with a higher expected return earns a larger fraction of capital. A fractional Kelly bet keeps that ordering at a safer scale. The gates raise the expected return of the trades they pass, which is why the survivors deserve more.

Where the Edge Book disagrees

The Edge Book is far less confident that this edge is open to a retail account. It files short-term reversal over 1 to 5 days, liquidity provision after sharp moves, among the microstructure edges (Chapter 1G). It calls those essentially institutional-only: the edge per trade is usually 1 to 5 bps, which retail commission and slippage alone exceed. It also treats the sign of GEX, the core input of Layer 3, as low-confidence context worth only a fraction of one filter's weight (Chapter 10H).

The Dealer Mechanics Lab's case rests on the conditioning itself. It points to positive-gamma dealer hedging, which sells rallies and buys falls, as the mechanism behind reversal in calm regimes (Chapters 3B and 8D). It also holds each trade for 2 to 10 days rather than minutes. Neither source reports the conditional edge per trade after retail costs. Only your own out-of-sample test can supply the number that decides the question: if the conditioned edge does not clear your round-trip cost, the Edge Book's objection stands.

5 · Grading the evidence

Not every claim in this framework carries the same weight of evidence. The Dealer Mechanics Lab tags each with a tier:

TierWhat it coversExamples
APeer-reviewed papers, multi-decade replication, official exchange or regulatory dataThe equity risk premium (Mehra-Prescott; Dimson-Marsh-Staunton), the variance risk premium (Bondarenko; Carr-Wu), the Fed meeting week return anomaly (Cieslak-Morse-Vissing-Jorgensen 2019), intraday momentum (Baltussen et al. 2021, JFE), the pinning effect in single stocks (Ni-Pearson-Poteshman 2005)
BVendor statistics or backtests with credible methodology but no peer reviewSqueezeMetrics GEX models, 0DTE composition data from Cboe, VIX term-structure rules from practitioner research
CPractitioner pattern language that needs operationalizingVCP detection (Minervini), cup-and-handle pivot rules (O'Neil), Weinstein stage analysis

One Tier A example needs its scope. Ni, Pearson and Poteshman studied optionable single stocks from 1996 to 2002. On each expiration date they measured at least 16.5 basis points of return distortion, on average. They did not study the index. For S&P 500 futures, the evidence is Golez and Jackwerth (2012), who found a pull toward the strike worth at least $115 million of notional per expiration day.

Tier C is real but heuristic, which leaves the rigorous formalization to you. Chapters 11D and 11E do some of it, turning pattern language into explicit thresholds. Always tag in your own notes which tier each claim sits in. The tier does not disqualify a claim, but it sets the prior for how heavily to weight it.

The Edge Book grades evidence on a different axis. Its evidence tiers T1 to T3 grade how strong and durable the evidence for an edge is (Chapter 10A), while Tiers A to C grade the kind of source. The two can diverge: a peer-reviewed paper can document an effect that has since decayed, which Chapter 10I shows happening more than once.

Familiar ground

The tiers echo the levels of evidence you use every week. Tier A is the randomized trial, the meta-analysis and the registry. Tier B is the sponsor's data presented without peer review: credible, useful and not yet checked. Tier C is expert opinion, which is not wrong for being an opinion but has to be written into a protocol before it can be tested. A guideline weighs all three and weighs them differently, as the tiers ask you to.

6 · Tagging the horizon

Every signal also gets a horizon tag: a macro regime call works over weeks to months, a structural pattern over 2 to 10 days, and a gamma-driven intraday move resolves in hours. Mixing horizons is the second-most-common failure, after mixing tiers. People see a 5-minute breakout and infer a 6-month thesis, or hold a 6-month thesis and trade it on a 5-minute chart.

The arithmetic of Chapter 1A shows why a thesis at one horizon says little at another. Over a horizon hh in years, a drift μ\mu moves the price by about μh\mu h, while the noise has a standard deviation of σh\sigma\sqrt{h}. Their ratio is the signal-to-noise ratio of the thesis at that horizon:

μhσh=μσ h \frac{\mu h}{\sigma \sqrt{h}} = \frac{\mu}{\sigma}\,\sqrt{h} (11B.2)
Worked example: A thesis at the wrong horizon

Step 1: the thesis. You expect the index to drift up 10% a year, with a volatility of 16%, so μ/σ=0.625\mu/\sigma = 0.625.

Step 2: six months. With h=0.5h = 0.5, (11B.2) gives 0.625×0.5=0.440.625 \times \sqrt{0.5} = 0.44. The thesis is visible, if not certain, over its own horizon.

Step 3: five minutes. A trading year holds about 252×390=98,280252 \times 390 = 98{,}280 minutes, so 5 minutes is h=5/98,280=0.0000509h = 5/98{,}280 = 0.0000509 years. Then h=0.00713\sqrt{h} = 0.00713, which makes the ratio 0.625×0.00713=0.00450.625 \times 0.00713 = 0.0045, a hundred times smaller. On a 5-minute chart, a 6-month thesis is invisible in the noise.

The discipline is to write the horizon of every trade idea down before you enter. If the horizon you stated does not match the indicators you are using, fix one or the other before you click buy.

7 · What the next chapters build

The rest of the machinery comes in five chapters:

  • Chapter 11C builds the indicator foundations: RSI, MACD, ATR, ADX, Bollinger Bands and Donchian Channels. It asks which feature of the data each measures, and which combinations are genuine confluence rather than reparameterization.
  • Chapter 11D builds a pattern library of the volatility contraction pattern (VCP), the cup and handle and the bull flag, as detectors with explicit geometric thresholds.
  • Chapter 11E gives Weinstein's four-stage classifier and its overlap with GEX regimes.
  • Chapter 11F gives Elder's triple screen across timeframes. The higher timeframe (HTF) sets the direction, the intermediate one (ITF) the timing and the lower one (LTF) the trigger, with confluence as a discipline against impulse.
  • Chapter 11G aggregates an eight-dimensional regime scorecard into a single bias number. Its dimensions are volatility, credit, rates, the dollar, commodities, global markets, trend and sentiment.
In practice
  • Keep the conditions on paper: a written checklist of the three layers, with thresholds, filled in before you look at a chart. A condition you invent after seeing a setup is a rationalization.
  • Count the failures: log which gate stopped you each day. After a few months the counts show whether your conditions are too loose, since trades should be rare, or too tight to ever pass.
  • Price the costs in: the conditional edge must clear the round trip, spread and slippage included (Chapter 2D). A short holding period also makes gains on SPY short-term for tax, where SPX and XSP options get Section 1256 treatment (Chapter 2E).
When it fails

A gate that passed at entry can fail on day 3, when the regime turns, credit widens or GEX crosses the flip. A trade that was conditional is then unconditional. Re-read the dashboard every day you hold the position, letting the invalidation rules of Chapter 13C close it. The conditions themselves can also be overfitted: a VIX threshold tuned until the backtest looks best has used the data twice.

Decision rule
  • Before any trade, run the three layers in order and stop at the first failure. A lower layer never overrides a higher one.
  • Trade only the survivors, sized from the loss budget of Chapter 13C, with the invalidation level set before entry.
  • Tag every claim with its evidence tier and its horizon. If the horizon of the idea and the horizon of the indicators differ, fix one before entering.
  • Test the conditional edge out of sample, net of costs. If it does not clear the round trip, the Edge Book's objection holds and the trade is not worth taking.
Common mistake: a lower layer overruling a higher one

An indicator at a textbook oversold extreme (Chapter 11C), on a day when the VIX curve is in backwardation, feels like a gift. It is a Layer 2 signal contradicting a Layer 1 "suspended", which the hierarchy settles in favor of the higher layer. The oversold reading in a stress regime is the momentum case of (11B.1), not the reversal case.

Common mistake: choosing the conditions after the fact

Every extra condition you try on past data is another comparison that can look good by chance alone. Fix the conditions and their thresholds before the test. Discount a backtest that tried many, as Chapter 1D's deflated Sharpe ratio does.

What to carry forward
  • The thesis is conditional: SPY mean-reverts over short horizons only when measurable conditions hold. Pooled across regimes, the effect can vanish or reverse.
  • Three layers decide each trade, on three clocks: the macro regime over weeks to months, structure over 2 to 10 days, and dealer gamma and path over hours to 2 days. A lower layer never overrides a higher one.
  • On most days some condition fails, which makes no trade the correct result. The few survivors deserve concentrated size.
  • Tag every claim with its evidence tier (A, B or C) and its horizon. The Edge Book doubts that short-term reversal pays a retail account at all, so test the conditional edge net of costs.

8 · Check yourself

Question 1

Calm days are 70% of all days and stressed days 30%. After a down week the next-day mean is +0.12% in calm regimes and −0.20% in stress. Down weeks come on 40% of calm days and 60% of stressed ones. What is the pooled next-day mean after a down week?

Answer

A down week comes from stress with probability 0.3×0.6/(0.7×0.4+0.3×0.6)=0.18/0.46=0.390.3 \times 0.6/(0.7 \times 0.4 + 0.3 \times 0.6) = 0.18/0.46 = 0.39. The pooled mean is 0.61×0.12%+0.39×(−0.20%)=0.073%−0.078%=−0.005%0.61 \times 0.12\% + 0.39 \times (-0.20\%) = 0.073\% - 0.078\% = -0.005\%, slightly negative. Pooled, the rule looks useless, while conditioned on calm it earns 0.12%.

Question 2

Layer 1 reads "suspended": the curve is inverted and credit is widening. Layer 2 shows a clean Stage 2 pullback, and Layer 3 shows GEX positive, well above the flip. What does the tree say?

Answer

No trade: the tree stops at step 1, because a signal at a lower layer never overrides a contradicting signal at a higher one.

Question 3

Place each claim in a tier: a SqueezeMetrics GEX estimate, a published study of intraday momentum replicated across decades, and a rule that a cup's handle should retrace less than half its depth.

Answer

Tier B for the vendor's GEX model, credible but not peer-reviewed. Tier A for the replicated peer-reviewed study. Tier C for the handle rule, practitioner pattern language that needs operationalizing.

Question 4

Your thesis is a 2-week reversal. Which of these indicators match its horizon: a 200-day moving average, a daily RSI (the oscillator of Chapter 11C), or 1-minute order flow?

Answer

The daily RSI, which measures stretches over days. The 200-day average speaks to the macro layer, weeks to months, and 1-minute flow to intraday execution. Using either to time a 2-week trade mixes horizons.

Question 5

With a drift of 8% a year and a volatility of 20%, what is the thesis's signal-to-noise ratio over three months, and over one day?

Answer

Here μ/σ=0.4\mu/\sigma = 0.4, so over three months, with h=0.25h = 0.25, the ratio is 0.4×0.5=0.200.4 \times 0.5 = 0.20. Over one day, h=1/252h = 1/252 and h=0.063\sqrt{h} = 0.063, so the ratio is 0.4×0.063=0.0250.4 \times 0.063 = 0.025, eight times smaller.