OPEN-SOURCE SCRIPT
ที่อัปเดต: Interest Rate Differential & Comparison

This indicator compares 10-year government bond yields and yield differentials for six major FX currency pairs.
Supported pairs:
• USDJPY — US10Y / JP10Y
• EURJPY — DE10Y / JP10Y
• GBPJPY — GB10Y / JP10Y
• AUDJPY — AU10Y / JP10Y
• CHFJPY — CH10Y / JP10Y
• EURUSD — DE10Y / US10Y
## Modes
Base
Displays the base currency's 10-year government bond yield.
Counter
Displays the counter currency's 10-year government bond yield.
Differential
Displays the difference between the base and counter yields.
Both
Displays both yields using their original values.
Shifted
Shifts the counter yield vertically by a fixed amount to make the movements of the two yields easier to compare visually.
The Shift value is for visualization only. It does not represent the actual interest-rate differential.
All-diffs
Displays the current 10-year yield differential for all supported currency pairs.
This mode is also useful when adjusting the pair-specific Shift values. You can view the current differential for all pairs while adjusting the Shift settings in the indicator's Inputs.
## Examples
Shifted mode:

All-diffs mode:

## Data
The indicator uses TradingView's 10-year government bond yield symbols:
US10Y, DE10Y, GB10Y, AU10Y, CH10Y and JP10Y.
Data availability and update frequency depend on the underlying TradingView symbols.
## Credits
Based on the open-source script "Interest Rate Differential" by wcapucci89.
This version substantially extends the original script with automatic FX pair detection, support for six currency pairs, shifted yield comparison, pair-specific Shift settings, and an all-pair differential view.
## Disclaimer
This indicator is intended for visual analysis and comparison of interest rates. It is not a trading signal and does not provide investment advice.
Supported pairs:
• USDJPY — US10Y / JP10Y
• EURJPY — DE10Y / JP10Y
• GBPJPY — GB10Y / JP10Y
• AUDJPY — AU10Y / JP10Y
• CHFJPY — CH10Y / JP10Y
• EURUSD — DE10Y / US10Y
## Modes
Base
Displays the base currency's 10-year government bond yield.
Counter
Displays the counter currency's 10-year government bond yield.
Differential
Displays the difference between the base and counter yields.
Both
Displays both yields using their original values.
Shifted
Shifts the counter yield vertically by a fixed amount to make the movements of the two yields easier to compare visually.
The Shift value is for visualization only. It does not represent the actual interest-rate differential.
All-diffs
Displays the current 10-year yield differential for all supported currency pairs.
This mode is also useful when adjusting the pair-specific Shift values. You can view the current differential for all pairs while adjusting the Shift settings in the indicator's Inputs.
## Examples
Shifted mode:
All-diffs mode:
## Data
The indicator uses TradingView's 10-year government bond yield symbols:
US10Y, DE10Y, GB10Y, AU10Y, CH10Y and JP10Y.
Data availability and update frequency depend on the underlying TradingView symbols.
## Credits
Based on the open-source script "Interest Rate Differential" by wcapucci89.
This version substantially extends the original script with automatic FX pair detection, support for six currency pairs, shifted yield comparison, pair-specific Shift settings, and an all-pair differential view.
## Disclaimer
This indicator is intended for visual analysis and comparison of interest rates. It is not a trading signal and does not provide investment advice.
Release Note
Updated the publication chart to show Shifted mode as the primary example for comparing the two government bond yields.สคริปต์แบบโอเพนซอร์ส
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์แบบโอเพนซอร์ส
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน