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 aberto

Dentro do verdadeiro espírito TradingView, o autor deste script publicou ele como um script de código aberto, para que os traders possam compreender e checar ele. Um viva ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?