OPEN-SOURCE SCRIPT

2-Year - Fed Rate Spread

The “2-Year - Fed Rate Spread” is a financial indicator that measures the difference between the 2-Year Treasury Yield and the Federal Funds Rate (Fed Funds Rate). This spread is often used as a gauge of market sentiment regarding the future direction of interest rates and economic conditions.

Calculation

• 2-Year Treasury Yield: This is the return on investment, expressed as a percentage, on the U.S. government’s debt obligations that mature in two years.

• Federal Funds Rate: The interest rate at which depository institutions trade federal funds (balances held at Federal Reserve Banks) with each other overnight.

The indicator calculates the spread by subtracting the Fed Funds Rate from the 2-Year Treasury Yield:

{2-Year - Fed Rate Spread} = {2-Year Treasury Yield} - {Fed Funds Rate}

Interpretation:

• Positive Spread: A positive spread (2-Year Treasury Yield > Fed Funds Rate) typically suggests that the market expects the Fed to raise rates in the future, indicating confidence in economic growth.

• Negative Spread: A negative spread (2-Year Treasury Yield < Fed Funds Rate) can indicate market expectations of a rate cut, often signaling concerns about an economic slowdown or recession. When the spread turns negative, the indicator’s background turns red, making it visually easy to identify these periods.

How to Use:

• Trend Analysis: Investors and analysts can use this spread to assess the market’s expectations for future monetary policy. A persistent negative spread may suggest a cautious approach to equity investments, as it often precedes economic downturns.

• Confirmation Tool: The spread can be used alongside other economic indicators, such as the yield curve, to confirm signals about the direction of interest rates and economic activity.

Research and Academic References:

The 2-Year - Fed Rate Spread is part of a broader analysis of yield spreads and their implications for economic forecasting. Several academic studies have examined the predictive power of yield spreads, including those that involve the 2-Year Treasury Yield and Fed Funds Rate:


1. Estrella, Arturo, and Frederic S. Mishkin (1998). “Predicting U.S. Recessions: Financial Variables as Leading Indicators.” The Review of Economics and Statistics, 80(1): 45-61.

• This study explores the predictive power of various financial variables, including yield spreads, in forecasting U.S. recessions. The authors find that the yield spread is a robust leading indicator of economic downturns.

2. Estrella, Arturo, and Gikas A. Hardouvelis (1991). “The Term Structure as a Predictor of Real Economic Activity.” The Journal of Finance, 46(2): 555-576.

• The paper examines the relationship between the term structure of interest rates (including short-term spreads like the 2-Year - Fed Rate) and future economic activity. The study finds that yield spreads are significant predictors of future economic performance.

3. Rudebusch, Glenn D., and John C. Williams (2009). “Forecasting Recessions: The Puzzle of the Enduring Power of the Yield Curve.” Journal of Business & Economic Statistics, 27(4): 492-503.

• This research investigates why the yield curve, particularly spreads involving short-term rates like the 2-Year Treasury Yield, remains a powerful tool for forecasting recessions despite changes in monetary policy.

Conclusion:

The 2-Year - Fed Rate Spread is a valuable tool for market participants seeking to understand future interest rate movements and potential economic conditions. By monitoring the spread, especially when it turns negative, investors can gain insights into market sentiment and adjust their strategies accordingly. The academic research supports the use of such yield spreads as reliable indicators of future economic activity.
Fundamental AnalysisPortfolio managementsentiment

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