PROTECTED SOURCE SCRIPT
已更新

Donchian Channel - trend filter

4 672
Strategy based on Donchian Trend filter indicator:

Donchian Channel - trend filter


Which in turn is derived from custom Donchian Channel indicator:

Donchian Channel - Custom


Few extra paremters added:

EntryType
  • Breakout : Entry on first confirmation of trend.
  • Pullback : After confirmation of trend, wait till price comes back to mid band before entry.
  • Combined: Prefer pullback entry. But, if price breaks higher band more often, then go long on breakout. Parameter EntryBreakoutStrength + TrendCountLimit is used for measuring repeated breakout and possibility of not getting pullback signal.


ExitType
  • Reversal : Exit upon complete trend reversal
  • Choppy : Exit when trend becomes neutral and candles are colored in silver
  • Midband: Exit when price hits midband. Please note, this option should not be used in conjunction with EntryType - Pullback or Combined
  • Combined: Uses UpCount/DownCount along with ExitMidBandRange and ExitChoppyRange values to determine where to exit. High UpCount or DownCount means, instrument has trended for long - in this case early exit is favourable. If TrendCount is higher than ExitMidBandRange, then exit upon touching MidBand. If TrendCount is higher than ExitChoppyRange, then exit when trend becomes choppy. If not, wait till reversal.

發行說明
Updated logic to resolve conflicts on MidExit and PullbackEntry
發行說明
Minor corrections in logic to avoid error.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。