OPEN-SOURCE SCRIPT
Macro Geopolitical Risk Dashboard v2 - UI

📊 Purpose of the Dashboard
The script measures real-time geopolitical risk for financial markets, with a focus on:
Taiwan
Energy (oil)
Global risk-off dynamics
⚙️ What It Does
It combines multiple market indicators into a single Risk Score (0–100):
Input Signals:
VIX → market stress
Oil forward curve → geopolitical supply pressure
USD/TWD → Taiwan / capital flow risk
SOX vs SPX → semiconductor weakness (Taiwan signal)
Taiwan vs SPX → regional underperformance
Gold → safe-haven demand
DXY → dollar strength / stress
SPX momentum → overall market direction
🧠 Output
👉 The model calculates:
1. Risk Score
0–35 → Normal
35–55 → Elevated
55–75 → High Risk
75+ → Crisis
2. Market Regime
Risk-Off → defensive phase
Crisis → acute escalation
Recovery → normalization
3. Visual Signals
Traffic-light colors (green / orange / red)
Table with indicator status
Chart markers for regime shifts
🎯 In Short
👉 This dashboard is a
real-time early warning system for geopolitical market stress
It helps you identify:
The script measures real-time geopolitical risk for financial markets, with a focus on:
Taiwan
Energy (oil)
Global risk-off dynamics
⚙️ What It Does
It combines multiple market indicators into a single Risk Score (0–100):
Input Signals:
VIX → market stress
Oil forward curve → geopolitical supply pressure
USD/TWD → Taiwan / capital flow risk
SOX vs SPX → semiconductor weakness (Taiwan signal)
Taiwan vs SPX → regional underperformance
Gold → safe-haven demand
DXY → dollar strength / stress
SPX momentum → overall market direction
🧠 Output
👉 The model calculates:
1. Risk Score
0–35 → Normal
35–55 → Elevated
55–75 → High Risk
75+ → Crisis
2. Market Regime
Risk-Off → defensive phase
Crisis → acute escalation
Recovery → normalization
3. Visual Signals
Traffic-light colors (green / orange / red)
Table with indicator status
Chart markers for regime shifts
🎯 In Short
👉 This dashboard is a
real-time early warning system for geopolitical market stress
It helps you identify:
- when risk is building
- when markets are turning
- when stress is fading
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.