AG Pro Stop Hunt Map Engine [AGPro Series]AG Pro Stop Hunt Map Engine
Overview / What it does
AG Pro Stop Hunt Map Engine is a price-action overlay designed to map potential trap zones after liquidity sweeps. The script focuses on moments where price briefly moves beyond an important reference level, rejects that move, and then closes back through the swept area. In practical terms, this helps traders visualize where a failed breakout or failed breakdown may have left trapped positioning behind.
The engine can work with pivot-based liquidity references, previous day high / previous day low references, or both at the same time. This makes it useful for traders who want a structured way to monitor classic stop-hunt behavior without relying on a single interpretation of liquidity. Instead of treating every wick beyond a level as meaningful, the script applies reclaim logic and filtering rules so that only sweeps with stronger reversal characteristics are highlighted.
The core goal is not to predict every reversal. The goal is to organize sweep events into a readable map: where the sweep happened, which side may be trapped, which zones remain active, and which levels are still relevant as price moves forward. That is why the script is built as a map engine rather than a simple marker tool.
This publication is especially suited to traders who study rejection structure, failed continuation, stop runs, and liquidity-driven reversals. It can be used as a visual context layer inside a broader workflow that may already include structure, trend, momentum, or higher-timeframe bias analysis.
Unique Edge
Many liquidity-sweep tools only mark a wick beyond a prior level and stop there. This script takes a more selective approach. It requires a reclaim condition, supports wick-to-body quality filtering, allows optional fake-sweep filtering, and maintains the resulting event as an actionable mapped zone rather than a one-bar marker.
Its main differentiation is the emphasis on post-sweep structure. Once a sweep qualifies, the script builds and extends a zone so the trader can continue monitoring that area after the original event. This provides a cleaner framework for seeing whether the market is respecting that trap region, moving away from it, or invalidating it.
Another important distinction is the visual hierarchy. The script is designed to separate nearest relevant zones from older or weaker context. This helps keep the chart readable while still preserving useful background information. Instead of cluttering the screen with every historical event at equal importance, the engine highlights what is currently closest and most relevant.
Methodology
The script first defines the liquidity source. Users can choose pivot highs and lows, previous day high and previous day low, or a combined mode that monitors both.
For a bullish trap scenario, price must sweep below a valid downside reference and then reclaim it according to the selected conditions. For a bearish trap scenario, price must sweep above a valid upside reference and then reclaim it. This creates two independent directional engines: one for bullish recovery after downside liquidity is taken, and one for bearish rejection after upside liquidity is taken.
The detection logic is built around several layers:
1. Sweep source selection
The engine checks whether price has moved beyond a chosen pivot or previous-day level.
2. Wick / body filter
The script can require a minimum wick-to-body relationship so that weak or low-conviction candles are filtered out.
3. Reclaim close requirement
The user can require price to close back through the swept level before the event is accepted.
4. Fake sweep filter
An optional penetration filter limits how deep price can move beyond the level before the event is treated as lower quality.
5. Zone persistence
Qualified sweep-and-reclaim events are not left as isolated markers. They are stored and extended forward as zones so the trader can monitor their ongoing relevance.
6. Nearest-zone emphasis
The display engine highlights the nearest bull and bear trap zones so current context is easier to read.
The result is a framework that treats sweep events as evolving market context rather than isolated historical dots.
Signals & Alerts
The script identifies two primary event types:
Bull Trap Reclaim
This appears when price sweeps below a valid reference level and then closes back above it, suggesting that downside liquidity may have been taken and rejected.
Bear Trap Reclaim
This appears when price sweeps above a valid reference level and then closes back below it, suggesting that upside liquidity may have been taken and rejected.
Visual elements can include:
- Sweep zones
- Trap labels
- Right-edge state tags
- Nearest-zone emphasis
- Origin markers on qualifying sweep bars
- A summary panel showing current state and nearest bull / bear trap information
Alert conditions are included for:
- Bullish trap reclaim events
- Bearish trap reclaim events
These alerts are event-based. They identify when a qualifying reclaim occurs according to the active settings.
Key Inputs
Sweep Source
Choose whether the engine uses pivots, previous day levels, or both.
Pivot Strength
Controls how strict the pivot reference detection should be.
Require Reclaim Close
Requires price to close back through the swept level before a zone is created.
Min Wick / Body Ratio
Filters low-quality sweeps by requiring stronger rejection candles.
Use Fake Sweep Filter
Enables an additional penetration-depth filter to reduce weaker events.
Max Penetration (ATR Multiple)
Sets the maximum allowed overshoot beyond the swept level when fake-sweep filtering is enabled.
Chart Mode
Allows a cleaner publish-style view or a more detailed analysis-style view.
Label Mode
Controls how aggressively labels are shown on the chart.
Highlight Nearest Bull / Bear Zones
Emphasizes the closest active zones for faster visual interpretation.
Summary Panel
Shows the current trap state, active bull and bear zone counts, nearest trap levels, and the last detected events.
Limitations & Transparency
This script is not a prediction engine and does not guarantee reversals. A sweep-and-reclaim event can still fail, especially in strong directional environments where price continues expanding after a temporary rejection.
Reference choice matters. Pivot-based detection and previous-day level detection describe different types of liquidity behavior. Depending on the instrument, timeframe, and volatility regime, one source may be more relevant than the other.
Filtering also changes behavior significantly. Tight wick/body requirements or stricter fake-sweep settings will reduce signal frequency. Looser settings will create more events but may also admit weaker structures.
Zones are contextual tools, not standalone trade instructions. Many traders may still want to combine the script with higher-timeframe structure, trend bias, volatility context, or execution rules before making decisions.
As with any chart overlay, visual cleanliness depends on timeframe, market conditions, and user configuration. Different settings may be appropriate for intraday charts versus higher-timeframe swing charts.
Risk Disclosure
This script is for chart analysis and market structure visualization only. It does not provide financial advice, trade recommendations, or guaranteed outcomes. Markets can remain irrational longer than a trap setup appears logical, and any liquidity sweep signal can fail.
Always apply independent judgment, position sizing discipline, and risk management. No single indicator should be used in isolation for live trading decisions.
Pine Script® göstergesi






















