Back to Dashboard

Backend Engine — Data Pipeline Test

Verifying live XAUUSD candle data ingestion via TwelveData (XAU/USD spot) and Supabase persistence.

/api/healthGET
Pinging backend…
Trading Calendar Diagnostics
Auto-refresh every 10s · Debug · Replay · Cron Validation
Live Data (TwelveData — XAU/USD Spot)
Direct fetch — not stored
/api/candles/xauusdGET
TIMEFRAME:

Select a timeframe above to fetch XAUUSD candle data.

Stored Candles (Supabase)
Persisted across sessions — used by all downstream modules
15m
No sync data yet
1h
No sync data yet
4h
No sync data yet
1d
No sync data yet
Data Management

Use these buttons to clear stale data. Purge Old TDI Data clears only TDI readings (candles preserved). Purge Old Candle Data clears everything.

RSI Period Changed: 13 → 21

All existing tdi_readings were computed with RSI-13 and are now invalid. Purge them and recompute with RSI-21.

Both require confirmation.
TDI Engine (Computed)
RSI-21 · Green-2 · Red-7 · Yellow-34 · Blue±1.6185σ
TDI Diagnostic Report

15m Candles in Supabase

RSI Period

21

✓ Wilder's Smoothing · α=1/21

Seed: SMA of first 21 diffs

Price Source

CLOSE

✓ candles[i].close

Matches TradingView default

Std Dev Method

POP (÷N)

✓ Population · divides by 34

Not sample (÷N-1) — matches TV

TDI Verification

15m · Most recent computed reading

No TDI readings found. Sync candles then click Compute TDI 15m below.

Green — 2-period SMA (fast)
Red — 7-period SMA (signal)
Yellow — 34-period SMA (trend)
Blue — ±1.6185σ bands
● Shark fin (Green >68 or <32)
15m
Not computed yet
1h
Not computed yet

Verify Against Known Values (by Timestamp)

Paste expected TDI values from TradingView for a specific candle timestamp to verify our calculation matches.

Auto-Sync Schedule (Vercel Cron — /api/candles/cron) · TDI auto-recomputed after each sync

15m

Every 5 min

1h

Every 30 min

4h

Every 4 hours

1d

Daily 00:00 UTC

ORB Detector — Module 3
23:00 UTC+3 candle (19:00 UTC open) · Daily reference values
Leave date blank to auto-detect today's trading date

Verify ORB Against TradingView

On TradingView XAUUSD 1h chart, find the candle that closes at 23:00 UTC+3 (= 20:00 UTC). Enter its timestamp, high, and low below. Deltas under $1 confirm the detector is working correctly.

Load ORB data first (click "View Latest ORB") before comparing.

Sweep Detector — Module 4
VISIT / ACCEPTANCE classification · All significant levels

Click "Scan Sweeps Now" to detect sweeps for the current trading day.

Prerequisites: 15m candles synced · ORB computed

Pattern Activations — Today

Live · 30s poll

ACTIVATION LOG — 0 event(s) recorded this session

No pattern activations recorded yet. Activations are logged automatically as patterns fire or deactivate.

Phase History — Today

Live · 30s poll

TRANSITION LOG — 0 event(s) recorded this session

No phase transitions recorded yet. Transitions are logged automatically as phases change.

Bug Fix Panel

BUG 1 — ORB Weekend Rollover

Deletes invalid Sunday 2026-05-24 + wrong Monday 2026-05-25 sessions, then recomputes Monday ORB from Friday 2026-05-22T19:00:00Z candle.

BUG 2 — TDI Yellow Drift

Confirms 15m candle count ≥500, purges all TDI readings, recomputes with full history. First reading at candle index 55, stabilized from index 100+.