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! 🚀
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.