OPEN-SOURCE SCRIPT

TrendFilter: EMA, DC, KC, ATR

This indicator combines multiple Exponential Moving Averages (EMAs) with Donchian Channels, Keltner Channel and Bollinger Bands strategy to identify potential trading opportunities.

Features:
  • Six configurable EMAs: No. 3,4 and 5,6 are set to Vegas channels use as default.
  • Donchian Channels: Two sets of Donchian Channels provide additional insights into price volatility and potential breakouts.
  • Dynamic Keltner Channel Strategy: The Keltner Channel adapts its width based on market volatility using the Average True Range (ATR). print current ATR value in the right-top corner
  • Customizable Parameters: Fine-tune the indicator's settings, including EMA lengths, Donchian Channel periods, ATR multiplier, and entry/exit lookback periods.


Disclaimer: This indicator is for informational purposes only and should not be considered financial advice.
ATRdonchianchannelDonchian Channels (DC)Exponential Moving Average (EMA)EMASkeltnerchannelKeltner Channels (KC)

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