OPEN-SOURCE SCRIPT
已更新 US Treasury Constant Maturity Spreads

Plots and tabulates constant maturity treasury yield spreads
// colours per curve type for the plots and table headers
C_30Y_20Y=color.orange
C_10Y_5Y=color.purple
C_10Y_2Y=color.blue
C_7Y_5Y=color.gray
C_5Y_2Y=color.red
C_3Y_2Y=color.yellow
C_10Y_1Y=color.olive
// colours per curve type for the plots and table headers
C_30Y_20Y=color.orange
C_10Y_5Y=color.purple
C_10Y_2Y=color.blue
C_7Y_5Y=color.gray
C_5Y_2Y=color.red
C_3Y_2Y=color.yellow
C_10Y_1Y=color.olive
版本注释
Added spreads for short end of the curve, 10yr minus 3m, 10yr minus 1m版本注释
Changes:- Added labels for recession bands.
- Adjusted visibility of 2009 recession band.
Identifying colours:
- Orange = 30Y minus 20Y
- Purple = 10Y minus 5Y
- Blue = 10Y minus 2Y
- Grey = 7Y minus 5Y
- Red = 5Y minus 2Y
- Yellow = 3Y minus 2Y
- Olive = 10Y minus 1Y
- Maroon = 10Y minus 3M
- Teal = 10Y minus 1M
版本注释
Changes as follows:- Minor display and visual changes for readability - moved spread table, font
- Updated to common markup lib v4
版本注释
Changes a follows:- Added parameter that allows user to consider two consecutive quarters of negative GDP growth as a recession. Defaults to false but can be set on Inputs dialog.
版本注释
Changes a follows:- Minor UI changes to allow plot and spread table colours to be changed via the indicator’s settings tool
- Increased precision on the y-scale
- General refactoring and code hygiene.
版本注释
Changes as follows:- Improved the visual for recession band rendering
- Introduced user defined types and refactored code
- Added 2001
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。