OPEN-SOURCE SCRIPT
KHUSHI VERMA DEHRI ON SONE

Khushi Verma Dehri On Sone - ZigZag Buy/Sell with Volume Pressure & Stop Loss
This indicator combines ZigZag-based Buy/Sell signals, dynamic stop-loss levels, and a Volume Pressure histogram to provide a powerful visual trading tool.
🔍 Key Features:
ZigZag Buy/Sell Detection:
Automatically identifies significant highs and lows using ZigZag logic with a user-defined lookback period (depth).
Red "SELL" labels at swing highs
Green "BUY" labels at swing lows
Connected with directional lines for clarity
Stop Loss Visualization:
For each signal, a horizontal dashed stop-loss line is drawn:
For SELL signals: SL = High + %SL
For BUY signals: SL = Low − %SL
Volume Pressure Histogram:
Visualizes the net buying/selling pressure based on candle direction:
Green bars: Positive (buying) pressure
Red bars: Negative (selling) pressure
Blue line: Smoothed pressure using EMA
⚙️ Inputs:
ZigZag Lookback: Number of bars to detect swing highs/lows
Stop Loss (%): Distance from pivot high/low to define SL
Volume Smoothing Length: EMA length for volume pressure
Show Histogram: Toggle for displaying the volume pressure bars
This indicator combines ZigZag-based Buy/Sell signals, dynamic stop-loss levels, and a Volume Pressure histogram to provide a powerful visual trading tool.
🔍 Key Features:
ZigZag Buy/Sell Detection:
Automatically identifies significant highs and lows using ZigZag logic with a user-defined lookback period (depth).
Red "SELL" labels at swing highs
Green "BUY" labels at swing lows
Connected with directional lines for clarity
Stop Loss Visualization:
For each signal, a horizontal dashed stop-loss line is drawn:
For SELL signals: SL = High + %SL
For BUY signals: SL = Low − %SL
Volume Pressure Histogram:
Visualizes the net buying/selling pressure based on candle direction:
Green bars: Positive (buying) pressure
Red bars: Negative (selling) pressure
Blue line: Smoothed pressure using EMA
⚙️ Inputs:
ZigZag Lookback: Number of bars to detect swing highs/lows
Stop Loss (%): Distance from pivot high/low to define SL
Volume Smoothing Length: EMA length for volume pressure
Show Histogram: Toggle for displaying the volume pressure bars
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.