OPEN-SOURCE SCRIPT

Average Yield Inversion

已更新
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.
版本注释
Added red color for inversion and green for non inversion
版本注释
Update: removed Chart to show the indicator only
版本注释
Update: added symbol and chart for comparison
版本注释
Update: added title
Breadth IndicatorsOscillatorssentiment

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明