OPEN-SOURCE SCRIPT
Financial Conditions Traffic Light Indicator

Inspired by TomasonMarkets. Today I am publishing my first Indicator on trading view based on Chicago Fed National Financial Conditions Index (NFCI). The NFCI incorporates 105 financial market indicators, helping gauge whether financial conditions are "tightening" (restrictive) or "loosening" (accommodative).
It is nothing too complex:
Negative RoC of NFCI = loosening conditions = more liquidity = Risk-on
Positive ROC of NFCI = tightening conditions = less liquidity = Risk-off
Additionally:
Using the 28-week Exponential Moving Average (EMA) we identify long-term trends:
NFCI above the EMA: Indicates financial conditions are tight (relative to recent trends).
NFCI below the EMA: Indicates financial conditions are loose. (relative to recent trends).
Strategy logic:
🟢 Risk-on trades (bullish Bitcoin and other high beta assets) when the NFCI has a negative slope AND NFCI is below its 28-week EMA.
🔴 Risk-off trades (bearish Bitcoin and other high beta assets) when the NFCI has a negative slope AND NFCI is above its 28-week EMA.
🟡 Neutral: Happens in two scenarios: NFCI has a negative slope but is above its EMA OR NFCI has a positive slope but is below its EMA.
It is nothing too complex:
Negative RoC of NFCI = loosening conditions = more liquidity = Risk-on
Positive ROC of NFCI = tightening conditions = less liquidity = Risk-off
Additionally:
Using the 28-week Exponential Moving Average (EMA) we identify long-term trends:
NFCI above the EMA: Indicates financial conditions are tight (relative to recent trends).
NFCI below the EMA: Indicates financial conditions are loose. (relative to recent trends).
Strategy logic:
🟢 Risk-on trades (bullish Bitcoin and other high beta assets) when the NFCI has a negative slope AND NFCI is below its 28-week EMA.
🔴 Risk-off trades (bearish Bitcoin and other high beta assets) when the NFCI has a negative slope AND NFCI is above its 28-week EMA.
🟡 Neutral: Happens in two scenarios: NFCI has a negative slope but is above its EMA OR NFCI has a positive slope but is below its EMA.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.