OPEN-SOURCE SCRIPT
Updated [dharmatech] Area Under Yield Curve : US

This indicator displays the area under the U.S. Treasury Securities yield curve.
If you compare this to
SPX, you'll see that there are large periods where they are inversely related. Other times, they track together. When the move together, watch out for the expected and eventual divergence.
By default, this indicator will show up in a separate pane. If you move it to an existing pane (e.g. along side
SPX) you'll need to move it to a different price scale.
The area under the yield curve is a quick way to see if the overall yield curve moved up or down. Generally speaking, increasing yields isn't good for markets, unless there is some other stimulus going on simultaneously.
The following treasury securities are used in this calculation:
DGS1MO (1 month)
DGS3MO (3 month)
DGS6MO (6 month)
DGS1 (1 year)
DGS2 (2 year)
DGS3 (3 year)
DGS5 (5 year)
DGS7 (7 year)
DGS10 (10 year)
DGS20 (20 year)
DGS30 (30 year)
If you compare this to
By default, this indicator will show up in a separate pane. If you move it to an existing pane (e.g. along side
The area under the yield curve is a quick way to see if the overall yield curve moved up or down. Generally speaking, increasing yields isn't good for markets, unless there is some other stimulus going on simultaneously.
The following treasury securities are used in this calculation:
Release Notes
Updated to use real-time yields.Added dropdown in settings that allow the indicator to go further back in time by excluding certain securities.
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.
For quick access on a chart, add this script to your favorites — learn more here.
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.
For quick access on a chart, add this script to your favorites — learn more here.
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.