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

#59 — Oracle optimal-trade ceiling (GBP_JPY S5)

2026-06-17
Verdict: negative · ⛔ negative for HFT — the spread eats half of even perfect trades
A perfect-foresight decomposition of 5.5 years of GBP_JPY five-second bars puts the theoretical ceiling at 2,426 pips/day — but 49% of even the OPTIMAL trades net less than one spread, killing the 1-pip-to-1-spread HFT idea for good.

Hypothesis — what it tests

What is the absolute upper bound of extractable pips under perfect foresight once the spread is charged per trade — i.e. how much of the theoretical ceiling does the retail spread structurally forbid, regardless of any signal quality?

Description

To gauge how much of the market's movement is even theoretically reachable through the retail spread, this experiment computed the exact set of trades a perfect-foresight trader would take on GBP_JPY S5 data: a dynamic-programming maximum-net-pips decomposition (an extension of the classic max-profit-with-transaction-fee problem to long+short), where the per-trade spread cost forbids fragmenting moves and a 2-bar minimum hold forbids same-bar round trips. The ceiling is enormous — +2,426 pips/day over 521 trades/day — but the distribution is the punchline: the median optimal trade nets 3.2 pips against a 3.1-pip median spread, so 49% of even the optimal legs fail to clear one spread. The reward concentrates in 1–5 minute 'meandering' moves (median efficiency 0.57), not clean fast legs, and a realistically reachable band (efficiency ≥0.75, net ≥10p) is only ~197 p/day at 11 trades/day. The resulting histogram became the book's strongest evidentiary figure — the quantitative tombstone for retail FX HFT.

Key result

Ceiling +2,426 p/day over 521 trades/day (50/50 long/short, 87% time in market); 49% of optimal legs net < one spread (median optimal trade 3.2p vs median spread 3.1p); 662,823 optimal trades; holds ≥1min = 65% of trades but 78% of reward; median optimal efficiency 0.57; realistic reachable band (eff≥0.75 & net≥10p) ≈ 197 p/day at 11 trades/day

Indicators

path efficiency (|net|/path, used to characterize the optimal legs)

Algorithms

dynamic programming (max-profit-with-transaction-fee, long+short perfect-foresight oracle)

Code

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

← #58 Indicator screen → momentum×efficiency → regime-gated daily mean-reversion#60 Indicator-vs-optimal-direction screen →
This page is one experiment from the audited record behind the book The Edge That Wasn'tget the book · about the project.