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. קרא עוד ב־תנאי השימוש.