Commit Graph
1 Commits
Author SHA1 Message Date
Alby96andClaude Opus 5.5 63bd5b9635 Add the stylised replica of appendix G and the shared rolling signals
Phase 14 must reproduce the 15 "Forex 1999-2026" totals of table G.4 and
check the basket engine against a yardstick that follows G.3 to the
letter. StylisedReplica runs generation B on each series of ln(close),
entry and exit on the same close, no costs, with the conventions a numpy
prototype found to reproduce every row: z over the last 100 values with
the sample deviation, sigma as the population deviation of the 99
differences inside them, stop before target (per position against the
mean of entries) before averaging, no reopening on the closing bar, open
baskets valued at the last close. On the ECB history up to 2 Dec 2026 it
gives the prototype's totals, positions and baskets on all 15 rows; the
13 binding totals are within their band (largest gap 3.4 targets).

BasketIndex.RollingZ and RollingSigma compute the signals in one pass
with anchored sliding sums rebuilt every window, so the replica and the
engine can read the same bits; they equal the exact two-pass values to
1e-9 and refuse a series with a gap. The control of G.5 flips the first
differences of all series with one sign per bar (not centred) and
measures the share of replicas whose break-even is equal or better.

refs #130

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 17:04:38 +01:00