Repository navigation
feat(gold): argon computes the gold factor model (IB via xenon) - #550
Merged
Merged
Conversation
Port of the signal-lab gold study: a rolling 252-day fit of gold's daily move (XAUUSD) on the 10-year real yield, a synthetic dollar index and a safe-haven spread, coefficients lagged two rows, with 95% intervals, the 63-day explained share and its label, and each day split into real-yield, dollar, safe-haven, last-year's-pace and unexplained parts. A historical description, not a forecast: the study's direction test failed. - engine macro/gold_factor.py; table gold_factor_daily (migration 162) - job gold_factor_compute (17:40 ET Mon-Fri, massive-0): IB 1-day MIDPOINT closes through xenon POST /historical/bars (xenon v0.8.2), then a full recompute + upsert; healer-enrolled - GET /api/gold/factor; Gold tab "What moved gold" band - seed scripts/backfill/gold_factor_seed.py (xenon, overlapping 6 Y windows) - parity scripts/research/gold_factor_parity.py: exact on the study's IB closes and on xenon's (4079 rows, diff 0, 0 label mismatches) - statsmodels declared (already installed via arch)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
argon now computes the signal-lab gold factor model itself and shows it on the Gold tab. The model is a rolling 252-day fit of gold's daily move (XAUUSD) on the 10-year real yield (DFII10), a synthetic ICE dollar index and a safe-haven spread, with coefficients lagged two rows. Each day's move is split into real-yield, dollar, safe-haven, last-year's-pace and unexplained parts. Every research panel carries this label: Historical description, not a forecast · the direction test (Phase 3) failed.
macro/gold_factor.py→gold_factor_daily(migration 162, idempotent DDL, no DML).gold_factor_compute, 17:40 ET Mon–Fri on massive-0, aftergold_fred_ingest. It fetches the last month of IB 1-day MIDPOINT closes (6 FX pairs + CMDTY XAUUSD) through xenonPOST /historical/barsintomacro_series_daily(sourceIB), then recomputes and upserts. It is healer-enrolled (gold_factor). Needs xenon ≥ v0.8.2, which is live on the mini (verified CASH 200 / CMDTY 200 / unknown 404 with argon's key).GET /api/gold/factor, plus the "What moved gold" band of six charts on the Gold tab.statsmodelsis now declared. It was already installed througharch.Evidence
docs/research/2026-10-10-gold-factor-parity.json(scripts/research/gold_factor_parity.py --study <signal-lab worktree @ 2408775> --xenon <bars dir>):option_wizard_local: 28/28 calls OK, 4080 rows, identical to the CSV-seeded output on the 4079 shared dates.After merge + release
scripts/backfill/gold_factor_seed.py. Without it the job refuses to run (fewer than 254 rows) and names the seed.🤖 Generated with Claude Code