← meanRevOscillator

meanRevOscillator — Performance

BLOCKEDAudited 2026-09-12· hand-written (no shared engine) engine· quantroduction· spot

Window 2.0 years (2024-09-11 → 2026-09-12, 210,400 bars of 5m) · Markets ADA, BTC, DOGE, ETH, LINK, SOL, XRP Costs 0.10% taker fee + 2 bps slippage on every fill Timeframe declares 5m — tested at its own timeframe Capital 336 quote — probe at 1,000 peaked at 32.0% deployed (320 quote at risk) Sizing fixed quote per order (TRADING_LIMIT = 100)


How this was measured

Every decision is taken on a bar that has closed, and the resulting market order fills at the next bar's open plus slippage. Resting stop and target orders fill intrabar, and when one bar's range covers both the stop and the target the stop is taken first — the pessimistic reading wherever candle data cannot resolve the order of events inside a bar.

The engine is validated separately by 53 known-answer tests covering accounting, fee arithmetic, determinism and the no-look-ahead boundary. Nothing below means anything unless those pass, so the pipeline aborts if they do not.

Result by market

Market Orders Round trips Return Buy & hold Edge Max DD Sharpe Win rate Profit factor Time in market
ADA 28 17 3.6% -41.5% 45.1% 3.0% 0.60 94% 105.92 56.9%
BTC 41 17 2.0% 22.9% -20.9% 2.1% 0.43 88% 2.68 99.9%
DOGE 58 38 3.6% -19.8% 23.4% 3.5% 0.78 95% 1.92 99.8%
ETH 15 10 0.9% -0.8% 1.7% 0.8% 0.62 100% — 99.9%
LINK 25 13 -1.7% -0.2% -1.4% 4.0% -0.38 85% 0.46 99.9%
SOL 63 31 -18.8% -31.4% 12.6% 24.1% -1.29 81% 0.16 99.5%
XRP 52 25 -3.6% 134.1% -137.7% 7.0% -0.49 80% 0.52 94.9%

Median across markets: 0.9% return, 3.5% max drawdown, Sharpe 0.43.

The median is the honest number, not the best market. Ranking a strategy on its best pair measures which pair was picked, not what the strategy does.

Reading these numbers

Variant B — no stop loss, never sells below the position average

The same strategy on the same data, with one rule added: no exit may be priced below the position's average cost. That also removes every stop-loss, since a stop sits below the entry by definition. It is the "never realise a loss" version.

A — as shipped B — no-loss exits
Median return 0.9% 3.6%
Median max drawdown 3.5% 4.7%
Profitable markets 4 / 7 7 / 7
Ends still holding — 7 / 7
Exits refused by the rule 0 641
Market A return B return A max DD B max DD B ends holding
ADA 3.6% 3.6% 3.0% 3.1% yes
BTC 2.0% 6.4% 2.1% 7.4% yes
DOGE 3.6% 6.7% 3.5% 14.2% yes
ETH 0.9% 0.9% 0.8% 0.8% yes
LINK -1.7% 2.0% 4.0% 4.7% yes
SOL -18.8% 2.4% 24.1% 34.3% yes
XRP -3.6% 4.0% 7.0% 4.0% yes

How to read this. Variant B reports the higher return — 3.6% against 0.9% — and that is mostly not an improvement. A loss that is never closed does not disappear, it sits in inventory. That is why max drawdown rises from 3.5% to 4.7%, and why the strategy ends still holding on 7 of 7 markets: B's reported return leaves out the positions it never resolved. The rule refused 641 exits over the window.

Read the two together rather than picking one. A is what the strategy does; B is what it looks like with its losses deferred instead of taken, and the gap between them measures how much of A's result comes from cutting.

Why it exited

Every exit the engine executed, attributed to the message the strategy emitted on that bar. One bar is one decision, so an event announced on both the console and the side panel is counted once.

Exit Count Share Mean gain Worst
STOP LOSS 6 4.0% -8.62% -9.50%
(unexplained) 145 96.0% — —

145 of 151 exits (96.0%) carry no explanation. The position changed and the strategy said nothing about why. That is usually a resting order — a customSellTarget or customStopTarget the exchange fills without calling back into the strategy — in which case the strategy's own P&L, trade count and win rate never saw those trades either. See the fixes report.

Cost sensitivity

The strategy places the same number of orders at 0% fees as at 0.10%. That is a correctness property rather than a performance one: it proves no balance gate becomes unsatisfiable once costs leave the wallet. A strategy that fails this check stops trading silently the moment it meets a real fee schedule.

Market Orders at 0.10% fee Orders at 0% fee Ratio
ADA 11 11 1.00
BTC 24 24 1.00
DOGE 20 14 1.43
ETH 5 11 0.45
LINK 12 12 1.00
SOL 32 24 1.33
XRP 27 27 1.00

Correctness invariants

Invariant Result
runs clean on every market PASS
no phantom chart marks PASS
no negative balances PASS
cost independent (fees change P&L, not the ability to act) FAIL
places orders somewhere PASS

Outstanding notes

What this window cannot tell you

A single year is a small sample, and this one was a broad downtrend.

The engine models spot, long-only, one price per bar. It carries no order book, so it cannot see spread, queue position or depth, and a strategy whose edge is the spread cannot be measured here at all.


Every number on this page is read from the run record that produced it — the audit pipeline writes the page and the record together, so the two cannot drift apart.