OPEN-SOURCE SCRIPT
Updated WU Sahm Recession Indicator

The Sahm Recession Indicator devised by Economist Claudia Sahm is a rather insightful tool that captures the onset of recessions by utilizing unemployment data, which can provide more real-time insights compared to quarterly GDP reports. If the three-month simple moving average (SMA) of the unemployment rate exceeds the minimum unemployment rate of the previous 12 months by 0.5 percentage points, it indicates a high likelihood of a recession.
This script allows you to visualize this indicator and set up alerts for when this criterion indicates that a recession could be coming.
This script allows you to visualize this indicator and set up alerts for when this criterion indicates that a recession could be coming.
Release Notes
Will not display on any other time frame than Monthly. I added also a yellow line when the signal is exactly on the threshold value.Release Notes
Due to the use of the function ta.lowest(unrate3M, 12), which looked back only 11 months since it included the current one, the previous version was not fully accurate. I have fixed this issue.Release Notes
Can be switch to a Threshold of 0.61% instead of the 0.5% used by Claudia Sahm.Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.