PROTECTED SOURCE SCRIPT
Candlestick Pattern Strategy with Smart Stop-Loss Management

🔹 Strategy Overview
This strategy combines candlestick patterns with trend filtering and EMA channel confirmation to identify high-probability trading opportunities. It features a smart stop-loss management system that moves to breakeven once the trade reaches a predefined profit threshold.
📊 Key Features
✅ Multiple Candlestick Patterns – Detects classic reversal patterns like:
Hammer & Hanging Man
Bullish & Bearish Engulfing
Piercing Line & Dark Cloud Cover
Morning & Evening Star
Doji Star (Neutral Signal)
✅ Trend & EMA Channel Filters
Trend EMA (100-period) – Ensures trades align with the broader trend.
EMA Channel (50-period ± % range) – Filters trades within a defined volatility range.
✅ Flexible Trade Management
Fixed Target Points – Take profit at a predefined distance.
Trailing Stop to Cost – Moves stop-loss to breakeven after reaching a specified profit threshold.
✅ Customizable Trade Direction
Long Only / Short Only / Both – Adapt to bullish, bearish, or neutral markets.
✅ Time-Based Execution
Intraday Mode – Trades only within specified session hours.
Positional Mode – Holds trades beyond the session.
⚙️ Input Parameters
Trend Filter – Enable/disable trend alignment with EMA.
EMA Channel Filter – Adjust channel width for volatility control.
Candlestick Patterns – Toggle individual patterns on/off.
Target Points & Trail Trigger – Customize profit-taking and SL management.
Trade Type – Switch between intraday and positional trading.
📈 Entry Conditions
Long Entry:
Bullish candlestick pattern (Hammer, Bullish Engulfing, Piercing Line, Morning Star).
Price above Trend EMA (if enabled).
RSI < 30 (oversold confirmation).
Within EMA Channel (if enabled).
Short Entry:
Bearish candlestick pattern (Hanging Man, Bearish Engulfing, Dark Cloud Cover, Evening Star).
Price below Trend EMA (if enabled).
RSI > 70 (overbought confirmation).
Within EMA Channel (if enabled).
📉 Exit Conditions
Take Profit (TP): Fixed target based on points.
Stop-Loss (SL): Moves to breakeven after hitting the trail trigger.
📊 Visual Indicators
Trend EMA (Orange Line) – Main trend direction.
EMA Channel (Blue Lines) – Volatility range.
Buy/Sell Labels – Entry signals below/above bars.
Doji Star (Gray Cross) – Neutral signal.
🎯 Best Suited For
Swing Traders (Positional Mode)
Intraday Traders (Scalping with tight stops)
Price Action Enthusiasts (Candlestick-based entries)
🔗 Try it out and customize it to fit your trading style! 🚀
This strategy combines candlestick patterns with trend filtering and EMA channel confirmation to identify high-probability trading opportunities. It features a smart stop-loss management system that moves to breakeven once the trade reaches a predefined profit threshold.
📊 Key Features
✅ Multiple Candlestick Patterns – Detects classic reversal patterns like:
Hammer & Hanging Man
Bullish & Bearish Engulfing
Piercing Line & Dark Cloud Cover
Morning & Evening Star
Doji Star (Neutral Signal)
✅ Trend & EMA Channel Filters
Trend EMA (100-period) – Ensures trades align with the broader trend.
EMA Channel (50-period ± % range) – Filters trades within a defined volatility range.
✅ Flexible Trade Management
Fixed Target Points – Take profit at a predefined distance.
Trailing Stop to Cost – Moves stop-loss to breakeven after reaching a specified profit threshold.
✅ Customizable Trade Direction
Long Only / Short Only / Both – Adapt to bullish, bearish, or neutral markets.
✅ Time-Based Execution
Intraday Mode – Trades only within specified session hours.
Positional Mode – Holds trades beyond the session.
⚙️ Input Parameters
Trend Filter – Enable/disable trend alignment with EMA.
EMA Channel Filter – Adjust channel width for volatility control.
Candlestick Patterns – Toggle individual patterns on/off.
Target Points & Trail Trigger – Customize profit-taking and SL management.
Trade Type – Switch between intraday and positional trading.
📈 Entry Conditions
Long Entry:
Bullish candlestick pattern (Hammer, Bullish Engulfing, Piercing Line, Morning Star).
Price above Trend EMA (if enabled).
RSI < 30 (oversold confirmation).
Within EMA Channel (if enabled).
Short Entry:
Bearish candlestick pattern (Hanging Man, Bearish Engulfing, Dark Cloud Cover, Evening Star).
Price below Trend EMA (if enabled).
RSI > 70 (overbought confirmation).
Within EMA Channel (if enabled).
📉 Exit Conditions
Take Profit (TP): Fixed target based on points.
Stop-Loss (SL): Moves to breakeven after hitting the trail trigger.
📊 Visual Indicators
Trend EMA (Orange Line) – Main trend direction.
EMA Channel (Blue Lines) – Volatility range.
Buy/Sell Labels – Entry signals below/above bars.
Doji Star (Gray Cross) – Neutral signal.
🎯 Best Suited For
Swing Traders (Positional Mode)
Intraday Traders (Scalping with tight stops)
Price Action Enthusiasts (Candlestick-based entries)
🔗 Try it out and customize it to fit your trading style! 🚀
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.