FX365_Thailand

Government Bonds Yield Spread (Multiple Selection)

FX365_Thailand アップデート済   
This indicator shows Government bonds yield spread which is the difference between two government bonds yield.

Country codes and terms(year) are parameterized as listed below so you can combine & compare multiple government bonds as per your needs.

Country:
U.S.
Japan
Australia
New Zealand
U.K.
Germany
Canada
Switzerland

Terms:
2 year
5 year
10 year
20 year
30 year


Sample chart
AUDNZD Daily Chart

As RBNZ’s rate hike has been expected, the yield spread between Australia’s bond and New Zealand’s bond has been increasing with a downtrend of AUDNZD


———————
国債利回りの金利差を表示するインジケーターです。

国と国債の期間を変数化しているので、必要に応じて複数の国の異なる期間の国債利回りの金利差を表示することができます。


国:
アメリカ
日本
オーストラリア
ニュージーランド
イギリス
ドイツ
カナダ
スイス


期間:
2年債
5年債
10年債
20年債
30年債


サンプルチャート
AUDNZDの日足チャートです。
RBNZによる利上げ期待が高まる中、両国の金利差が広がり、下降トレンドを形成しています。

リリースノート:
Added France, Italy, Spain and Greece for country selection.
リリースノート:
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.

——————————

以下の2つの機能を追加しました。

1. Auto、Manualモードの追加
Autoモードを選択すると、現在開いているチャートのティッカーIDに応じた国債利回り差が計算されます。
例えばGBPUSDのチャートを開くと、イギリス10年国債利回りとアメリカ10年国債利回りの差を計算して表示します。
ユーロクロスペアを選択した場合、ドイツ国債が適用されます。
国債の期間については、Bond1で選択した期間が適用されます。

Autoモードは以下の8主要通貨で構成されるFXの通貨ペアのみに機能します。
USD, JPY, EUR, GBP, AUD, NZD, CAD, CHF.


2. ラベル追加
現在表示している国債利回り差がどの国債利回りの差なのかをわかるようラベル表示可能にしました。
リリースノート:
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の通貨ペア以外でも利回り差を表示するよう修正。
リリースノート:
Added yield spread value in label.
リリースノート:
Added MA of yield spread.

リリースノート:
Added each yield value as label below yield spread.
利回り差のラベルの下にそれぞれの国債の利回りを表示するようにしました。

リリースノート:
Added Sweden and Norway in country selection.
リリースノート:
-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

-国債の期間選択パラメータに"01"を追加
-国債の期間選択パラメータに"月"を追加
末尾に"M"のつく数字は3ヶ月、6ヶ月などの短期国債を表します。例. 03Mは3ヶ月国債
-Pine Scriptバージョン5にアップデート

■”なぜ”がわかる相場分析
・チャートの動きというファクトを元に
・客観的かつロジカルに
・初心者でもわかるように
相場展望を解説

Followすると投稿の度に通知が届きます。
bit.ly/3s888QI

■Editor's Pick
bit.ly/3pkLCEl

■Blog
bit.ly/2VPAMJk

■Indicator
bit.ly/3lmWYFk

■Membership
bit.ly/3zvLkPG
保護スクリプト
このスクリプトは保護スクリプトとして公開されていますが、利用することができます。お気に入りに登録してチャート上でご利用頂けます。但しこのスクリプトのソースコードを閲覧したり変更することはできません。
免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

チャートでこのスクリプトを利用したいですか?