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
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。