OPEN-SOURCE SCRIPT

Original Keltner with Support And Resistance

Updated
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.
Release Notes
Removed the bool argument since it doesn't get with the indicator's purpose.
Bands and Channelskeltnerchannel

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer