OPEN-SOURCE SCRIPT
US Treasury Yield Spread Viewer

**Title:**
US Treasury Yield Spread (Customizable)
**Description:**
A flexible tool for analyzing the spread between any two US Treasury yields. Compare any combination of maturities from 1-month to 30-year bonds to monitor yield curve dynamics.
**Features:**
• Fully customizable — select any two Treasury maturities for comparison
• Color-coded spread line (green for positive, red for negative/inverted)
• Visual highlighting during yield curve inversion periods
• Real-time info panel displaying current yields and spread values
• Customizable colors and line thickness
**Available Maturities:**
1M, 3M, 6M, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 20Y, 30Y
**Common Use Cases:**
• 10Y-2Y spread: The most widely watched recession indicator
• 30Y-2Y spread: Long-term vs short-term rate comparison
• 10Y-3M spread: Federal Reserve's preferred curve measure
**How to Use:**
Open settings to select your preferred yield maturities. The spread is calculated as Long Side minus Short Side. Negative values (inversion) are often considered early warning signals for economic slowdowns.
US Treasury Yield Spread (Customizable)
**Description:**
A flexible tool for analyzing the spread between any two US Treasury yields. Compare any combination of maturities from 1-month to 30-year bonds to monitor yield curve dynamics.
**Features:**
• Fully customizable — select any two Treasury maturities for comparison
• Color-coded spread line (green for positive, red for negative/inverted)
• Visual highlighting during yield curve inversion periods
• Real-time info panel displaying current yields and spread values
• Customizable colors and line thickness
**Available Maturities:**
1M, 3M, 6M, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 20Y, 30Y
**Common Use Cases:**
• 10Y-2Y spread: The most widely watched recession indicator
• 30Y-2Y spread: Long-term vs short-term rate comparison
• 10Y-3M spread: Federal Reserve's preferred curve measure
**How to Use:**
Open settings to select your preferred yield maturities. The spread is calculated as Long Side minus Short Side. Negative values (inversion) are often considered early warning signals for economic slowdowns.
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.
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.
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.