OPEN-SOURCE SCRIPT

US Inversions & Recessions

Updated
Understand when the US yield curve inverted and when recessions took place. Select from Federal Funds Rate, 3 month yield, 2 year yield and 10 year yield.

Default ratio = Federal Funds Rate / 10 year yield

When line goes from white to red = inversion
When line goes from red to white = un-inversion

Yellow shading shows times when the rates are inverted.
Blue shading shows when recessions officially occurred.
Release Notes
Updated recession line indicator to ensure script displays correctly.

Updated default view to be US02Y / US10Y.
Cycleseducationalinversionratesrecessionyields

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