OPEN-SOURCE SCRIPT

Stability Max Overload

Actualizado
Stability Max Overload was created in another script I have been working on found below.

https://www.tradingview.com/script/f0luOLmE-Yield-Curve-Version-2-55-2/

imagen

I have broken the code down to only display the Stability features.

What this is:
I was trying to find a way that could in some form display the Stability or Instability of the US Treasuries Bond Market. To try and help me do that, I came up with 3 values.
*Stability
*Stability Overload
*Stability Max Overload.

I started with STABILITY. This value is generated based off the number of side by side inversions in the Bond Market. I wanted this value to range between 0 and 1 while 1 equaling all Bonds inverted and 0 equaling no Bonds inverted and any number of inversions in between would equal a percentage value based off the actual number.

STABILITY OVERLOAD was created based off the average of each inversion.

STABILITY MAX OVERLOAD was then created based off the total of each inversion.

The most stable Yield Curve would have no inversions and therefore would generate a 0 for Stability, Stability Overload and Stability Max Overload. The more inversions the Yield Curve has the higher in value Stability itself would have as Stability is weighted more per inversion. With each inversion, data is taken based off the amount with which the Yields are inverted.

This display shows where we currently stand since Dec 2018. It's a telling story so say the least. I do plan on continuing the mentioned above script but again wanted to release a standalone of the data generated.

Hope you enjoy,
OpptionsOnly
Notas de prensa
** BUG FIX UPDATE** In previous Versions, STABILITY would not generate the correct number given certain criteria.

* Fixed the equation as to how STABILITY is calculated.
* Added a trigger if this value becomes greater than 1.

It is very unlikely that the greater than 1 trigger will come in to play but as it is still possible, I added it in for safety.

Best wishes,
OpptionsOnly
bondsinversionMoving AveragestreasurybondsTrend AnalysisUS02YUS02Y-US10YUS10Yyieldcurveyieldcurveinversion

Script de código abierto

Siguiendo fielmente el espíritu de TradingView, el autor de este script lo ha publicado en código abierto, permitiendo que otros traders puedan entenderlo y verificarlo. ¡Olé por el autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la reutilización de este código en la publicación se rige por las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

¿Quiere utilizar este script en un gráfico?

Exención de responsabilidad