OPEN-SOURCE SCRIPT

[dharmatech] Area Under Yield Curve : US

Updated
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)
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.
Fundamental Analysisstatisticstreasurysecuritiesyieldcurve

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?


Also on:

Disclaimer