OPEN-SOURCE SCRIPT
Updated Trend by ΔMA + Double ZigZag + EMA/WMA Bands by Kidev

This script is a multi-tool trend and structure analyzer combining moving average slope confirmation, double zigzag swing mapping, and dynamic EMA/WMA trend bands — all in one overlay indicator.
🔹 Key Features:
ΔMA Trend Detection
Detects trend shifts using the slope of a chosen moving average (SMA, EMA, WMA, RMA, HMA).
Confirms uptrend/downtrend only after a user-defined confirmation window.
Draws color-coded MA line (green = uptrend, red = downtrend, gray = sideways).
Optional arrows for trend change entries.
Alerts for confirmed trend shifts.
Double ZigZag Swing Analysis
Two customizable ZigZag layers with independent lookback periods.
Optional swing labels (HH, HL, LH, LL) to track market structure.
Full control over line style, width, and colors for each ZigZag.
EMA Band (96 default)
Plots a dynamic EMA channel (High, HLC3, Low).
Visual band highlights volatility and trend zones.
Adjustable fill color and transparency.
Weighted Moving Average (WMA 96)
Clean trend-following baseline.
Adjustable source, length, and color.
Background Highlight
Toggleable background shading for bullish / bearish / sideways conditions.
Fully customizable colors and transparency.
Helps visually separate market phases at a glance.
Note:
ZigZag repainting is inherent by design (future swings refine past points). Use it as a structural guide, not as a standalone signal.
🔹 Key Features:
ΔMA Trend Detection
Detects trend shifts using the slope of a chosen moving average (SMA, EMA, WMA, RMA, HMA).
Confirms uptrend/downtrend only after a user-defined confirmation window.
Draws color-coded MA line (green = uptrend, red = downtrend, gray = sideways).
Optional arrows for trend change entries.
Alerts for confirmed trend shifts.
Double ZigZag Swing Analysis
Two customizable ZigZag layers with independent lookback periods.
Optional swing labels (HH, HL, LH, LL) to track market structure.
Full control over line style, width, and colors for each ZigZag.
EMA Band (96 default)
Plots a dynamic EMA channel (High, HLC3, Low).
Visual band highlights volatility and trend zones.
Adjustable fill color and transparency.
Weighted Moving Average (WMA 96)
Clean trend-following baseline.
Adjustable source, length, and color.
Background Highlight
Toggleable background shading for bullish / bearish / sideways conditions.
Fully customizable colors and transparency.
Helps visually separate market phases at a glance.
Note:
ZigZag repainting is inherent by design (future swings refine past points). Use it as a structural guide, not as a standalone signal.
Release Notes
The EMA band acts like the “spine” of the market, while HL3 and HL4 anchor the longer-term direction. When the band is central and price drifts to one side, the trend direction becomes crystal clear — making this combo a powerful filter for clean entries and exits.Detect trend bias with ΔMA slope and EMA/WMA confirmations.
Identify market structure shifts with ZigZag HH/HL/LL/LH markers.
Confirm swing entries/exits using Ichimoku crosses.
Combine trend + structure + signals for swing trading, intraday setups, or position management.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.