OPEN-SOURCE SCRIPT

Enhanced Keltner Trend

The Enhanced Keltner Trend (EKT) indicator builds on the classic Keltner Channel, using volatility to define potential trend channels around a central moving average. It combines customizable volatility measures moving average, giving traders flexibility to adapt the trend channel to various market conditions.

How It Works?

MA Calculation:
A user-defined moving average forms the central line (or price basis) of the Keltner Channel.

Channel Width:
The width of the Keltner Channel depends on market volatility.
You can choose between two methods for measuring the volatility:
ATR-based Width: Uses the Average True Range (ATR) with customizable periods and multipliers.
Price Range Width: Uses the high and low price range over a defined period.

Trend Signal:
The trend is evaluated by price in relation to the Keltner Channel:
Bullish Trend (Blue Line): When the price crosses above the upper band, it signals upward momentum.
Bearish Trend (Orange Line): When the price crosses below the lower band, it signals downward momentum.


What Is Unique?
This Enhanced version of the Keltner Trend is for investors who want to have more control over the Keltner's channels calculation, so they can calibrate it to provide them more alpha when combined with other Technical Indicators.

Use ATR: Gives the user the choice to use the ATR for the channel width calculation, or use the default High - Low over specified period.

ATR Period: Users can modify ATR length to calculate the channels width (Volatility).

ATR Multiplier: Users can fine-tune how much of the volatility they want to factor into the channels, providing more control over the final calculation.

MA Period: Smoothing period for the Moving Averages.

MA Type: Choosing from different Moving Averages types providing different smoothing types.

Setting Alerts:
Built-in alerts for trend detection:
Bullish Trend: When price crosses the upper band, it signals a Bullish Signal (Blue Color)
Bearish Trend: When price crosses the lower band, it signals a Bearish Signal (Orange Color)


Credits to jaggedsoft , it's a modified version of his.
Average True Range (ATR)Keltner Channels (KC)Trend Analysis

オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

チャートでこのスクリプトを利用したいですか?

免責事項