XAUALGOSTRATEGY RESEARCH
VERSION 1.0 · 23 OCTOBER 2026

How to read the strategy research lab.

This is a separate, read-only experiment. It does not alter Bookmap, the comparison page, feed ingest, source timestamps or prices. There are no trading orders, alerts or claims of profitable strategies. Every zone refers to the GC 12–26 futures contract, not a converted XAUUSD price.

1. Controls and first scan

Select From and Until in UTC, up to 72 hours. The default is the latest 24 hours; the API leaves a one-minute safety lag after the latest completed minute. Another 120 earlier minutes provide context, but are not included in the requested period's results. Scan loads already stored data; opening the page does not start collection.

“Follow latest” reloads a moving 24-hour window every 60 seconds. It is off by default, uses closed minutes and is not tick streaming. Manual filters select hypotheses, evidence quality and zone state (monitoring, invalidated, expired or incomplete); rows are paginated in groups of 30. The chart shows the last 360 valid GC minutes. Selecting a row opens its inspector; a selected zone appears on the chart only if its minute is in that view. Time gaps remain gaps in the calculations; the compact chart packs the valid candles visually.

Round-trip cost is an all-in assumption in GC price dollars per ounce, default 0.20, adjustable from 0 to 10. Convert commissions, spread and slippage into comparable price units yourself; this is not your broker's actual cost. For the standard 100-ounce GC contract, $0.20/oz equals $20 per contract. This lab does not size positions or send orders.

2. Three fixed hypotheses

  • Rejection: test of the prior 20-minute high or low (tolerance 15% of median range), rejection wick at least 35% of candle range, directional body, close in the outer 35% in the expected direction.
  • Breakout: close beyond the prior 20-minute extreme, directional body and close in the directional outer 25%.
  • Relative-gap reversal: signed GC minus XAU close gap deviates at least $0.50 and robust Z at least 2 in magnitude from the prior up-to-60 consecutive gaps (minimum 30); directional candle and close in the outer 35% confirm a possible reversal. Z uses prior MAD × 1.4826; zero MAD produces no Z. A relatively cheap GC is not by itself a buy: XAU may move instead, and basis may trend.

Context never includes the signal candle or later candles. At least 20 consecutive valid earlier GC minutes are needed. XAU pairs must have the exact corrected minute. Missing, duplicate, invalid and clearly inactive flat zero-volume candles break continuity. Historical broker correction extrapolates the present calibration; it is not proof of historical DST or broker settings. Relative-gap hypotheses pause if live clock calibration is not confirmed. GC-only price hypotheses can still appear, labelled exploratory.

3. Evidence, zones and invalidation

All price hypotheses initially qualify only for observation. A corroborated candidate additionally needs recorded classified execution delta in its direction (at least 10 total volume, at least 80% classified, directional delta at least 15% of total), or a same-minute nearby inferred absorption, refill or sweep in its direction. An opposing such event leaves it watch-only. Nearby means within max(2 × median prior range, $1) of the signal close.

Evidence count is a count of observations, not independent statistical votes or a success probability. The inspector lists missing and opposing evidence. It gives the candle source, flow split and supporting event times. Inferred events do not prove native icebergs, stop orders or trader intent.

The zone is signal close ± max($0.20, 25% of the median prior 20 ranges). Invalidation is beyond that candle's extreme by max($0.20, 20% of median range). The monitoring horizon ends 15 following minutes later. A later stop touch marks invalidated; otherwise the window expires. Missing follow-up is labelled incomplete. Invalidation is a research level, not a guaranteed executable stop.

4. Historical checks and the last 30%

Only corroborated candidates are simulated. A hypothetical entry uses the next exact minute's open only if it lies inside the zone and has more than $0.10 risk to the invalidation. Target is 1.5 times that risk; maximum horizon is 15 consecutive bars including the entry bar. A missing required bar makes the outcome incomplete. No interpolation. An opening stop gap uses the worse opening price. If target and stop both appear in a bar, stop wins conservatively. Unreached positions exit at the 15th close. Assumed round-trip cost is deducted once. Net R = (directional exit minus entry minus cost) / initial risk.

At most one simulated position per hypothesis is open, regardless of side. Different hypotheses may overlap and must not be summed as one portfolio. The first 70% of wall-clock time is labelled development and the last 30% holdout, with a 15-minute purge before the boundary. No fitting or optimization occurs here. The latest minute can produce an unfinished outcome; zero trades is valid.

Mean R and positive outcomes are descriptive historical numbers, not forecast accuracy. Less than 30 completed simulations is explicitly a small sample; more is not proof either. Repeatedly viewing the last 30% contaminates a holdout. Recovered data, incomplete live samples, absent historical source-arrival logs and current clock extrapolation mean this is not a point-in-time certified backtest. A future robot needs recorded arrival-time replay, multiple market regimes, untouched test data and realistic execution tests.

5. Data provenance and recovery states

  • GC provider/legacy stored M1 is preferred. For absent recent minutes (last six hours), actual recorded Last quotes can build receive-minute OHLC only when source/receive timestamps differ by at most five seconds and share the same minute. Cached stale ticks are rejected. This fallback is not a provider bar or proof of full volume.
  • Recovered price-level execution totals replace live execution samples for the same minute, never add to them. Buy, sell and unknown remain separate. Other live samples can be incomplete; missing flow does not mean zero trading. Imported-after-the-minute flow is flagged.
  • XAU uses real MT5 broker M1, corrected by the existing live clock calibrator. No fixed $20 difference or synthetic XAU candles. GC Last and broker XAU quotes are not identical instruments or executable spreads.
  • Inferred server events are available only in their retained 12-hour window. Current L2 book is displayed as context with freshness, never backdated to old zones and not used in historical scores. This version does not yet test all L2 patterns, footprint imbalances or every Bookmap indicator.
  • The new service reads source databases in read-only/query-only mode. It has no trading or ingest channel. Per-query caps (120,000 trades / recent Last quotes, 10,000 events) are exposed as warnings; truncated data is not complete data.

When a source fails, the page clears previous results and shows an error rather than pretending stale results are current. With missing clock calibration, basis hypotheses pause. Missing flow or events remains visible; price-only watch hypotheses can still appear. Check coverage and snapshot UTC time before reading a zone.

6. Exports, language and interpretation

CSV exports all currently filtered zones, not only the visible page: source, snapshot, clock, time, direction, zone, invalidation, supporting/opposing evidence, prior basis, partition, simulation result, cost and recovered-flow flag. JSON exports the full loaded dataset and analysis for reproducibility. Files are downloaded to your browser, not sent elsewhere. English is the default; Arabic and French are available, with a separate saved language preference.

Market structure and futures/spot basis can provide research features, not guaranteed opportunities. Start by checking data quality, inspect reasons and contradictions, then review untouched periods. No position sizing, risk suitability assessment or investment recommendation is provided.

Background: CME Gold futures specifications.