Production-Ready · v1.0 Live

Enterprise-Grade
Gold Price Forecasting

Weekly XAU/USD prediction API powered by stacked LSTM architecture with real-time macroeconomic integration. Built for institutional trading desks and algorithmic strategies.

Live Prediction
LIVE
Current Close
$4,219
XAU/USD GC=F
Next Week Forecast
$4,281
+1.47% (Bullish)
Model Confidence
80%
Direction Accuracy
Inference Time
<1ms
Pure NumPy LSTM

Production-Engineered for Scale

Enterprise reliability meets cutting-edge deep learning. Every component optimized for institutional deployment.

⚡

Sub-Millisecond Inference

Pure NumPy LSTM implementation (22KB weights). No TensorFlow runtime overhead. Instant response for high-frequency trading strategies.

📊

Real-Time Macro Integration

Live Federal Reserve data (FFR) and Non-Farm Payrolls via FRED API. Automatically synced with weekly GC=F candles from Yahoo Finance.

🧠

Stacked LSTM Architecture

2-layer LSTM network (24→12 units) captures short and medium-term dependencies. Ratio-based targets reduce non-stationarity sensitivity.

🎯

80% Direction Accuracy

Validated on 10-week rolling backtest. MAE 3.7%, MAPE $162 average error. Consistent performance across volatile market conditions.

🔒

Zero Heavy Dependencies

Flask + NumPy + scikit-learn. No GPU required. Deploys on 512MB RAM containers. Perfect for cost-effective cloud autoscaling.

📈

Live Backtest Dashboard

Real-time performance monitoring with historical validation table. Track MAE, MAPE, RMSE, and direction accuracy across recent weeks.

Data Flow Architecture

End-to-end pipeline from market data ingestion to prediction API response.

Step 01

Market Data Ingestion

Weekly OHLC candles (GC=F) from Yahoo Finance API with volume data.

Step 02

Macro Sync

FFR & NFP values from FRED aligned temporally using backward as-of merge.

Step 03

Feature Engineering

9 ratio-based features (open/lag1, high/lag1, FFR change, returns) computed dynamically.

Step 04

LSTM Inference

4-week sequence scaled, processed through stacked LSTM, denormalized to price projection.

Proven Performance Metrics

Validated on live market data. Consistently outperforms naive baseline across multiple evaluation windows.

80%
Direction Accuracy (10-Week)
3.7%
Mean Absolute Percentage Error
$162
Average Absolute Error (MAE)
<1ms
P99 Inference Latency

Start Building with GoldCast

Integrate institutional-grade gold forecasting into your trading infrastructure. REST API and WebSocket streaming available.

Launch Dashboard → View Documentation