OPEN-SOURCE SCRIPT

Original Keltner with Support And Resistance

Atualizado
This indicator is based on the original Keltner Channels using typical price and calculating the 10 period average of high - low

Typical price = (high + low + close)/3

In this case, I've taken Typical price as (open + high + low + close)/4 on the advice of John Bollinger from his book Bollinger on Bollinger Bands.

Buy Line = 10 Period Typical Price Average + 10 Period Average of (High - Low)
Sell Line = 10 Period Typical Price Average - 10 Period Average of (High - Low)

This is the basis for the indicator. I've added the highest of the Buy Line and lowest of the Sell Line for the same period which acts as Support and Resistance.

If price is trending below the Lowest of Sell Line, take only sell trades and the Lowest Line acts as resistance.

If price is trending above the Highest of Buy Line, take only buy trades and the Highest Line acts as support.
Notas de Lançamento
Removed the bool argument since it doesn't get with the indicator's purpose.
Bands and Channelskeltnerchannel

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?

Aviso legal