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

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