PROTECTED SOURCE SCRIPT
BGSwing Strategy

This Pine Script® strategy detects bullish and bearish liquidity levels (SSL/BSL) based on swing points and executes trades based on breakout-failure logic.
✨ Features:
• Automatically identifies Swing Highs (BSL) and Swing Lows (SSL)
• Configurable strategy execution on Break & Fail (Break and Close Back)
• Optional buy/sell direction filtering
• Customizable Take Profit & Stop Loss (in points)
• Visual liquidity levels drawn as horizontal lines
• Optional signal labels displayed directly on the chart
⚙️ Parameters:
• Liquidity Strength: defines the number of bars for valid highs/lows
• Direction Filter: Buy only / Sell only / Both
• Line style, width, and color customization
• Option to auto-delete old liquidity levels
Ideal for traders using price action and smart money concepts who want clean entry logic and visual confirmation.
Enjoy and use responsibly. 📈
✨ Features:
• Automatically identifies Swing Highs (BSL) and Swing Lows (SSL)
• Configurable strategy execution on Break & Fail (Break and Close Back)
• Optional buy/sell direction filtering
• Customizable Take Profit & Stop Loss (in points)
• Visual liquidity levels drawn as horizontal lines
• Optional signal labels displayed directly on the chart
⚙️ Parameters:
• Liquidity Strength: defines the number of bars for valid highs/lows
• Direction Filter: Buy only / Sell only / Both
• Line style, width, and color customization
• Option to auto-delete old liquidity levels
Ideal for traders using price action and smart money concepts who want clean entry logic and visual confirmation.
Enjoy and use responsibly. 📈
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
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 dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
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.