The Edge That Wasn't
All 81 experiments › #71

#71 — Regime-conditioned entry Phase A (triple-barrier, against-drift)

2026-07-06 (launched and closed same day)
Verdict: negative · ⛔ information PASS / money FAIL — gross signal real but 5-10x below ECN floor, OOS never unsealed
Against-drift, top-ER-tercile entries beat the coin-flip arm gross on 12/12 pairs (+0.01 to +0.20 p/trade) but 0/12 clear even the 0.7p ECN cost floor (best -0.57 p/trade), so the confirmatory OOS test was never unsealed.

Hypothesis — what it tests

Whether a 7-feature causal regime vector (drift/efficiency-ratio/volatility/envelope-slope/leg-structure/variance-ratio) computed on a closed 10-minute S5 window carries directional information that survives triple-barrier random-entry cost accounting, using a coin-flip control arm and dual information+money gates rather than the naive 66.7% barrier baseline.

Description

A 7-feature intra-bar regime vector (drift, efficiency ratio, realized vol, peak/trough envelope slopes, leg expansion, variance ratios at k=2/4/8, leg count) computed on a closed 60-slot S5 window drives a triple-barrier (TP/SL/timeout) random-entry test across against-drift, with-drift, and coin-flip arms, at TP in {1.5,1.8,3.2,4.0}p and horizon in {2,4} M5 bars. The primary arm was pre-registration-amended from with-drift to against-drift given 7 prior negative with-drift studies. A mid-run amendment (Amendment 2) found that at the 2-bar vertical barrier ~80% of trades timeout, and among decided trades win rate inflates to 82-85% on pure random walks (verified by simulation/shuffle controls) — invalidating the 66.7% gambler's-ruin baseline as the null and replacing it with the coin-flip arm plus a net-ECN-expectancy money criterion. IS results (first 70%, 12 pairs, confirmatory cell against/hiER/TP3.2p/h2): the information criterion passed (against beat coin gross on 12/12 pairs, with-drift worst on 12/12, exactly the amended prediction), but the money criterion failed (0/12 pairs net-positive at ECN 1.0x cost; best -0.57 p/trade; gross tilt 5-10x below the 0.7p ECN floor, ~20x below OANDA cost). The user elected to keep OOS sealed rather than spend it on a foregone failure, preserving one future confirmatory shot at a redesigned exit (wider TP / passive ECN entry).

Key result

12/12 pairs: against-drift gross > coin-flip gross, delta +0.01 to +0.20 p/trade; with-drift worst on 12/12. 0/12 pairs net-positive at ECN 1.0x cost (best -0.57 p/trade); gross tilt 5-10x below 0.7p ECN floor, ~20x below OANDA floor. h=2 timeout share ~80%; decided-trade WR on pure random walks 82-85% (selection-bias artifact). Decided-WR deltas vs coin mixed (7/12 positive). EUR_USD IS: n=105,121, ER tercile edges (0.107, 0.244), confirmatory cell (against/t32/h2/hiER) wr=0.7886, wr-0.667=+0.122, net_ecn_1x=-0.7036, timeout_share=0.689. GBP_JPY IS: n=62,792, confirmatory cell wr=0.716, wr-0.667=+0.0493, net_ecn_1x=-0.5686, timeout_share=0.204. Signal exports: ~1.2M total across 12 pairs (88K-152K/pair).

Indicators

driftefficiency_ratio (ER)realized_vol (rv)peak_slopetrough_slopeleg_expansionn_legsvariance_ratio VR(k=2,4,8) (Lo-MacKinlay)zigzag legs (plain alternating extrema, TopsBots Stage1+2)

Algorithms

numba-JIT triple-barrier labeler (SL-first conservative)random-entry arm design (against-drift / with-drift / coin-flip)IS-fixed ER tercile bucketingday-block bootstrap CIbinomial test vs cost-adjusted p*FIFO one-position-at-a-time realization control

Code

Interactive version (search, filters, figures): the experiment explorer.

← #70 Trailing-stop bake-off (SuperTrend vs PSAR et al.)#72 Multi-day contrarian program + first-touch H4 bar-grid refutation →
This page is one experiment from the audited record behind the book The Edge That Wasn'tget the book · about the project.