OPEN-SOURCE SCRIPT

Yield Curve (2-10yr)

Yield curve of the 2-10 year US Treasury Bonds, with over 50 years of history.

The Yield Curve is the interest rate on the 10 year bond minus the 2 year bond.

When it inverts (crosses under 0) a recession usually follows 6-12 months later.
It's a great leading indicator to identify risk in the macroeconomic environment.
bondscryptocurveEquityFundamental Analysismacrotreasuryyield

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer