Gold price methodology
The dashboard is an indicative reference, built from validated collector data and rendered from a local server snapshot. It separates spot calculations from published currency quotations so unlike data is not presented as the same thing.
Gold calculation
The collector supplies a validated XAU/USD spot reference in US dollars per troy ounce. One troy ounce is 31.1034768 grams.
USD gold per gram = XAU/USD per troy ounce ÷ 31.1034768 Local gold per gram = USD gold per gram × published local-currency units per USDIndonesia’s indicative gold-per-gram card uses the published Bank Indonesia JISDOR USD/IDR reference when it passes the collector’s checks. Each other country card uses its displayed USD/local-currency reference. These are mathematical spot conversions; they do not include dealer premiums, fabrication, tax, logistics, spreads or settlement terms.
Why BI and BCA are separate
BI JISDOR is the official USD/IDR reference used for the Indonesia spot conversion. Published BCA e-Rate BUY and SELL values are shown as operational bank references and are not averaged into a midpoint or substituted into the Indonesia gold calculation.
The dashboard preserves the published direction and labels BUY and SELL separately. A bank quote can therefore move differently from the official benchmark.
Country-card IDR row
The final row follows a strict priority and never invents a USD cross-rate:
- BCA BUY/SELL CODE when a validated published bank pair exists.
- BI DIRECT CODE when a validated direct Bank Indonesia reference exists.
- DIRECT REFERENCE CODE with “--” when neither direct source is available.
China: CNY versus CNH
China’s gold-per-gram and “1 USD” values remain CNY, the onshore renminbi reference used for that card’s spot conversion. When the BCA row is available, it is explicitly labeled CNH, the offshore Chinese yuan quoted by the bank.
The tooltip repeats this distinction. CNY and CNH are not silently treated as interchangeable.
Snapshot, freshness and sources
An automated server-side collector contacts configured market and authority sources, validates structure, timestamps and reasonable numeric ranges, then publishes a local JSON snapshot. A normal page render reads that local file only; it does not call an external provider.
The collector timestamp means the server checked its inputs; it is not the trade time of every source. Provider timestamps, publication dates, cached status and unavailable values are kept distinct. Source descriptions and relevant timestamps are exposed in the dashboard’s labels and tooltips. JavaScript checks the same local publication for newer values and animates actual changes.
Three-hour outlook and measured uncertainty
The 24-hour chart contains the last 24 observed trading-hour closes of COMEX gold futures (GC=F), obtained from Yahoo Finance. Only completed, correctly identified USD candles with valid OHLC values and positive volume are used. Closed sessions create gaps. The chart is a futures reference, while the headline card is an indicative Gold-API XAU/USD spot reference; these series are never silently joined.
Up to about three months of hourly observations are evaluated separately for one-, two- and three-hour horizons. A no-change baseline, damped recent momentum and short-term reversion are compared using preceding resolved examples. Targets are non-overlapping within each horizon, and training or model choice cannot see later prices. At least 60 resolved out-of-sample examples are required. A directional model must improve mean absolute error by at least 3% over the no-change baseline; otherwise the centre remains neutral.
The dashboard displays measured walk-forward error, sample count and empirical interval coverage. The shaded band targets 80% coverage based on preceding absolute forecast errors; this is not an 80% probability of profit or a guarantee about the next trade. The displayed coverage measures the sequential adaptive strategy. Each +1H/+2H/+3H target is measured from the latest completed hourly close, whose time is shown.
Futures contract rolls, unexpected news, transaction costs and future currency movements are not predicted. Non-USD chart values use the currently displayed currency reference, not historical or forecast currency rates. These tests establish transparent historical performance, not a proven trading advantage.
New candidate: independent test and shadow evaluation
A lightweight candidate uses completed candle shape, recent returns, volatility, volume and session timing. Eighteen candidate settings were compared using September data only. The selected specification was frozen before its October evaluation; each daily fit used only outcomes already resolved at that time.
Across 108 non-overlapping three-hour examples in October 2026, the candidate’s mean absolute log-return error was 0.2942%, versus 0.2978% for no price change: a 1.20% relative reduction in error. The 95% daily-block bootstrap interval for that reduction was −0.83% to +3.26%. This does not establish a reliable advantage and fails the predeclared promotion test of at least 3% improvement with a positive lower confidence bound.
The candidate therefore runs in shadow mode only. Its dated predictions are saved before their outcomes are known and are compared with the same no-change baseline. The first 120 resolved prospective examples are retained for review; the candidate cannot automatically replace the public outlook. No historical prediction is backfilled into this forward record.
Shadow evaluation reuses the collector’s existing candles and makes no additional provider requests. A small bounded model is fitted at most once per UTC day, with at most 900 resolved examples and a 200 ms cooperative computation budget. New predictions are limited to fresh, complete trading windows; repeated checks reuse the saved state. Browser visitors do not run model training.
Market hours, holidays and stale inputs
The reference calendar follows CME/COMEX trading hours: Sunday 18:00 through Friday 17:00 New York time, with a daily 17:00–18:00 break. The America/New_York time zone handles daylight-saving changes.
The 2026–2027 holiday calendar is included. If an early-close or special holiday schedule has not been confirmed, the display says “holiday hours” and pauses forecasting rather than claiming the market is open or inventing a closing time. Outside calendar coverage, forecasts wait for a calendar review. OTC spot venues can have different hours. A three-hour forecast is withheld if its window crosses a closure, hourly data is delayed, or the collector snapshot is over four minutes old.
Source freshness and respectful collection
Official currency publications older than seven days are not used for current conversions; eligible ECB references can fill supported non-IDR currencies. Indonesia requires valid BI JISDOR. Retail prices remain source-specific by product, unit and purity. Old publication dates are never refreshed just because a page was fetched again. Undated retailer observations are explicitly labeled as observations rather than dated quotations.
Visitors only read small local snapshots. The existing single collector is locked against overlap and limited to 12 outbound attempts per run, short timeouts and capped response sizes. It reuses per-source caches, slows hourly data checks to every six hours during closures, honors Retry-After, and backs off on failures. Access denied (401/403) pauses a provider for at least six hours; rate limits (429) pause it for at least 30 minutes. No proxy or CAPTCHA bypass is used.
Important limits
- Provider delays, closed markets, network conditions and validation rules can make a value cached, partial or temporarily unavailable.
- Displayed forecasts or trend descriptions are model outputs based on available data, not predictions of future performance.
- A final commercial quotation depends on product specification, purity, quantity, premium, tax, shipping, compliance review and agreed settlement terms.
