OPEN-SOURCE SCRIPT
Hybrid Macro/Technical Dashboard

Credits:
A massive thank you and credit goes to @giorgos_ts. The core "Global Liquidity (GLI Z)" measurement engine acting as the heavy anchor for this script was adapted directly from their original GLI Z indicator work. You can find their original script here:
Description:
Navigating the stock market requires understanding two completely different forces: **Macroeconomic Gravity** (the slow, structural foundation) and **Price Action** (the real-time reality of hype and momentum).
The 7 Pillars of Macro Gravity:
The indicator evaluates the following components under the hood:
1. **Global Liquidity (GLI Z):** Tracks the real-time expansion/contraction of Central Bank balance sheets.
2. **Yield Curve (10Y-2Y):** Tracks structural banking recessions and warns of inversions.
3. **Credit Spreads (HY):** Measures corporate stress and default risk.
4. **Real Yields (10Y TIPS):** The true cost of capital for the global economy.
5. **Growth vs. Fear (Copper/Gold):** A live proxy for global industrial expansion.
6. **Currency Strength (DXY):** Measures global trade friction and offshore dollar liquidity.
7. **Volatility (VIX):** A real-time panic override switch.
The 4 Actionable States (The Trend Filter):
Macro data is not a timing tool. To solve this, the dashboard filters the Macro Score through a 40-Week Moving Average (the 200-Day equivalent) to generate 4 actionable regimes:
* 🟢 **SECURE BULL MARKET:** Macro is healthy, and Price is above trend.
* 🔵 **BUY THE DIP OPPORTUNITY:** Macro is healthy, but Price broke below trend. A temporary technical breakdown; historically a strong buy signal.
* 🟠 **DANGER ZONE / DEFYING GRAVITY:** Macro is completely broken, but the Price is still above trend (fueled by hype or fiscal deficits).
* 🔴 **CRASH REGIME / MAX GRAVITY:** Macro is broken, and the Price finally broke below trend. The hype is dead, gravity has taken over.
The Customizable Weighting Engine:
The entire engine is exposed in the indicator settings. You can assign custom integer weights to any of the 7 pillars to backtest your own unique algorithmic scoring system. The dashboard UI will automatically scale and display your custom weights in real-time.
HOW TO USE:
1. **You MUST apply this to a Weekly ("1W") chart.** The momentum and lookback math is specifically tuned to weeks.
2. Customize the point system as you wish, using the relevant inputs in settings.
A massive thank you and credit goes to @giorgos_ts. The core "Global Liquidity (GLI Z)" measurement engine acting as the heavy anchor for this script was adapted directly from their original GLI Z indicator work. You can find their original script here:

Description:
Navigating the stock market requires understanding two completely different forces: **Macroeconomic Gravity** (the slow, structural foundation) and **Price Action** (the real-time reality of hype and momentum).
The 7 Pillars of Macro Gravity:
The indicator evaluates the following components under the hood:
1. **Global Liquidity (GLI Z):** Tracks the real-time expansion/contraction of Central Bank balance sheets.
2. **Yield Curve (10Y-2Y):** Tracks structural banking recessions and warns of inversions.
3. **Credit Spreads (HY):** Measures corporate stress and default risk.
4. **Real Yields (10Y TIPS):** The true cost of capital for the global economy.
5. **Growth vs. Fear (Copper/Gold):** A live proxy for global industrial expansion.
6. **Currency Strength (DXY):** Measures global trade friction and offshore dollar liquidity.
7. **Volatility (VIX):** A real-time panic override switch.
The 4 Actionable States (The Trend Filter):
Macro data is not a timing tool. To solve this, the dashboard filters the Macro Score through a 40-Week Moving Average (the 200-Day equivalent) to generate 4 actionable regimes:
* 🟢 **SECURE BULL MARKET:** Macro is healthy, and Price is above trend.
* 🔵 **BUY THE DIP OPPORTUNITY:** Macro is healthy, but Price broke below trend. A temporary technical breakdown; historically a strong buy signal.
* 🟠 **DANGER ZONE / DEFYING GRAVITY:** Macro is completely broken, but the Price is still above trend (fueled by hype or fiscal deficits).
* 🔴 **CRASH REGIME / MAX GRAVITY:** Macro is broken, and the Price finally broke below trend. The hype is dead, gravity has taken over.
The Customizable Weighting Engine:
The entire engine is exposed in the indicator settings. You can assign custom integer weights to any of the 7 pillars to backtest your own unique algorithmic scoring system. The dashboard UI will automatically scale and display your custom weights in real-time.
HOW TO USE:
1. **You MUST apply this to a Weekly ("1W") chart.** The momentum and lookback math is specifically tuned to weeks.
2. Customize the point system as you wish, using the relevant inputs in settings.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน