diff --git a/blueprints/bo_h1.json b/blueprints/bo_h1.json new file mode 100644 index 0000000..b3eb8db --- /dev/null +++ b/blueprints/bo_h1.json @@ -0,0 +1 @@ +{"format_version":1,"blueprint":{"name":"bo_h1","nodes":[{"primitive":{"type":"Resample","name":"h1","bound":[{"pos":0,"name":"period_minutes","kind":"I64","value":{"I64":60}}]}},{"primitive":{"type":"Delay","name":"prev_high","bound":[{"pos":0,"name":"lag","kind":"I64","value":{"I64":1}}]}},{"primitive":{"type":"Delay","name":"prev_low","bound":[{"pos":0,"name":"lag","kind":"I64","value":{"I64":1}}]}},{"primitive":{"type":"RollingMax","name":"channel_hi","bound":[{"pos":0,"name":"length","kind":"I64","value":{"I64":24}}]}},{"primitive":{"type":"RollingMin","name":"channel_lo","bound":[{"pos":0,"name":"length","kind":"I64","value":{"I64":24}}]}},{"primitive":{"type":"Gt"}},{"primitive":{"type":"Gt"}},{"primitive":{"type":"Latch"}},{"primitive":{"type":"Latch"}},{"primitive":{"type":"Sub"}}],"edges":[{"from":0,"to":1,"slot":0,"from_field":1},{"from":0,"to":2,"slot":0,"from_field":2},{"from":0,"to":5,"slot":0,"from_field":3},{"from":0,"to":6,"slot":1,"from_field":3},{"from":1,"to":3,"slot":0,"from_field":0},{"from":2,"to":4,"slot":0,"from_field":0},{"from":3,"to":5,"slot":1,"from_field":0},{"from":4,"to":6,"slot":0,"from_field":0},{"from":5,"to":7,"slot":0,"from_field":0},{"from":6,"to":7,"slot":1,"from_field":0},{"from":6,"to":8,"slot":0,"from_field":0},{"from":5,"to":8,"slot":1,"from_field":0},{"from":7,"to":9,"slot":0,"from_field":0},{"from":8,"to":9,"slot":1,"from_field":0}],"input_roles":[{"name":"open","targets":[{"node":0,"slot":0}],"source":"F64"},{"name":"high","targets":[{"node":0,"slot":1}],"source":"F64"},{"name":"low","targets":[{"node":0,"slot":2}],"source":"F64"},{"name":"close","targets":[{"node":0,"slot":3}],"source":"F64"}],"output":[{"node":9,"field":0,"name":"bias"}]}} diff --git a/blueprints/bo_h1_trend.json b/blueprints/bo_h1_trend.json new file mode 100644 index 0000000..a776cdd --- /dev/null +++ b/blueprints/bo_h1_trend.json @@ -0,0 +1 @@ +{"format_version":1,"blueprint":{"name":"bo_h1_trend","nodes":[{"primitive":{"type":"Resample","name":"h1","bound":[{"pos":0,"name":"period_minutes","kind":"I64","value":{"I64":60}}]}},{"primitive":{"type":"Delay","name":"prev_high","bound":[{"pos":0,"name":"lag","kind":"I64","value":{"I64":1}}]}},{"primitive":{"type":"Delay","name":"prev_low","bound":[{"pos":0,"name":"lag","kind":"I64","value":{"I64":1}}]}},{"primitive":{"type":"RollingMax","name":"channel_hi","bound":[{"pos":0,"name":"length","kind":"I64","value":{"I64":24}}]}},{"primitive":{"type":"RollingMin","name":"channel_lo","bound":[{"pos":0,"name":"length","kind":"I64","value":{"I64":24}}]}},{"primitive":{"type":"Gt"}},{"primitive":{"type":"Gt"}},{"primitive":{"type":"Latch"}},{"primitive":{"type":"Latch"}},{"primitive":{"type":"EMA","name":"ema_fast","bound":[{"pos":0,"name":"length","kind":"I64","value":{"I64":12}}]}},{"primitive":{"type":"EMA","name":"ema_slow","bound":[{"pos":0,"name":"length","kind":"I64","value":{"I64":48}}]}},{"primitive":{"type":"Gt"}},{"primitive":{"type":"Gt"}},{"primitive":{"type":"Latch"}},{"primitive":{"type":"Latch"}},{"primitive":{"type":"Mul"}},{"primitive":{"type":"Mul"}},{"primitive":{"type":"Sub"}}],"edges":[{"from":0,"to":1,"slot":0,"from_field":1},{"from":0,"to":2,"slot":0,"from_field":2},{"from":0,"to":5,"slot":0,"from_field":3},{"from":0,"to":6,"slot":1,"from_field":3},{"from":0,"to":9,"slot":0,"from_field":3},{"from":0,"to":10,"slot":0,"from_field":3},{"from":1,"to":3,"slot":0,"from_field":0},{"from":2,"to":4,"slot":0,"from_field":0},{"from":3,"to":5,"slot":1,"from_field":0},{"from":4,"to":6,"slot":0,"from_field":0},{"from":5,"to":7,"slot":0,"from_field":0},{"from":6,"to":7,"slot":1,"from_field":0},{"from":6,"to":8,"slot":0,"from_field":0},{"from":5,"to":8,"slot":1,"from_field":0},{"from":9,"to":11,"slot":0,"from_field":0},{"from":10,"to":11,"slot":1,"from_field":0},{"from":10,"to":12,"slot":0,"from_field":0},{"from":9,"to":12,"slot":1,"from_field":0},{"from":11,"to":13,"slot":0,"from_field":0},{"from":12,"to":13,"slot":1,"from_field":0},{"from":12,"to":14,"slot":0,"from_field":0},{"from":11,"to":14,"slot":1,"from_field":0},{"from":7,"to":15,"slot":0,"from_field":0},{"from":13,"to":15,"slot":1,"from_field":0},{"from":8,"to":16,"slot":0,"from_field":0},{"from":14,"to":16,"slot":1,"from_field":0},{"from":15,"to":17,"slot":0,"from_field":0},{"from":16,"to":17,"slot":1,"from_field":0}],"input_roles":[{"name":"open","targets":[{"node":0,"slot":0}],"source":"F64"},{"name":"high","targets":[{"node":0,"slot":1}],"source":"F64"},{"name":"low","targets":[{"node":0,"slot":2}],"source":"F64"},{"name":"close","targets":[{"node":0,"slot":3}],"source":"F64"}],"output":[{"node":17,"field":0,"name":"bias"}]}} diff --git a/docs/arc-1-breakout-trend.md b/docs/arc-1-breakout-trend.md new file mode 100644 index 0000000..056c1bd --- /dev/null +++ b/docs/arc-1-breakout-trend.md @@ -0,0 +1,63 @@ +# Arc 1 — does a trend regime reshape the H1 breakout's R-distribution? + +**Date:** 2026-07-13 +**Engine:** aura @ `1ebb94c` (release build) +**Results page:** `site/index.html` (build: `python3 site/build.py`) + +## Hypothesis + +Following the orthogonal confirm/refute research model: a lone signal is not +expected to be profitable; the question is whether a *conditioner* B reshapes +the R-distribution of a base signal A. Here A = an H1 donchian-style breakout +(`blueprints/bo_h1.json`), B = an EMA(12)/EMA(48) trend regime that gates the +held breakout state post-latch (`blueprints/bo_h1_trend.json`) — a held +breakout is cut the moment the regime flips against it. + +## Method (campaign path, first real use) + +Everything ran as registered research documents — no ad-hoc verb flags: + +- `research/process-screen.json` — sweep (deflated argmax on sqn_normalized) + → 90/30-day rolling walk-forward refit → 1000-resample block-5 R-bootstrap + pooled over WF OOS trades → cross-instrument generalize (expectancy_r). +- `research/campaign-arc1.json` (id `490d14df…`) — both variants × 4 + instruments (GER40, US500, EURUSD, XAUUSD) × window 2018-01-01..2026-06-30, + channel axes {24,48,96}², risk Vol{3, 2.0}, seed 0. 8 cells, 76 s wall. +- `research/campaign-arc1-curves.json` (id `da886931…`) — both variants at + default params, taps persisted (equity, exposure, r_equity) for the page. + +No cost block: all R figures are **gross** (net == gross). + +## Findings + +1. **The gate reshapes the R-distribution, instrument-dependently** (pooled + WF-OOS bootstrap, mean E[R] and P(E[R] ≤ 0)): + - GER40 **flips sign**: −0.151 (P≤0 = 0.90) → +0.139 (P≤0 = 0.18) + - US500 improves: +0.193 (0.10) → +0.205 (0.08) + - EURUSD deteriorates sharply: −0.150 (0.88) → −0.204 (0.99) + - XAUUSD roughly flat: +0.170 (0.14) → +0.124 (0.15) + This is the conditional effect the research model looks for: B is not a + uniform improvement, it is a per-instrument reshaping. +2. **No deployable edge.** Best cell P(E[R] ≤ 0) ≈ 0.08 (US500 gated) — not + significant against 8 comparisons; generalization worst-case is deeply + negative for both variants with sign agreement 0/4; and all of it is + gross of costs. +3. **Selection instability.** The full-window IS argmax picks asymmetric + channels (e.g. hi=96/lo=24) that wander across WF windows — the deflation + and param-stability records show the screen overfitting the grid, which + the WF/MC stages correctly deflate. + +## Verdict + +Honest null on deployability; positive on the machinery and on the research +question's shape: the conditional framing (B reshapes A) is measurable with +the recorded artifacts alone (MC quantile bands per cell). Arc 2 candidates: +a costed rerun (constant + vol-slippage cost blocks) to see what survives +gross-to-net, an orthogonal conditioner (time-of-day / volatility tercile), +or the same pair on coarser bars (H4). + +## Engine friction + +None. The campaign path (process/campaign documents, three-tier validate, +`aura campaign run` as executor, persist_taps traces) carried the whole arc +on its first real use. diff --git a/research/campaign-arc1-curves.json b/research/campaign-arc1-curves.json new file mode 100644 index 0000000..852c420 --- /dev/null +++ b/research/campaign-arc1-curves.json @@ -0,0 +1,24 @@ +{ + "format_version": 1, + "kind": "campaign", + "name": "arc1-curves", + "description": "Trace companion to arc1-breakout-trend: both variants at their default parameters (channel 24/24, EMA 12/48) over the full window, persisting equity/exposure/r_equity curves for the results page. Default params isolate the gate's effect on the curve shape.", + "seed": 0, + "data": { + "instruments": ["GER40", "US500", "EURUSD", "XAUUSD"], + "windows": [ { "from_ms": 1514764800000, "to_ms": 1782863999999 } ] + }, + "risk": [ { "vol": { "length": 3, "k": 2.0 } } ], + "strategies": [ + { + "ref": { "content_id": "82515a31bfe58ae087b4bd09eb4adb032cc2cabddd71a2761c543066bd237d3d" }, + "axes": { "channel_hi.length": { "kind": "I64", "values": [24] } } + }, + { + "ref": { "content_id": "82d61d13bf21984068d6fd3ae9de9766fe99edb5163ea50ffb3485bfae9f56bc" }, + "axes": { "channel_hi.length": { "kind": "I64", "values": [24] } } + } + ], + "process": { "ref": { "content_id": "476752f5af365c85be3e5bd6265e5503040fc691ac548c0bd42e67714110e05f" } }, + "presentation": { "persist_taps": ["equity", "exposure", "r_equity"], "emit": [] } +} diff --git a/research/campaign-arc1.json b/research/campaign-arc1.json new file mode 100644 index 0000000..8175669 --- /dev/null +++ b/research/campaign-arc1.json @@ -0,0 +1,30 @@ +{ + "format_version": 1, + "kind": "campaign", + "name": "arc1-breakout-trend", + "description": "Arc 1 experiment intent: does an EMA trend regime reshape the H1 breakout's R-distribution? Both variants run over the identical data/window/risk/seed matrix; the comparison is per-cell.", + "seed": 0, + "data": { + "instruments": ["GER40", "US500", "EURUSD", "XAUUSD"], + "windows": [ { "from_ms": 1514764800000, "to_ms": 1782863999999 } ] + }, + "risk": [ { "vol": { "length": 3, "k": 2.0 } } ], + "strategies": [ + { + "ref": { "content_id": "82515a31bfe58ae087b4bd09eb4adb032cc2cabddd71a2761c543066bd237d3d" }, + "axes": { + "channel_hi.length": { "kind": "I64", "values": [24, 48, 96] }, + "channel_lo.length": { "kind": "I64", "values": [24, 48, 96] } + } + }, + { + "ref": { "content_id": "82d61d13bf21984068d6fd3ae9de9766fe99edb5163ea50ffb3485bfae9f56bc" }, + "axes": { + "channel_hi.length": { "kind": "I64", "values": [24, 48, 96] }, + "channel_lo.length": { "kind": "I64", "values": [24, 48, 96] } + } + } + ], + "process": { "ref": { "content_id": "41863fcae9300b334056c6f2a899e8c2672ecb29387d294e9a6e58f159ef51b4" } }, + "presentation": { "persist_taps": [], "emit": ["selection_report"] } +} diff --git a/research/process-curves.json b/research/process-curves.json new file mode 100644 index 0000000..c328ad4 --- /dev/null +++ b/research/process-curves.json @@ -0,0 +1,9 @@ +{ + "format_version": 1, + "kind": "process", + "name": "curves-sweep", + "description": "Trace producer: a terminal selection-free sweep whose members persist their tap curves (equity, exposure, r_equity) for the results page.", + "pipeline": [ + { "block": "std::sweep" } + ] +} diff --git a/research/process-screen.json b/research/process-screen.json new file mode 100644 index 0000000..a61fdf3 --- /dev/null +++ b/research/process-screen.json @@ -0,0 +1,12 @@ +{ + "format_version": 1, + "kind": "process", + "name": "screen-wf-mc-generalize", + "description": "Arc 1 methodology: full-window screen (deflated argmax on sqn_normalized), 90/30-day rolling walk-forward refit, pooled-OOS R-bootstrap, cross-instrument generalization floor.", + "pipeline": [ + { "block": "std::sweep", "metric": "sqn_normalized", "select": "argmax", "deflate": true }, + { "block": "std::walk_forward", "in_sample_ms": 7776000000, "out_of_sample_ms": 2592000000, "step_ms": 2592000000, "mode": "rolling", "metric": "sqn_normalized", "select": "argmax" }, + { "block": "std::monte_carlo", "resamples": 1000, "block_len": 5 }, + { "block": "std::generalize", "metric": "expectancy_r" } + ] +} diff --git a/site/assets/aura.css b/site/assets/aura.css new file mode 100644 index 0000000..6d17d33 --- /dev/null +++ b/site/assets/aura.css @@ -0,0 +1,146 @@ +/* aura.css — the single source of aura's frontend style: palette tokens + + * shared components. Embedded verbatim into every runtime page (render.rs + * SHELL_HEAD) and inlined into ad-hoc demo/report pages. New components + * extend this file; never fork the palette. Design record: issue #209. */ + +/* --------------------------------------------------------------------------- + * :root tokens + * Catppuccin-Mocha-derived palette; the page background (--bg) is + * deliberately darker than the Mocha base. --border3 (#585b70, Mocha + * surface2) completes the border ladder used by the shell tooltip. + * ------------------------------------------------------------------------- */ +:root { + --bg: #16161a; --bg2: #1e1e2e; --bg3: #24243a; + --border: #313244; --border2: #45475a; --border3: #585b70; + --fg: #cdd6f4; --dim: #7f849c; --dim2: #6c7086; + --accent: #f5e0dc; --blue: #89b4fa; --green: #a6e3a1; + --red: #f38ba8; --orange: #fab387; --yellow: #f9e2af; + --mauve: #cba6f7; --teal: #94e2d5; + --mono: ui-monospace, 'JetBrains Mono', 'Cascadia Code', Menlo, monospace; + --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; +} + +/* --------------------------------------------------------------------------- + * shell + * Rules for the runtime viewer pages (graph / chart). Values are identical + * to the pre-token literals; only colors with a token were migrated to + * var(...). The font stays the literal `ui-monospace, monospace` (the + * --mono token carries a longer fallback chain and would change the + * computed value). + * ------------------------------------------------------------------------- */ +html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); + font-family: ui-monospace, monospace; } +header { padding: 8px 14px; border-bottom: 1px solid var(--border); font-size: 13px; + display: flex; gap: 16px; align-items: baseline; flex-wrap: nowrap; + white-space: nowrap; overflow: hidden; } +header b { color: var(--accent); } .sub { color: var(--dim2); } +#crumb a { color: var(--blue); cursor: pointer; text-decoration: none; } +#crumb a:hover { text-decoration: underline; } +#crumb .sep { color: var(--dim2); } +#status { color: var(--dim2); margin-left: auto; } +#stage { width: 100%; height: calc(100% - 44px); } +#stage svg { width: 100%; height: 100%; cursor: default; } +#stage svg text { cursor: inherit; user-select: none; -webkit-user-select: none; } +#stage svg a { cursor: inherit; } +#err { padding: 14px; color: var(--red); white-space: pre-wrap; } +#tip { position: fixed; display: none; pointer-events: none; z-index: 10; + background: var(--bg2); border: 1px solid var(--border3); border-radius: 6px; padding: 6px 9px; + font-family: ui-monospace, monospace; font-size: 12px; color: var(--fg); + max-width: 420px; box-shadow: 0 6px 18px rgba(0,0,0,.55); line-height: 1.5; } +#tip b { color: var(--accent); } #tip code { color: var(--blue); } #tip .dim { color: var(--dim); } + +/* --------------------------------------------------------------------------- + * components (opt-in, class-scoped) + * Shared component library for ad-hoc document pages (demos, reports). + * Every rule is scoped to a class, so the runtime viewer pages — which use + * none of these classes — render pixel-identically with this block present. + * Element-level typography is scoped under .aura-doc: only pages that opt + * in via
get the sans document register. + * ------------------------------------------------------------------------- */ + +/* document register — opt-in via body.aura-doc */ +body.aura-doc { font-family: var(--sans); line-height: 1.6; } +.aura-doc, .aura-doc * { box-sizing: border-box; } +.aura-doc a { color: var(--blue); text-decoration: none; } +.aura-doc a:hover { text-decoration: underline; } +.aura-doc code { font-family: var(--mono); font-size: 0.92em; background: var(--bg2); + border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; } + +/* centered content column */ +.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; } + +/* status pill */ +.badge { display: inline-block; font-family: var(--mono); font-size: 12.5px; + padding: 3px 10px; border-radius: 20px; border: 1px solid; margin-right: 8px; } +.badge.green { color: var(--green); border-color: var(--green); background: rgba(166,227,161,.08); } +.badge.dim { color: var(--dim); border-color: var(--border2); } + +/* headline-number tiles */ +.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); + gap: 12px; margin-top: 28px; } +.stat { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; + padding: 14px 16px; } +.stat .n { font-family: var(--mono); font-size: 24px; color: var(--accent); } +.stat .l { color: var(--dim); font-size: 12.5px; margin-top: 2px; } + +/* card grid */ +.cards { display: grid; gap: 16px; margin: 20px 0; } +.cards.c3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } +.cards.c2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); } +.card { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; + padding: 18px 20px; } +.card h3 { margin: 0 0 4px; font-size: 16px; } +.card h3 .tag { font-family: var(--mono); font-size: 11px; color: var(--dim); + font-weight: 400; margin-left: 6px; } +.card .cid { font-family: var(--mono); font-size: 11.5px; color: var(--teal); + word-break: break-all; margin: 4px 0 10px; } +.card .cid b { color: var(--accent); } +.card p { color: var(--dim); font-size: 14px; margin: 6px 0; } +.card pre { background: #131320; border: 1px solid var(--border); border-radius: 8px; + padding: 12px; overflow-x: auto; font-family: var(--mono); font-size: 12px; + line-height: 1.5; margin: 10px 0 0; } + +/* terminal transcript */ +.term { background: #131320; border: 1px solid var(--border); border-radius: 10px; + overflow: hidden; margin: 16px 0; } +.term .bar { display: flex; gap: 8px; align-items: center; padding: 7px 12px; + background: var(--bg2); border-bottom: 1px solid var(--border); + font-family: var(--mono); font-size: 12px; color: var(--dim); } +.term .bar .dots { display: inline-flex; gap: 5px; margin-right: 4px; } +.term .bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border2); } +.term pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-family: var(--mono); + font-size: 13px; line-height: 1.55; } +.term pre .p { color: var(--green); } +.term pre .cmd { color: var(--fg); font-weight: 600; } +.term pre .out { color: #b6bdd8; } +.term pre .err { color: var(--red); } +.term pre .hi { color: var(--yellow); } +.term pre .ok { color: var(--green); } +.term pre .dim { color: var(--dim2); } + +/* attention block */ +.callout { border-left: 3px solid var(--yellow); background: rgba(249,226,175,.06); + border-radius: 0 8px 8px 0; padding: 12px 18px; margin: 20px 0; color: var(--fg); + font-size: 14.5px; } +.callout.green { border-color: var(--green); background: rgba(166,227,161,.06); } +.callout b { color: var(--yellow); } +.callout.green b { color: var(--green); } + +/* results table */ +table.res { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 14px; } +table.res th, table.res td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; } +table.res th { background: var(--bg2); color: var(--dim); font-weight: 600; font-size: 12.5px; } +table.res td { font-family: var(--mono); font-size: 13px; } +table.res td.neg { color: var(--red); } +table.res td.pos { color: var(--green); } +table.res td:first-child { color: var(--dim); font-family: var(--sans); font-size: 13.5px; } + +/* pipeline stages */ +.pipe { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 24px 0; } +.pipe .stage { flex: 1 1 170px; background: var(--bg2); border: 1px solid var(--border2); + border-radius: 10px; padding: 12px 14px; position: relative; } +.pipe .stage.ann { border-style: dashed; } +.pipe .stage b { font-family: var(--mono); font-size: 14px; color: var(--accent); display: block; } +.pipe .stage i { font-style: normal; font-size: 11px; color: var(--mauve); font-family: var(--mono); } +.pipe .stage p { margin: 6px 0 0; font-size: 12.5px; color: var(--dim); line-height: 1.45; } +.pipe .arr { align-self: center; color: var(--dim2); font-family: var(--mono); font-size: 18px; } diff --git a/site/build.py b/site/build.py new file mode 100644 index 0000000..db2bcc3 --- /dev/null +++ b/site/build.py @@ -0,0 +1,914 @@ +#!/usr/bin/env python3 +"""Bake site/index.html — the static results page for aura-quadriga Arc 1. + +Reads the runs/ registry (campaign_runs.jsonl, families.jsonl, persisted +r_equity traces) and emits a fully self-contained HTML page: no external +requests, all charts are build-time inline SVG. + +Style contract (aura engine rule, issue #209): the page's first ") + add("") + add('Does an EMA trend regime reshape an H1 breakout’s ' + "R-distribution?
") + add('H1-resampled donchian-style breakout: RollingMax/Min(24) over Delay(1) high/low, " + "close vs channel (Gt), an SR-latch pair holds the breakout state; " + "bias = latch_long − latch_short ∈ {−1, 0, +1}.
") + add("h1.period_minutes = 60 prev_high/low.lag = 1\n"
+ "channel_hi.length = 24 channel_lo.length = 24\n"
+ "risk = Vol { length: 3, k: 2.0 } (shared)The same breakout, gated post-latch by an EMA(12) vs EMA(48) trend-regime latch " + "(Mul per side): a held breakout is suppressed the moment the regime flips against " + "it. Same channel params, same risk, same seed.
") + add("ema_fast.length = 12 ema_slow.length = 48\n"
+ "channel_hi.length = 24 channel_lo.length = 24\n"
+ "risk = Vol { length: 3, k: 2.0 } (shared)3×3 channel grid (hi/lo ∈ {24, 48, 96}), argmax on sqn_normalized, " + "deflated (1 000 resamples, block 5).
Rolling 90-day IS refit over the same axes, 30-day OOS, 30-day step; " + "argmax on sqn_normalized per roll.
Block bootstrap of the R-series pooled over all walk-forward OOS trades: " + "E[R] quantiles and P(E[R]≤0) per cell.
Cross-instrument floor: apply each instrument’s winner to the other three; " + "worst case and sign agreement.
Screen campaign {main["campaign"][:8]}… runs the full '
+ f'pipeline; curves campaign {curves["campaign"][:8]}… re-runs both variants '
+ "at default params (channel 24/24, EMA 12/48), selection-free, persisting equity / exposure / "
+ "r_equity taps for sections 4 and 6.
GER40 is the reshaping case: the gate moves essentially the whole ' + "interval across zero. EURUSD moves the other way — the gate makes it decisively worse. " + "A conditioner, not an improvement.
") + + # ---- 4 · per-instrument tables --------------------------------------------- + add(section_h(4, "Per-instrument metrics — default params, full window", + "Single members from the curves campaign (channel 24/24, EMA 12/48, no " + "selection), full 2018–2026 window, gross R. This isolates the " + "gate’s effect from the screen’s parameter selection. The shape is " + "classic vol-stop breakout: ~10 % hit rate, average win an order of " + "magnitude larger than average loss.")) + add('| bo_h1 | bo_h1_trend | {txt} | " + add(f"
|---|---|---|
| {label} | {td(va, fmt(va))}{td(vb, fmt(vb))}
conviction terciles — mean R per trade by tercile; within each ' + "group: left bar bo_h1, right bar bo_h1_trend; green/red by sign
") + add("| windows | ' + "positive | stitched R | |
|---|---|---|---|
| {var["name"]} | {s["windows"]} | ' + f'{fnum(s["pos_pct"], 0)} % | ' + f'{fr(s["total"], 1)} |
") + add(f'$ aura campaign run research/campaign-arc1.json' + f' # screen → {main["campaign"][:8]}…\n') + add(f'$ aura campaign run research/campaign-arc1-curves.json' + f' # curves → {curves["campaign"][:8]}…\n') + add('$ aura runs families' + ' # registry index\n') + add(f'$ aura reproduce ' + f'{stage(cell_of(main, VARIANTS[0]["cid"], "GER40"), "std::walk_forward")["family_id"]}' + ' # any family, bit-identical\n') + add(f'$ aura chart {curves["trace_name"]} ' + '--tap r_equity # interactive trace viewer') + add("
generated by site/build.py from the runs/ registry · ' + f'engine {engine_commit} · project {esc(project_commit)} · {PAGE_DATE}
') + + add("