OPEN-SOURCE SCRIPT

Original Keltner with Support And Resistance

已更新
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.
版本注释
Removed the bool argument since it doesn't get with the indicator's purpose.
Bands and Channelskeltnerchannel

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明