Backlog: R70 · Verdict: S1 (Asia-bound exports) INCONCLUSIVE at every lag; S2 (net-flow balance, kg) not computable, so INCONCLUSIVE with no estimate; nothing is CONFIRMED, nothing is REJECTED. One post-hoc cell, S2v, reads t -2.19 and is worth t 1.1 after its own family. · Run: 2026-11-23 on the Comtrade+ public API (Switzerland, HS 710812, monthly, 2012-01 → 2026-09) and Stooq XAUUSD (daily to 2026-04-24) · Binding text: PREREG.md with Addenda A and B · Not a strategy; nothing promoted.
What was asked
Do Swiss gold exports to China, Hong Kong and India (S1), or the Swiss net-flow balance (S2), predict the next 21-session gold return when each month's flow is stamped at the period end plus a measured Comtrade lag (L = 75 days, Swiss p90; 35 and 125 as robustness)? Family of 6 cells, BHY t hurdle 2.78 (3.38 against the 1,349-test catalogue). Prior: nil.
Result
Slope of the 21-session forward gold return (% per month) on the standardised signal, HC3 t, stationary block bootstrap (block 6, 10,000 draws) interval, MDE at 80% power against the 2.78 hurdle.
| cell | n | b %/mo per sd | se | t | 95% bootstrap CI | MDE80 |
|---|---|---|---|---|---|---|
| S1 L=35 | 131 | -0.492 | 0.387 | -1.27 | [-0.93, +0.10] | 1.40 |
| S1 L=75 (primary) | 130 | -0.244 | 0.261 | -0.93 | [-0.63, +0.12] | 0.94 |
| S1 L=125 | 128 | -0.140 | 0.252 | -0.56 | [-0.76, +0.37] | 0.91 |
| S2 L=35 / 75 / 125 | 0 | n/a | n/a | n/a | n/a | n/a |
- S1 is INCONCLUSIVE. The sign is negative at all three lags (more Asia-bound gold is followed by a slightly weaker gold price), none is near 2.78, and the L = 75 interval reaches -0.63, so a slope that would pay the 0.40 cost line is not excluded; REJECTED needs the interval inside ±0.40 and it is not.
- Power, as registered. MDE80 is 0.94 %/month per sd at L = 75, 2.3 times the cost line. The registration projected 1.3 from 150 months of gold at 4.4%/month; the realised sample is 130 months of a calmer 2012-2026 gold, so the study is somewhat more powerful than projected and still cannot reach a verdict short of a large effect.
- S2 cannot be computed. The Swiss world-import weight is unreported in 45 months (2013-04 → 2020-12, 11 of them in 2020), so no month has the 24 prior signal values the registered standardisation needs (T23, below).
- Report-only, own calendar month (same z against the gold return over the flow's own month): S1 -0.505, t -1.77, n 133; S2v -0.463, t -1.53, n 133. Asia-bound shipments are heavier in months when gold fell, the sign one would expect from price-sensitive buyers, and the forward S1 slope has the same sign. It is a reaction to price, not a lead on it, and neither number is significant.
- S2v (post hoc, Addendum B, no verdict power). The same net-flow balance from
primaryValuein USD (reported in every month; the ratio is nearly price-free): forward slope -0.782 %/mo per sd, se 0.357, t -2.19, bootstrap CI [-1.48, -0.00], n 130. It was added because S2 in kilograms was empty, after S1's result was known. Its single-test p is 0.03; at the study's own family (9 to 10 cells) the BHY-equivalent t is 1.0 to 1.1, and against the catalogue it is 0.00. The sign says net exports from Switzerland are followed by weaker gold, the opposite of "flows lead price" in any story where exports mean demand. Not a finding.
What was measured about the data (durable; lib/comtrade.py)
- T22, the release stamp.
getDA.firstReleasedis the Comtrade+ migration date (2022-05-16) for old periods and a reload date for some others; it is a publication stamp only from 2022-05. Swiss lag from period end to first release, 53 periods 2022-05 → 2026-09: min 18, median 34, p90 75 (nearest rank; 77 by interpolation), max 125 days. 96% of those periods were re-released later, by a median 283 days, so every value here is the latest revision, not the first print. Whether the revisions move gold rows is not measured:previewcarries no vintage. This run's panel is saved asmetals_flows/data/panel_2026-11-23.csv(git-ignored) and the dailygetDAsnapshots start the same day; a re-pull in six months and a diff measures the revisions. - T23, unreported weight reads zero. 50 world-total rows (45 imports, 5 exports) show
netWgt0.0 andqtyUnitCode-1 beside a $4-11 billion value. A zero weight next to a positive value is "quantity not reported". Run 1 kept the zeros as real, which made S2 meaningless (a balance of exactly +1); it was discarded (Addendum A). - The public preview starts in 2012-01 for this series. Months 2005-01 → 2011-12 returned no rows under
HSorH4, andH2/H3answered HTTP 500, althoughgetDAlists Swiss monthly periods from 2000-01. A longer history needs the Bulk or Async product. - Quota. The public API answered HTTP 403
Out of call volume quotaafter about 200 calls and said it would replenish in 16 minutes;QuotaExceededandpull.py --waithandle it. Calls take 3-10 s each. - Swiss gold export mix. Asia's share of exports (China, Hong Kong, India summed), on months where both the world and the Asian weights are reported: 63.6% in 2021 (12 months), 47.2% in 2022 (11), 52.3% in 2023 (10), 48.3% in 2024 (12), 18.1% in 2025 (11; 277 t against 692 t in 2024). The import columns are unusable before 2021 for the T23 reason.
What this does not say
- Nothing about other metals, other reporters or other flow definitions: one reporter, one HS code, three lags, two signals.
- Nothing about the first-print flows, since only revised values are served.
- Nothing about a faster reader: Switzerland's own customs release is published before Comtrade carries it, and the L = 35 cell is the nearest stand-in (t -1.27). The national release date was not verified.
Next
- R70b (new pre-registration): all four metals and the reporters that matter (UK, US, China, India, Hong Kong, UAE, Russia
and South Africa for the platinum group) back to 2000 through the Bulk or Async API. This needs Carter's Comtrade
subscription key (
COMTRADE_API_KEYinresearch/.env; none was in the workspace on 2026-11-23) and a measured look at what the plan includes. At 7 s a call the public API makes that panel a nine-hour pull. - Re-pull the Swiss series in about six months and diff against the saved panel to measure revisions.
Reproduce
cd research
uv run python metals_flows/pull.py --reporters CHE --cmds 710812 --first 201201 --last 202609 --wait # ~25 min cold, cached under research/data/comtrade/
uv run python metals_flows/study.py # 10,000-draw bootstrap, seed 70
uv run pytest lib/test_comtrade.py