PROTECTED SOURCE SCRIPT
已更新 Engulfing + Trend + Confirmation + S/R Filter — v6

This Pine-v6 indicator is provided purely for testing and educational purposes. It looks for high-probability engulfing patterns in a strong ADX-confirmed trend, then waits for a pullback/retest and a confirming candle before plotting “Buy” (green up arrow) or “Sell” (red down arrow) signals on the chart.
Key features:
• ADX Trend Filter (14,25): only trades when ADX > 25 and +DI/–DI confirm direction
• Engulfing Pattern Detection: identifies classic bullish or bearish engulfing candles
• (Optional) Micro-Pullback Filter: checks for small-bodied consolidation before the engulfing
• (Optional) Midpoint Retest: requires price to revisit the engulfing candle’s midpoint
• Support/Resistance Filter: ignores signals if a major pivot high/low is too close (within “ATR × N”)
• Confirmation Candle: only fires the signal after the next candle closes in the same direction
• Built-in `alertcondition(...)` calls for both Buy and Sell signals.
This “Testing Edition” is meant to help you verify PineScript logic, backtest entries, or integrate with your own webhook/email solutions (e.g., Replit → Telegram). Use the alert templates below for webhook payloads:
• Buy alert payload:
{
"message": "🚀 BUY signal on {{ticker}} @ {{close}} ({{time}})"
}
• Sell alert payload:
{
"message": "🔻 SELL signal on {{ticker}} @ {{close}} ({{time}})"
}
Feel free to fork and modify this script to suit your own risk management, backtesting framework, or messaging setup. Because it’s intended as a “test” indicator, no performance or profitability promises are made—use at your own risk.
Key features:
• ADX Trend Filter (14,25): only trades when ADX > 25 and +DI/–DI confirm direction
• Engulfing Pattern Detection: identifies classic bullish or bearish engulfing candles
• (Optional) Micro-Pullback Filter: checks for small-bodied consolidation before the engulfing
• (Optional) Midpoint Retest: requires price to revisit the engulfing candle’s midpoint
• Support/Resistance Filter: ignores signals if a major pivot high/low is too close (within “ATR × N”)
• Confirmation Candle: only fires the signal after the next candle closes in the same direction
• Built-in `alertcondition(...)` calls for both Buy and Sell signals.
This “Testing Edition” is meant to help you verify PineScript logic, backtest entries, or integrate with your own webhook/email solutions (e.g., Replit → Telegram). Use the alert templates below for webhook payloads:
• Buy alert payload:
{
"message": "🚀 BUY signal on {{ticker}} @ {{close}} ({{time}})"
}
• Sell alert payload:
{
"message": "🔻 SELL signal on {{ticker}} @ {{close}} ({{time}})"
}
Feel free to fork and modify this script to suit your own risk management, backtesting framework, or messaging setup. Because it’s intended as a “test” indicator, no performance or profitability promises are made—use at your own risk.
發行說明
This Pine-v6 indicator is provided purely for testing and educational purposes. It looks for high-probability engulfing patterns in a strong ADX-confirmed trend, then waits for a pullback/retest and a confirming candle before plotting “Buy” (green up arrow) or “Sell” (red down arrow) signals on the chart. Key features:
• ADX Trend Filter (14,25): only trades when ADX > 25 and +DI/–DI confirm direction
• Engulfing Pattern Detection: identifies classic bullish or bearish engulfing candles
• (Optional) Micro-Pullback Filter: checks for small-bodied consolidation before the engulfing
• (Optional) Midpoint Retest: requires price to revisit the engulfing candle’s midpoint
• Support/Resistance Filter: ignores signals if a major pivot high/low is too close (within “ATR × N”)
• Confirmation Candle: only fires the signal after the next candle closes in the same direction
• Built-in `alertcondition(...)` calls for both Buy and Sell signals.
This “Testing Edition” is meant to help you verify PineScript logic, backtest entries, or integrate with your own webhook/email solutions (e.g., Replit → Telegram). Use the alert templates below for webhook payloads:
• Buy alert payload:
{
"message": "🚀 BUY signal on {{ticker}} @ {{close}} ({{time}})"
}
• Sell alert payload:
{
"message": "🔻 SELL signal on {{ticker}} @ {{close}} ({{time}})"
}
Feel free to fork and modify this script to suit your own risk management, backtesting framework, or messaging setup. Because it’s intended as a “test” indicator, no performance or profitability promises are made—use at your own risk.
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。