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

#69 — ESCMA exit-learner (shock-entry + CMA-NN exit)

2026-06-11 to 2026-06-12 (revival phases 0–2; data 5.5yr USD_JPY S5)
Verdict: negative · ⛔ closed negative — entry is the binding constraint
A CMA-ES-trained neural exit on deterministic shock/random entries converges to 'bail in 1-3 bars' and loses to a trivial first-red-tick baseline — while the sine positive-control proves the exit learner itself is optimal (+14,440p), pinning the deficiency entirely on the entry.

Hypothesis — what it tests

Whether a learned exit on automatic (shock-triggered or random) entries can manufacture a trading edge by itself — i.e. whether the exit, rather than the entry, can be the lever.

Description

Instead of learning when and which way to trade (the hardest problem), this arc pinned the entry with a deterministic momentum-shock gate (σ-normalized: ≥2 of the 5m/15m/1h windows beyond |2σ|, 9,751 USD_JPY S5 events over 5.5 years) and trained a small 8-hidden-unit neural network via CMA-ES to learn ONLY the exit, rewarded on AMDDP5 (PnL minus λ times the area under the per-trade drawdown curve). The pipeline was rigorous — index-only causal features with a bit-identical R7 lookahead proof, multi-seed validation, JIT-parallel evaluation — and it correctly caught its own mirage: the single-seed 'star' did not replicate, and at convergence the learned exit loses to the trivial exit-at-first-negative-tick baseline (+22/+167 vs +437 AMDDP5). The load-bearing result is the Phase-0 sine positive control: on a synthetic sine market the same learner finds the provably optimal exit exactly (holds 181 bars vs optimum 180, 100% WR, OOS +14,440p), survives 10x-spread noise, and per-trade PnL tracks amplitude−spread to the pip — so the apparatus works and the deficiency is entirely the entry signal. Phase 1 (momentum-continuation entries, multi-seed) and Phase 2 (a LightGBM screen finding ~zero forward predictability in the features, best decile move 0.02–0.08p vs the 1.7p spread) closed the arc definitively: random/auto-entry exit-alpha is a NO, and a bonus structural finding is that bump activations (gauss/morlet/ricker) are necessary for exit-at-the-extreme decisions where sin/cos/tanh fail entirely.

Key result

Converged exit +22/+167 vs first-red-tick baseline +437 (AMDDP5); sine control OOS +14,440p / 100% WR (held 181 vs optimum 180); breakeven exactly at 1.7p spread in the amplitude sweep; noise to 16 p/bar harmless; LightGBM screen best decile move 0.02–0.08p (20–70x below spread), best long-decile loses 1.62p net

Indicators

multi-scale σ-normalized momentum (mn channels)momentum shock gate (|2σ| multi-window)AMDDP5 (area-under-drawdown-penalized PnL)random Fourier features

Algorithms

CMA-ES on fixed-topology NNbump activations (gaussian/morlet/ricker)sine positive-control experimentmulti-seed validationLightGBM entry screenNumba JIT parallel evaluation

Code

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

← #68 First-touch H4 low-volume reversion#70 Trailing-stop bake-off (SuperTrend vs PSAR et al.) →
This page is one experiment from the audited record behind the book The Edge That Wasn'tget the book · about the project.