bairam1000

Slope Indicator of Highest Highs and Lowest Lows


In this example, the indicator calculates the slope between the highest high value of the current period and the highest high value candles bars ago. The result is plotted on the chart as a line.
And this example calculates the slope between the lowest low value of the current period and the lowest low value candles bars ago. It then plots the slope on the chart using a red line.

Feel free to adjust the input parameters and modify the code to fit your specific requirements. If you have any more questions or need further assistance, feel free to ask!
Script de código abierto

Siguiendo el verdadero espíritu de TradingView, el autor de este script lo ha publicado en código abierto, para que los traders puedan entenderlo y verificarlo. ¡Un hurra por el autor! Puede utilizarlo de forma gratuita, aunque si vuelve a utilizar este código en una publicación, debe cumplir con lo establecido en las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar este script en un gráfico?