OPEN-SOURCE SCRIPT

Bond Yeild Curve

تم تحديثه
Bond Yeild Curve
A bond yeild curve is a line that plot the interest rate of bonds of each maturity dates.
The slope of the curve give the future of economy cycle.

if the slope could be normal (positive), flat or even inverted.

This indicator aquired data of bond yeild provided by TradingView.

How to use it.
  • Select the country of the bond / another country to compare.
  • Select the maturity of bond (this indicator set 2Y, 5Y, 10Y and 20Y as default).
  • You can toggle to 3 different data set; Yeild, Spread (10Y-2Y) and Yeild Curve.
  • In case that you select the "Yeild Curve", you can customize the desired past period to compare.


How we can get the benefit.
- If the current spread is greater than 1.0, it suppose that the economy of that country probably is ok.
- if the current spread is between 0 - 1.0, it suppose to be flatted and probably turn to invert and the economy cound be in a recession soon.
- if the current spread is below 0, it suppose to be inverted and economy is in recession.

when knowing the state of economy, it would help us to manage our investment.

When you select "Yeild"
لقطة

When you select "Spread"
لقطة

When you select "Yeild Curve"
لقطة

I'm new for this.
if any idea, correction and suggestion, i do appreciate it.
ملاحظات الأخبار
Update.

1) Compare yield curve over period of time of treasury yield.

لقطة

2) Compare yield curve between countries.
لقطة

3) Show yield of each ttm in line chart.
Available TTM : 3M, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 20Y
لقطة

Some code i refer to this guy.
BarefootJoey :
Historical US Bond Yield Curve

ملاحظات الأخبار
Minor fixed.
ملاحظات الأخبار
Update code and added 2-10 Spread.
bondsFundamental AnalysisPortfolio managementstatisticsyieldcurve

نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الرمز في المنشور يخضع لقواعد‎‎قوانين الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟

إخلاء المسؤولية