Added France, Italy, Spain and Greece for country selection.
Note di rilascio
⋅
New functions added;
1. Auto and manual mode selection When “Auto” mode selected, yield spread will automatically be calculated based on chart’s ticker ID. For instance, if you open GBPUSD chart, then yield spread between British government bond yield and U.S. government bond yield. If you choose EURO crosses, German government bond will be applied for EURO. As for bond’s term, bond1’s term will be applied.
Auto mode works for major forex pairs which consists of 8 major currency; USD, JPY, EUR, GBP, AUD, NZD, CAD, CHF.
For manual mode, yield spread will be calculated based on user input parameters.
2. Label Label of selected bonds combination can be displayed so that you can always remember what you are seeing now.
Corrected the logic for manual mode. When Manual mode selected, yield spreads will be shown not only on Forex chart but also on other assets charts.
マニュアルモード選択時はFXの通貨ペア以外でも利回り差を表示するよう修正。
Note di rilascio
⋅
Added yield spread value in label.
Note di rilascio
⋅
Added MA of yield spread.
Note di rilascio
⋅
Added each yield value as label below yield spread. 利回り差のラベルの下にそれぞれの国債の利回りを表示するようにしました。
Note di rilascio
⋅
Added Sweden and Norway in country selection.
Note di rilascio
⋅
-Added "01" for bond term selection -Added month terms for bond term selection The numbers with suffix 'M' means month-term bonds. E.g. 03M means a 3-Month bond. -Updated to Pine Script version5
Very useful for those who track yield spreads. Appreciate your work! Any chance you can open up the source code so it can be customized easier? If not, it would be great to have options for shorter-term spreads like the 1mo and 3mo. Below are the symbols for the countries of the major and minor currencies. If you can add those or make the code available it would be greatly appreciated. Thanks!
United States = US01MY, US03MY Euro Area = EU01MY, EU03MY or DE01MY, DE03MY United Kingdom = GB01MY, GB03MY New Zealand = NZ01MY, NZ03MY Switzerland = CH01MY, CH03MY Canada = CA01MY, CA03MY Japan = JP01MY, JP03MY Sweden = SE01MY, SE03MY Norway = NO01MY, NO03MY Australia = ??? I was unable to track down short-dated note yields for Australia
FX365_Thailand
⋅
@ChrisMathis, Hi, thank you for your comment. I did not even know there was such shorter term bonds. Let me look into this.
FX365_Thailand
⋅
@ChrisMathis, Hi, I just released an updated version with options to select month-term bonds. I added 1-month, 3-months, 6-months and 9-months and I think these terms cover most of short-term bonds all over the world. Also, 1-year has been added for long-term bond(i.e. "01" in term selection parameter).
Seems like Australian short-term bonds are not available on TradingView so far, however, if the data gets available in the future, it will be displayed accordingly.
sergentpepper7
⋅
Thanks ! Very useful indicator ! Would it be possible to add the Sweden and Norway yield rates ? So we would all the countries from the G10 ? Thanks so much
FX365_Thailand
⋅
@sergentpepper7, Thank you! Just released an updated version, adding Sweden and Norway.
United States = US01MY, US03MY
Euro Area = EU01MY, EU03MY or DE01MY, DE03MY
United Kingdom = GB01MY, GB03MY
New Zealand = NZ01MY, NZ03MY
Switzerland = CH01MY, CH03MY
Canada = CA01MY, CA03MY
Japan = JP01MY, JP03MY
Sweden = SE01MY, SE03MY
Norway = NO01MY, NO03MY
Australia = ??? I was unable to track down short-dated note yields for Australia