Research note · provenance-first

How a condition z-score rule traded both sides of MDB's sharp swings in backtest

The rule watches one MDB reading against its own recent range and trades only when it stretches to an extreme, long or short. MDB swung hard both ways over the window, running up before dropping to roughly 59% below its start and ending about 26% lower, and the rule worked both directions across 117 backtest trades, about 62 long and 55 short, finishing well above buy-and-hold at +214.88%. A 16.65% drawdown and a thin per-trade edge keep it research-only, read here as evidence about the rules rather than a live track record.

Published Apr 18, 2026
Symbol: MDBAsset: EquityStrategy: Condition z-score

MDB went nowhere in a straight line over this window: it ran up, then sold off hard, then clawed back, ending roughly a quarter below where it started. A rule willing to work both directions traded those swings from both sides and came out ahead in backtest. What follows replays MDB's saved history through the model's fixed rules as a study of those rules, not a forecast or a recommendation, and with a double-digit single-trade drawdown at its worst and only a slim edge on the average trade, the record reads as backtest evidence rather than a settled edge.

The model watches a single MDB reading and measures how far it sits from its own recent range, waiting until that distance stretches to an unusual extreme before it does anything. While it holds no position, a quiet reading near its normal level opens nothing; only a real stretch opens a trade, going long on an upward extreme and short on a downward one. Once in a trade, the model stays in until the reading eases back toward its normal range, which is how almost every position closed. Over this window the gate opened 117 times, split 62 long and 55 short, and 65.81% of those trades came good for a running total of +214.88% at an even stake.

How the model is built, end to end

The reading the model is built on is one MDB market-state series, standardized against the level it itself usually shows so a move can be judged as ordinary or extreme by the stock's own history rather than an outside yardstick. A reading close to its normal band tells the model nothing and keeps it out. Only when the series strays far enough from that band, high or low, does the model treat the condition as met and a trade as possible, which is why long stretches of ordinary readings pass without a position.

A stretched reading is permission, not an instruction. Before committing, the model reads the direction of the stretch to pick its side, opening a long when the reading pushes to an upward extreme and a short when it pushes down, each with a protective floor and a target fixed ahead of time. From there the trade ends by one of a few routes, and on MDB almost every position closed the same way, when the reading eased back toward its normal range rather than by hitting a hard target or stop.

One standardized reading pushed to an extreme, high or low, passes through a gate and opens a directional position, long on an upward stretch and short on a downward one, while a reading resting near its normal band is held back and leaves the book flat.
Reading MDB: a single reading that has stretched far from its normal band is let through the gate into a directional bet, long on an upward stretch and short on a downward one; a reading still near its band yields nothing.

Picture the model laid across MDB from end to end: first the standardized reading, then the extreme it must reach before the gate opens, then the long or short that follows. Nothing in the chain is elaborate; its governing instinct is to stand aside until one reading strays far from its usual band and the direction of that stray is clear before a dollar is risked. The rule set's lineage rounds out the picture, for it was drawn from a wide field of machine-proposed candidates and held on through its backtest and walk-forward checks, a research-gated rule shown here on that backtest evidence rather than a proven live record.

At a glance

The single standardized reading the rule is judged on
The one input
MDB exit breakdown
How trades close
MDB quality gates panel
Quality gates
Quality-gate status
GateActualThresholdStatusThreshold source
win rate65.81%>= 70.00%failcanonical registry standard
max drawdown16.65%<= 5.00%failcanonical registry standard
sample size117>= 30passcanonical registry standard
total return214.88%>= 100.00%passcanonical registry standard
expected return1.837%>= 5.000%failcanonical registry standard
Backtest summary
MetricValue
Total return215%
Win rate65.8%
Max drawdown16.7%
Expected per trade1.84%
Trades117
MDB cumulative profit over backtest window
Cumulative profit
MDB drawdown over backtest window
Drawdown
MDB trade PnL distribution
Trade PnL distribution
MDB monthly returns by month
Monthly returns
MDB price with signal regime overlay
Signal vs price

These figures come from a backtest of the model on MDB, scored against fixed acceptance gates, not from a live track record.

Walk-forward verification

Out-of-sample verification
MetricValue
Walk-forward match100%
Verified timestamps1,739
Signal correlation1

A trade walked through

Two real MDB trades with entry, hold, exit, direction, and return from the saved replay
One winning and one losing MDB trade from the saved backtest replay, entry direction, hold path, and exit type marked along the time axis.
MDB walked-through trade with entry, exit, and intra-trade extremes marked on the price line
A walked-through MDB trade, entry, exit, and intra-trade extremes.

The walked example is a short held about three days. The reading stretched to a downward extreme with MDB near 343 dollars, the model sold, and the position ran to its profit target near 237 dollars for +30.85% in late May 2024. It is the model at its clearest: a short opened on a downward stretch and carried to its target, one half of a two-sided rule that also went long when the reading stretched the other way.

Walked-through trade summary
MetricValue
Directionshort
Entry price342.56 USD
Exit price236.88 USD
Hold time3.0 days
Return+30.85%

What the full trade record shows

Across its 117 MDB trades the model won 77 and lost 40. The exits leaned almost entirely on the reading easing back: 110 closed when the reading returned toward its normal range, 4 reached the profit target, 2 closed on a signal change, and 1 was stopped out.

Exit reasons across the full backtest
Exit reasonTradesShare
Reading eased back11094.02%
Take-profit43.42%
Signal exit21.71%
Stop-out10.85%

A split this heavily weighted to the reading easing back is the mark of a model that closes when its condition clears rather than waiting for a fixed target, taking many small resolutions instead of a few large ones. That fits the thin per-trade edge: the average trade earned about 1.84%, so the record is built from volume, not from any one outsized win.

The biggest single winner was a short that ran to its profit target for +30.85% over about three days from near 343 dollars in late May 2024, the same trade walked above. Across the book the rule booked gains on both long and short trades, on MDB's up-legs and its down-legs alike, rather than leaning on either side alone.

The worst trade was a short stopped out for -15.30% within hours in April 2025 when MDB jumped back against the position near 145 dollars; that same trade is the deepest single-trade drawdown in the book, a 16.65% intra-trade adverse excursion, and it is one reason the drawdown gate is a bar the backtest missed.

No single trade carries the record, and at a 1.84% average edge the book depends on trading often and being right a little more than half the time. Because MDB round-tripped and ended lower over the window, the lesson is that a two-sided rule could come out ahead of simply holding by trading both the up-legs and the down-legs, but a 16.65% drawdown and a thin win rate keep it research-only.

How does this compare to just holding MDB

Over the same window the model was tested on, simply owning MDB would have ended about 26% lower, while the rule finished well ahead in backtest. Setting the two side by side is how you judge whether the rule earned its keep, and here it did, by trading both directions through a volatile round-trip rather than sitting through the full swing. The tiles below put numbers on that gap.

MDB model cumulative return overlaid on buy-and-hold cumulative return
MDB model vs buy-and-hold over the backtest window.
Model versus buy-and-hold
MetricValue
Model total return+214.88%
Buy-and-hold-25.99%
Difference+240.87%

How well does the model reproduce its tape?

Walk-forward verification checks whether the saved rule path reproduces the expected signal behavior on held-out timestamps it was never fit on. It is a consistency and replay-integrity test, not proof the model will make money live. A clean reproduction means the deployed rules act like the studied ones; it says nothing about whether MDB will keep stretching this reading to the extremes the model traded across the test window.

Walk-forward replay checks
MetricValue
Match rate100.0%
Correlation1.000

In live trading the model has traded only once so far, and that lone read comes in misaligned with the backtest, far too little to draw any conclusion from. Treat live behavior as essentially unproven for now and lean on the backtest, read as exactly that, a study of how the rules behaved on saved MDB history rather than a live track record.

When this approach fails

The model's losses come from being caught on the wrong side of a snap. The reading stretches, the model takes its side, and MDB reverses hard before the move follows, which is how the deepest trade lost 15.30% on a short that was stopped out within hours in April 2025 as the stock jumped back against it. That same stop-out is the deepest single-trade drawdown in the book, a 16.65% intra-trade adverse excursion, and it is why the drawdown bar is one the backtest missed by a wide margin.

Failure-mode summary
MetricValue
Losing trades40
Worst single-trade return-15.30%
Worst in-trade drawdown-16.65%

Three things are worth watching if this ever trades at size. The first is the drawdown, about 16.65% in the backtest, more than three times the acceptance bar, because a sharp reversal against a stretched reading can run well past the stop. The second is the thin per-trade edge, since the average trade earned only about 1.84%, below the bar the gates set, so the record leans on volume rather than a strong edge on any one trade. The third is the gap between live and backtested behavior, the first sign the reading is no longer stretching on the same moves it did across the test window.

Risk and honest limits

On this run the model's automated checks logged a caution rather than a clean pass, one more reason to weigh the rules on their record here rather than as a call on the stock.

Lifecycle

Status: backtestedBacktest window: March 2024 to April 2026

Where we are

These figures are a backtest, not a live track record. As real trades accumulate, a live-performance section can be added; until then, read every number here as evidence about the rules on saved history.

Sources

  • This article is based on Stonewell One research, including backtesting, walk-forward verification, deployment monitoring, and model-risk review.
  • Trade-level entries, exits, and holding times come from Stonewell One's backtest of MDB over the March 2024 to April 2026 replay window.
  • The model is compared against simply owning MDB over the same window.