This 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.
Nota Keluaran
Hardcoded timeframe of securities to 1D. Without this, RRP doesn't load at lower timeframes. Also, without this, at lower timeframes, the yield curve difference is sometimes hardly noticeable.
Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.