OPEN-SOURCE SCRIPT
GK Trend Ribbon SWING + PREPARE HUD

GK Trend Ribbon SWING + PREPARE HUD
Is a trend-following swing-trading indicator designed to identify high-probability directional bias, early trade preparation, and confirmed trend shifts using a volatility-adjusted zero-lag trend ribbon. This script is purpose-built for traders who value patience, structure, and confirmation, rather than fast scalping or candle-by-candle noise.
HOW IT WORKS
indicator is built around a Zero-Lag EMA (ZLEMA) to reduce traditional EMA delay while maintaining smooth trend behaviour. An ATR-based volatility envelope is applied above and below the ribbon to define dynamic trend boundaries. Trend states are determined as follows: Bullish mode: Price sustains above the upper volatility band with confirmation Bearish mode: Price sustains below the lower volatility band with confirmation Neutral mode: Price remains inside the ribbon range A trend change is only confirmed after multiple bar confirmation, helping filter false breakouts and market noise.
PREPARE SIGNALS
(Early Awareness)Before a confirmed trend flip, the indicator displays PREPARE GK BUY / PREPARE GK SELL warnings: These appear only on the live (unconfirmed) candle They act as early awareness, not entry signals They disappear if conditions are not confirmed This allows traders to prepare mentally and structurally without repainting past signals. Confirmed Signals Confirmed GK BUY / GK SELL signals are only printed after bar close and only when: A valid trend transition is confirmed Directional conditions persist The previous trend state is invalidated Once printed, confirmed signals do not repaint.
HUD BANNER
The integrated HUD provides real-time market state feedback: Bullish Mode Bearish Mode Neutral / Wait Prepare Buy / Sell warnings This allows quick decision-making without needing to interpret raw price action continuously. Inputs & Customisation Swing Ribbon Length – controls trend smoothness (higher = slower, stronger trends)ATR Length – volatility measurement period Band Multiplier – sensitivity of trend boundaries Confirmation Bars – number of bars required to confirm a trend shift.
RECOMENDED USEGE
Best suited for 15-minute, 30-minute, and higher time frames Designed for swing trading, not scalping Expect natural drawdown during trend development Works best when combined with proper risk management and market structure awareness
Important Notes This indicator does not predict price It reacts to confirmed market structure and volatility No indicator guarantees profitability Always use appropriate risk management Disclaimer This script is provided for educational and analytical purposes only .It is not financial advice .Trading involves risk, and users are responsible for their own trading decisions.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.