Overview

Zero-Lag Trend with Trend Filter is a trend-following overlay designed to reduce moving-average lag while keeping signals selective. It combines a fast-reacting Zero-Lag trend line with a separate Trend EMA filter, then requires trend strength, momentum alignment, and volume confirmation before printing entries or continuation markers.

How It Works

  • Zero-Lag Trend (ZL Trend): Built from a double-EMA style zero-lag method (EMA1 corrected by the EMA1−EMA2 difference) to react faster than a standard EMA.
  • Trend Filter EMA: An EMA of price used as the directional baseline for bias and filtering.
  • Trend Strength Filter: Measures the % distance between ZL Trend and the Trend EMA. Signals require this to be above your Signal Sensitivity threshold.
  • Momentum Alignment: Uses price momentum (ta.mom) together with ZL Trend slope (rising/falling) to confirm continuation conditions.
  • Volume Confirmation: Requires volume to exceed its average meaningfully (Volume > Volume SMA * 1.2) to avoid low-participation signals.

What You’ll See on the Chart

  • ZL Trend line: Changes color based on conditions (green bullish, red bearish, gray neutral).
  • Trend EMA line: A reference EMA (custom color) used for direction and strength measurement.
  • Main Entry signals: Green up-triangle for Buy and red down-triangle for Sell, plotted with ATR-based offsets for clarity.
  • Confirmation signals: Cross markers (blue for Buy continuation, orange for Sell continuation) that appear after an initial entry when same-direction conditions repeat.
  • Optional volume-based candle coloring: Bars are tinted by candle direction (bull/bear) and whether volume is above or below the volume SMA.

Indicator Information

Version 1.0
Last Update 10 Feb 2026
Category EMA & Crossover
Compatibility TradingView
Script Pine Script v5