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! 🚀
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。