OPEN-SOURCE SCRIPT

Average Yield Inversion

Telah dikemas kini
Description:
This script calculates and visualizes the average yield curve spread to identify whether the yield curve is inverted or normal. It takes into account short-term yields (1M, 3M, 6M, 2Y) and long-term yields (10Y, 30Y).

  • Positive values: The curve is normal, indicating long-term yields are higher than short-term yields. This often reflects economic growth expectations.
  • Negative values: The curve is inverted, meaning short-term yields are higher than long-term yields, a potential signal of economic slowdown or recession.


Key Features:
  • Calculates the average spread between long-term and short-term yields.
  • Displays a clear graph with a zero-line reference for quick interpretation.
  • Useful for tracking macroeconomic trends and potential market turning points.


This tool is perfect for investors, analysts, and economists who need to monitor yield curve dynamics at a glance.
Nota Keluaran
Added red color for inversion and green for non inversion
Nota Keluaran
Update: removed Chart to show the indicator only
Nota Keluaran
Update: added symbol and chart for comparison
Nota Keluaran
Update: added title
Breadth IndicatorsOscillatorssentiment

Skrip sumber terbuka

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?

Penafian