OPEN-SOURCE SCRIPT

GDP Recession Indicator by USCG_Vet

🌟 GDP Recession Indicator by USCG_Vet 🌟
📈 Overview
The GDP Recession Indicator is a comprehensive economic tool designed to help traders and investors anticipate potential recessions by analyzing key U.S. economic metrics. By consolidating multiple normalized economic indicators into a single, actionable signal, this indicator provides a clear and intuitive way to assess the health of the U.S. economy on a monthly basis.

🔑 Key Features
🔴 Red Line (GDP Discrepancy):
Represents the normalized value of GDP - (PCE + GCE + GPDI), capturing the core GDP components.

⚪ White Line (Signal Line):
A simple moving average of the consolidated indicator, serving as a dynamic threshold for recession signals.

🔵 Consolidated Indicator (Blue Line):
An optional line that aggregates multiple economic indicators for a holistic view.

✨ Customizable Visibility:
By default, only the Red and White lines are displayed, ensuring a clean and focused chart. Additional indicators can be enabled as needed.
🔍 How It Works
📊 Data Normalization:

Processes key economic metrics:
GDP
Personal Consumption Expenditures (PCE)
Government Consumption Expenditures (GCE)
Gross Private Domestic Investment (GPDI)
US Private Debt Growth (USPDG)
US Government Debt Growth (USGDG)
US Balance of Trade (USBOT)
Personal Savings Rate (BEA)

Each metric is normalized using a z-score over a configurable period (default is 6 months), ensuring comparability and mitigating the impact of differing scales.

🔗 Consolidation:
Selected indicators are averaged to form a consolidated economic signal, providing a comprehensive view of economic trends.
📉 Signal Generation:

Recession Signal:
When the Red Line (GDP Discrepancy) crosses below the White Line (Signal Line), it indicates a potential downturn in the economy.
🛠️ How to Use the GDP Recession Indicator
➕ Adding the Indicator:

🔴 Red Line: Displays the normalized GDP Discrepancy (GDP - (PCE + GCE + GPDI)).
⚪ White Line: Shows the signal line derived from the consolidated indicator.
🔵 Blue Line and Other Indicators: Hidden by default for clarity. Enable them in the indicator settings if a more detailed analysis is desired.

🔍 Interpreting the Signals:
Recession Signal:
🔴 Red Line crosses below ⚪ White Line: Signals that the economy may be heading into a recession. Indicates that the GDP Discrepancy is declining relative to the broader economic signals captured by the indicator.

📑 Confirmation:
Look for confirmation from other technical indicators or economic data to validate the recession signal.

⚙️ Customization:
🕒 Normalization Period: Adjust the normalization period to suit different timeframes or sensitivity levels.

🔄 Indicator Visibility: Toggle the visibility of additional economic metrics (e.g., US Private Debt Growth, US Government Debt Growth) to tailor the indicator to your analytical needs.

🔵 Consolidated Indicator: Enable the blue line if you wish to view the aggregated economic signal alongside the primary signals.

🎯 Benefits
⏰ Early Warning System:
Provides timely signals that can help anticipate economic downturns, allowing for proactive portfolio adjustments.


🏁 Conclusion
The GDP Recession Indicator is a powerful tool for anyone looking to navigate the complexities of the economic landscape. By providing clear signals based on robust economic data, it empowers traders and investors to make informed decisions and better manage risk in anticipation of potential recessions.
CyclesforecastingTrend Analysis

สคริปต์โอเพนซอร์ซ

ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถเข้าใจและตรวจสอบได้ ต้องขอบคุณผู้เขียน! ที่ให้คุณใช้ได้ฟรี แต่การนำโค้ดนี้ไปใช้ในการเผยแพร่ซ้ำจะต้องอยู่ภายใต้ กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?


และใน:

คำจำกัดสิทธิ์ความรับผิดชอบ