PROTECTED SOURCE SCRIPT
Aggiornato 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.
Note di rilascio
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.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.