OPEN-SOURCE SCRIPT
Kurdistani Macro Regime

# Kurdistani Macro Regime
## Overview
Kurdistani Macro Regime is a comprehensive macroeconomic dashboard designed to help traders evaluate the current global macro environment using publicly available economic data.
Rather than predicting future prices, the script converts multiple macroeconomic indicators into a rule-based market regime model that helps identify whether current conditions favor:
• Expansion
• Recovery
• Slowdown
• Stagflation
• Recession
The indicator combines inflation, monetary policy, liquidity, labor market conditions, yield curve dynamics, credit spreads and volatility into a single analytical framework.
This script is intended for macro analysis and portfolio positioning rather than short-term price forecasting.
---
# Data Sources
The indicator retrieves macroeconomic information directly from the FRED (Federal Reserve Economic Data) database whenever available.
Main datasets include:
• CPI Inflation
• Federal Funds Rate
• ECB Policy Rate
• GDP
• Unemployment Rate
• M2 Money Supply
• Treasury Yields
• Credit Spreads
• VIX
• Inflation Breakevens
• Oil Prices
Because macroeconomic releases occur weekly, monthly or quarterly, values update only when new official data become available.
---
# Macro Regime Engine
The script evaluates three major components of the economy.
## 1. Growth
Growth is estimated using:
• GDP Growth
• PMI Trend
• Labor Market
• Growth Momentum
Higher scores indicate stronger economic expansion.
---
## 2. Inflation
Inflation analysis includes:
• CPI Level
• CPI Trend
Higher inflation increases the probability of restrictive monetary policy.
---
## 3. Liquidity
Liquidity considers:
• M2 Growth
• Federal Funds Rate
• Yield Curve
• Market Volatility
Higher liquidity generally supports risk assets.
---
These components are combined into five macro regimes.
Expansion
Strong growth with controlled inflation.
Recovery
Improving growth following economic weakness.
Slowdown
Moderating economic activity.
Stagflation
High inflation combined with weak growth.
Recession
Broad deterioration across multiple macro indicators.
---
# Advanced Macro Indicators
The dashboard includes several composite indicators.
## Macro Health Score
A composite score between 0 and 100 summarizing overall macro conditions.
Higher values indicate healthier macro environments.
---
## Recession Risk Score
A rule-based composite using:
• Yield Curve
• GDP
• PMI
• Labor Market
• Credit Spreads
• Real Interest Rates
This score is **not** a statistical recession probability.
---
## Fed Pivot Score
Measures whether macro conditions are becoming more favorable for future monetary easing.
Inputs include:
• Inflation
• GDP
• Unemployment
• Yield Curve
• Interest Rates
This is an analytical score rather than a forecast.
---
## Dollar Milkshake Score
Estimates relative USD strength using:
• Interest Rate Differential
• Credit Stress
• Emerging Market Stress
• Volatility
• Real Rates
Higher values suggest stronger demand for USD liquidity.
---
# Asset Outlook
The indicator estimates macro conditions for several asset classes.
## Gold
Gold generally benefits from:
• Negative Real Rates
• Higher Inflation
• Recession Risk
• Easier Liquidity
---
## Bitcoin
Bitcoin is evaluated primarily through:
• Global Liquidity
• Risk Appetite
• Real Rates
• Monetary Conditions
---
## US Dollar
The Dollar score reflects:
• Rate Differentials
• Risk-Off Conditions
• Real Rates
• Credit Stress
---
## US Equities
The equity model incorporates:
• Growth
• Liquidity
• Yield Curve
• Credit Conditions
---
## Long-Term Treasury Bonds
Bond scoring focuses on:
• Recession Risk
• Fed Pivot
• Yield Curve
• Real Rates
---
# Dashboard
The dashboard summarizes:
Current Macro Regime
Risk-On / Risk-Off Environment
Macro Health
Recession Risk
Fed Pivot Score
Dollar Milkshake Score
Yield Curve
Interest Rates
Inflation
GDP
PMI
Employment
Oil Trend
Asset Scores
Signal History
Upcoming Economic Calendar
---
# Trading Signals
The script generates several informational signals.
Gold Macro Bullish
Appears when macro conditions become favorable for gold.
Bitcoin Risk-On
Appears when liquidity and risk conditions support Bitcoin.
Yield Curve Inversion
Highlights significant inversion events.
Fed Pivot
Indicates improving conditions for potential future monetary easing.
Oil Shock
Flags unusually large oil price movements.
These signals are informational and should be confirmed with market structure and price action.
---
# Risk Management
This indicator is designed to complement—not replace—technical analysis.
Possible workflow:
1. Determine the current macro regime.
2. Evaluate risk appetite.
3. Compare asset scores.
4. Wait for technical confirmation.
5. Execute trades according to your own trading plan.
---
# Inputs
Users can customize:
• Macro thresholds
• Dashboard visibility
• Signal visibility
• Calendar dates
• Watermark
• Risk profile
• Alert system
• Bullish thresholds
---
# Limitations
This script uses macroeconomic data that update less frequently than market prices.
Economic releases may be revised after publication.
Some FRED series may be unavailable depending on TradingView data availability.
The model is deterministic and rule-based.
It does not employ machine learning or statistical forecasting.
---
# Disclaimer
This indicator is intended solely as an educational and analytical tool.
All scores, regimes, probabilities and signals are generated using predefined rule-based logic and should not be interpreted as predictions or guarantees of future market performance.
Always combine macro analysis with technical analysis, sound risk management and your own independent research before making trading decisions.
## Overview
Kurdistani Macro Regime is a comprehensive macroeconomic dashboard designed to help traders evaluate the current global macro environment using publicly available economic data.
Rather than predicting future prices, the script converts multiple macroeconomic indicators into a rule-based market regime model that helps identify whether current conditions favor:
• Expansion
• Recovery
• Slowdown
• Stagflation
• Recession
The indicator combines inflation, monetary policy, liquidity, labor market conditions, yield curve dynamics, credit spreads and volatility into a single analytical framework.
This script is intended for macro analysis and portfolio positioning rather than short-term price forecasting.
---
# Data Sources
The indicator retrieves macroeconomic information directly from the FRED (Federal Reserve Economic Data) database whenever available.
Main datasets include:
• CPI Inflation
• Federal Funds Rate
• ECB Policy Rate
• GDP
• Unemployment Rate
• M2 Money Supply
• Treasury Yields
• Credit Spreads
• VIX
• Inflation Breakevens
• Oil Prices
Because macroeconomic releases occur weekly, monthly or quarterly, values update only when new official data become available.
---
# Macro Regime Engine
The script evaluates three major components of the economy.
## 1. Growth
Growth is estimated using:
• GDP Growth
• PMI Trend
• Labor Market
• Growth Momentum
Higher scores indicate stronger economic expansion.
---
## 2. Inflation
Inflation analysis includes:
• CPI Level
• CPI Trend
Higher inflation increases the probability of restrictive monetary policy.
---
## 3. Liquidity
Liquidity considers:
• M2 Growth
• Federal Funds Rate
• Yield Curve
• Market Volatility
Higher liquidity generally supports risk assets.
---
These components are combined into five macro regimes.
Expansion
Strong growth with controlled inflation.
Recovery
Improving growth following economic weakness.
Slowdown
Moderating economic activity.
Stagflation
High inflation combined with weak growth.
Recession
Broad deterioration across multiple macro indicators.
---
# Advanced Macro Indicators
The dashboard includes several composite indicators.
## Macro Health Score
A composite score between 0 and 100 summarizing overall macro conditions.
Higher values indicate healthier macro environments.
---
## Recession Risk Score
A rule-based composite using:
• Yield Curve
• GDP
• PMI
• Labor Market
• Credit Spreads
• Real Interest Rates
This score is **not** a statistical recession probability.
---
## Fed Pivot Score
Measures whether macro conditions are becoming more favorable for future monetary easing.
Inputs include:
• Inflation
• GDP
• Unemployment
• Yield Curve
• Interest Rates
This is an analytical score rather than a forecast.
---
## Dollar Milkshake Score
Estimates relative USD strength using:
• Interest Rate Differential
• Credit Stress
• Emerging Market Stress
• Volatility
• Real Rates
Higher values suggest stronger demand for USD liquidity.
---
# Asset Outlook
The indicator estimates macro conditions for several asset classes.
## Gold
Gold generally benefits from:
• Negative Real Rates
• Higher Inflation
• Recession Risk
• Easier Liquidity
---
## Bitcoin
Bitcoin is evaluated primarily through:
• Global Liquidity
• Risk Appetite
• Real Rates
• Monetary Conditions
---
## US Dollar
The Dollar score reflects:
• Rate Differentials
• Risk-Off Conditions
• Real Rates
• Credit Stress
---
## US Equities
The equity model incorporates:
• Growth
• Liquidity
• Yield Curve
• Credit Conditions
---
## Long-Term Treasury Bonds
Bond scoring focuses on:
• Recession Risk
• Fed Pivot
• Yield Curve
• Real Rates
---
# Dashboard
The dashboard summarizes:
Current Macro Regime
Risk-On / Risk-Off Environment
Macro Health
Recession Risk
Fed Pivot Score
Dollar Milkshake Score
Yield Curve
Interest Rates
Inflation
GDP
PMI
Employment
Oil Trend
Asset Scores
Signal History
Upcoming Economic Calendar
---
# Trading Signals
The script generates several informational signals.
Gold Macro Bullish
Appears when macro conditions become favorable for gold.
Bitcoin Risk-On
Appears when liquidity and risk conditions support Bitcoin.
Yield Curve Inversion
Highlights significant inversion events.
Fed Pivot
Indicates improving conditions for potential future monetary easing.
Oil Shock
Flags unusually large oil price movements.
These signals are informational and should be confirmed with market structure and price action.
---
# Risk Management
This indicator is designed to complement—not replace—technical analysis.
Possible workflow:
1. Determine the current macro regime.
2. Evaluate risk appetite.
3. Compare asset scores.
4. Wait for technical confirmation.
5. Execute trades according to your own trading plan.
---
# Inputs
Users can customize:
• Macro thresholds
• Dashboard visibility
• Signal visibility
• Calendar dates
• Watermark
• Risk profile
• Alert system
• Bullish thresholds
---
# Limitations
This script uses macroeconomic data that update less frequently than market prices.
Economic releases may be revised after publication.
Some FRED series may be unavailable depending on TradingView data availability.
The model is deterministic and rule-based.
It does not employ machine learning or statistical forecasting.
---
# Disclaimer
This indicator is intended solely as an educational and analytical tool.
All scores, regimes, probabilities and signals are generated using predefined rule-based logic and should not be interpreted as predictions or guarantees of future market performance.
Always combine macro analysis with technical analysis, sound risk management and your own independent research before making trading decisions.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
______________________________________
I am Omid Dabagchi Makri, an artificial intelligence and computer software engineer, I have been working in the field of market analysis especially in the field of digital currencies for many years.
Entekhab.Net
I am Omid Dabagchi Makri, an artificial intelligence and computer software engineer, I have been working in the field of market analysis especially in the field of digital currencies for many years.
Entekhab.Net
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
______________________________________
I am Omid Dabagchi Makri, an artificial intelligence and computer software engineer, I have been working in the field of market analysis especially in the field of digital currencies for many years.
Entekhab.Net
I am Omid Dabagchi Makri, an artificial intelligence and computer software engineer, I have been working in the field of market analysis especially in the field of digital currencies for many years.
Entekhab.Net
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.