Impulse Zone DetectorHere's a solid TradingView publish description for the script:
---
**Impulse Zone Detector**
Automatically detects impulsive price moves and marks the origin candle as a supply/demand zone — giving you time to prepare your entry *before* price retraces back to the zone.
**How it works**
When price makes a strong consecutive move in one direction (the impulse), the indicator marks the last opposing candle before that move as a zone. This candle represents the origin of the impulse — a level where price is likely to react when retested. The zone is drawn the moment the impulse completes, so you have maximum preparation time before any retracement occurs.
**Features**
- Detects both bullish and bearish impulse zones automatically
- Zones drawn from candle body only — no wick noise
- EMA filter (default 200) — only draws bearish zones below EMA and bullish zones above EMA, keeping you aligned with the dominant trend
- EMA filter is toggleable — disable to see all valid zones regardless of trend bias
- Mixed candle tolerance — allows minor interruptions in the impulse sequence so valid moves aren't missed
- Duplicate zone prevention — same pivot candle never draws twice
- On-chart dashboard showing current EMA bias, filter status and EMA value
- Full alert support — get notified the moment a zone forms, on any pair and timeframe
**Settings**
- Min/Max impulse candles — control how many consecutive candles define a valid impulse
- Min impulse size multiplier — total move must be a multiple of the pivot candle size
- Min pips — absolute minimum move size to filter out noise
- Mixed candle tolerance — allow 0, 1 or 2 non-conforming candles in the sequence
- EMA length — defaults to 200, fully adjustable
**How to use**
Add to your chart on your preferred timeframe. Set up alerts using the built-in alert conditions so you get notified when a new zone forms. When alerted, switch to that chart, assess the context, and prepare your entry for when price retraces into the marked zone.
Works best on forex pairs on the 5 minute, 15 minute and 1 hour timeframes.
---
Clean, informative and honest about what it does without overpromising. Want me to adjust the tone, add anything, or shorten it?
Penunjuk Pine Script®






















