AG Pro Equal High / Equal Low Sweep Engine [AGPro Series]AG Pro Equal High / Equal Low Sweep Engine
Overview / What it does
AG Pro Equal High / Equal Low Sweep Engine is a price-action overlay designed to detect equal highs (EQH) and equal lows (EQL), track the liquidity pools that form around those levels, and highlight sweep events when price briefly trades through them and then closes back with confirmation. The script focuses on one specific market behavior: clustered highs and lows that tend to attract liquidity, followed by rejection-style sweeps that can mark failed continuation attempts, trap conditions, or local reaction points.
Instead of treating every wick through a prior level as equally important, the script separates untouched pools from already swept pools, applies a configurable tolerance model for defining EQH/EQL structures, and adds close-based confirmation logic so users can filter out weaker events. Short liquidity lines, band-style zones, trap labels, and a compact summary panel are used to keep the information visible without turning the chart into a large box-based map.
This tool is built for traders who want a structured view of repeated highs/lows and the liquidity behavior around them. It is not intended to label every possible swing event on the chart. Its purpose is narrower and more deliberate: identify equal-high / equal-low liquidity pools, monitor whether they remain intact or get swept, and display the sweep in a visually organized way.
Unique Edge
The main distinction of this script is that it does not attempt to map all forms of stop runs or all types of liquidity events. It concentrates specifically on EQH/EQL liquidity pools and the sweep lifecycle around those pools. That narrower scope allows the chart objects to remain more readable while still showing useful structure.
The script also distinguishes between untouched and swept states. This matters because a fresh liquidity pool and a previously swept pool do not represent the same chart condition. Untouched pools can still act as active draw-on-liquidity zones, while swept pools become part of recent context and may be interpreted differently depending on the user's framework.
A second differentiator is the combination of equal-pool detection, close confirmation, and optional quality scoring. Equal highs and equal lows are first identified using pivot logic and a user-defined tolerance percentage. Then, when price trades through the pool, the script can require either any wick, a reclaim close, or a stronger rejection close before confirming the sweep. An optional quality bonus can further weight events when relative volume and rejection characteristics are more supportive.
The visual model is also intentionally selective. Instead of using large generalized rectangles across the whole chart, the script uses shorter liquidity lines and band zones tied directly to the detected pool. This keeps the visuals anchored to the detected structure rather than creating broad areas that may overstate precision.
Methodology
1) Equal High / Equal Low Detection
The script uses pivot highs and pivot lows to build candidate swing points. When two highs or two lows form within the user-defined tolerance threshold and within the required bar spacing, they are treated as an equal-high or equal-low liquidity pool. Multiple nearby pools can optionally be merged into a cleaner combined structure.
2) Liquidity Pool Lifecycle
Once a pool is created, it is tracked as active until one of two things happens: it is swept by price, or it expires after its configured lifetime. The script maintains state so pools can be shown as untouched, swept, or removed when they are no longer relevant.
3) Sweep Confirmation
A sweep is not limited to price piercing the level. The script can require:
- Any Wick: any trade-through qualifies.
- Reclaim Close: price must close back through the level after the sweep.
- Strong Rejection: a stricter close-position filter is applied.
This helps users decide how sensitive or selective they want the engine to be.
4) Quality Logic
When enabled, the script calculates a quality score using rejection characteristics, close position, relative volume behavior, pool freshness, and pivot clustering. This is not a predictive score or a probability model. It is a contextual ranking layer intended to help compare sweeps on the same chart.
5) Visual Presentation
The script can draw:
- short horizontal liquidity lines
- band-style EQH/EQL zones
- optional reaction boxes after selected sweeps
- trap labels on confirmed events
- a summary panel showing current pool and sweep status
Signals & Alerts
The script includes alert conditions for:
- new EQH pool detected
- new EQL pool detected
- EQH sweep confirmed
- EQL sweep confirmed
- any sweep confirmed
These alerts are event-based and depend on the current settings used for confirmation and filtering. If stricter filters are selected, the number of confirmed events will naturally decrease.
Key Inputs
Pivot Strength
Controls how swing highs and lows are confirmed. Higher values usually produce fewer, more structurally significant pools.
EQH / EQL Tolerance %
Defines how close two highs or lows must be to qualify as equal. Lower values make the script stricter. Higher values allow broader matching.
Min / Max Bars Between Pivots
Controls the acceptable spacing between the two pivots that define a pool.
Sweep Close Filter
Lets the user choose between wick-only behavior and more selective reclaim/rejection confirmation.
Quality Bonus
Adds an optional scoring bonus when the sweep also shows stronger contextual characteristics.
Liquidity Line / Zone Length
Controls how far the liquidity structures extend on the chart.
Panel and Visual Settings
Allow the user to tune panel position, label size, color theme, and display density for different chart styles and timeframes.
Limitations & Transparency
This script identifies equal highs and equal lows using pivot-based rules and a configurable tolerance model. Because of that, results depend on the chosen settings, the symbol, the timeframe, and the chart's volatility profile.
A confirmed sweep should not be interpreted as a guaranteed reversal or a complete trade setup by itself. In some market conditions, price can sweep a pool and continue in the same direction. In other conditions, a sweep may mark only a short-lived reaction. The script highlights structural events; it does not forecast outcome.
The quality score is a contextual ranking aid, not a performance promise, win-rate estimate, or statistical edge claim. Different users may prefer different thresholds depending on market regime and execution model.
Band zones and reaction areas are visual approximations derived from the detected pool and post-sweep behavior. They are designed to improve chart readability, not to define exact institutional order blocks or guaranteed execution zones.
Risk Disclosure
This script is an analytical charting tool for studying equal-high / equal-low liquidity behavior and sweep confirmation. It does not provide financial advice, investment advice, or trade recommendations. All trading decisions remain the user's responsibility.
Like any technical tool, it should be used with broader market context, risk management, and independent judgment. No indicator can eliminate uncertainty, and past chart behavior does not guarantee future results.
Penunjuk Pine Script®






















