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が提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。