[dharmatech] U.S. Treasury Yield CurveThis indicator displays the U.S. Treasury Securities Yield Curve.
This is a fork of the US Treasury Yield Curve indicator by @longflat. Thank you for sharing your work!
There are already so many yield curve indicators on TradingView.
What makes this one different?
Update to version 5 of Pine Script
Add RRP%
Add 4 month
Add 20 year
Show previous day's yield curve
Options for prior yield curves
The thick red line shows the latest yield curve.
The yellow line shows the yield curve 1 bar ago.
So, if your timeframe is set to 1 day, the yellow line will show yesterday's yield curve.
Ustreasuries
Commitment of Traders ~ TREASURIESMy intention was to create 1 script for the Commitment of Traders report but I wasn't not aware there is a limit on how many instrument calls can be made in PineScript so I had no choice but to divide the script into instrument categories. So far I have created 4 of them: Forex, Indexes & Metals/ Commodities & Treasuries which is the one presented here. If you are interested in the other ones, feel free to do a search.
Available Instruments: Ultra(25-35yrs), Bonds(15-25yrs), 10yrs, 5yrs, 2yrs & 3 Month EuroDollar
The script calculates the ZScore of both Net Long (Money Managers / Asset Managers) and Net Long (Dealers / Swap) In some instrument categories you will also see Open Interest. It depends on whether I was maxed out or not on making security calls.
If you are not familiar with ZScore, it basically calculates the distance of price from a mean average in units of Standard Deviation. In theory when price reaches +2 it signifies overbought while if it reaches -2 is oversold. However just because it's hitting an extreme in one particular average doesn't necessarily mean it will reverse as the position of price in relation with the next longer average might not be so out of range.
Must be attached to weekly chart.
If you have any questions/suggestions, feel free to add them in the comments below
US Treasury Yield CurveThis indicator plots the US treasury yield curve as maturity (x-axis/time) vs yield (y-axis/price)