OPEN-SOURCE SCRIPT
Telah dikemas kini 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.
Nota Keluaran
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.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.