This chart gives the relationship between Yield Curve (10Year - 3Month treasury rates) Vs SPY. The yield curve is considered to be one of the predictors of recessions. Recent US recessions are also marked in the chart.
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.