Pump Detector - EMA 4H + Retest H1 (Valid 10x4H bars)

This indicator is designed to detect sudden bullish moves ("pumps") on the 4-hour timeframe, and alert traders of potential retest entry points on the 1-hour timeframe.
🔍 Pump activation conditions (on 4H):
EMA 12 crosses above EMA 21
Current volume exceeds the 20-period SMA of volume (on 4H)
When both conditions are met, a pump alert is triggered and a time window opens.
📉 Retest detection logic (on H1):
For the next 10 bars on the 4H chart (~40 hours), the indicator monitors price behavior on the 1H timeframe
If the LOW of any H1 candle touches or drops below EMA 12 or 21 (on H1), a second alert is triggered
✅ Key Features:
Draws EMA 12/21 from the 4H timeframe directly on the chart
Enforces 4H and H1 timeframes, regardless of the chart the script is applied to
One-time detection per pump window: once the 10-bar window expires, the retest alert is disabled until a new pump is detected
Ideal for capturing momentum breakouts followed by technical pullbacks
⚠️ Recommended for:
Traders looking for scalping or swing trading setups on crypto, forex, or stocks. Helps identify post-breakout entry opportunities using a structured and disciplined approach.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.
Declinazione di responsabilità
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.