Updated

Equal Highs and Lows (EQH / EQL) [TakingProphets]

3 679
OVERVIEW

Equal Highs and Lows (EQH / EQL) [TakingProphets] marks areas where price has left equal highs or equal lows, the resting liquidity that tends to sit above equal highs and below equal lows.

It runs two detections at once. The first catches adjacent candles whose highs or lows match to the tick. The second catches swing highs or lows that land within an adjustable tolerance of one another and cluster into a level. Together they cover both the tight double-tap and the looser structural read.

This indicator does not provide trading signals, entries, or forecasts. It is a visualization aid for studying equal highs and lows within an ICT-style analytical framework.

Equal highs and equal lows are places where price has stalled at the same level more than once, leaving a pool of resting liquidity. This tool automates the detection and marking of those levels so they can be reviewed objectively rather than spotted by hand, and retires each one the moment price trades through it.


TWO DETECTIONS, ONE READ
-----------------------------------------------------------------------------------------------

Most equal high and low tools use a single method. This one combines two:

Exact pairs — two neighboring candles whose highs or lows match to the tick, with no swing-strength requirement. This catches the tight double-tap that a pivot-based test would walk straight past.

Swing clusters — swing highs or lows that fall within the Equality Tolerance of one another are bucketed together and flagged once at least two agree. This is the looser, structural read.

When both have something to show for a given slot, the exact pair wins. Exact pairs fill the per-side budget first, and clusters only top up whatever slots are left, so the stricter signal always takes priority. Levels are drawn nearest price first and retire as soon as price trades through them.


PURPOSE AND SCOPE
-----------------------------------------------------------------------------------------------

The tool serves as a research and study aid to document and analyze equal highs and lows and the liquidity resting at them.

It is commonly used to:

Automate the marking of equal highs and equal lows without manual scanning.

Study how price behaves as it approaches and takes out an equal level.

Review both exact-tick pairs and looser swing-based clusters in one view.

Journal how often equal levels are swept versus hold.

Teach the concept of equal highs and lows and resting liquidity in a mentorship or training context.


LOGIC STRUCTURE
-----------------------------------------------------------------------------------------------

Equal Highs and Lows uses two detection paths that feed a single, nearest-price-first display.

Exact-Equal Detection

Two neighboring candles whose highs or lows match to the tick register an exact level.

This path is evaluated on closed bars so a level cannot appear and then vanish while its candle is still forming.

Swing-Cluster Detection

Swing highs and lows are bucketed by price, and a bucket is flagged as a level once at least two swings agree within the Equality Tolerance.

Each cluster is represented by its most extreme touch, so the drawn level sits at the price that would actually have to be taken out.

Selection and Display

The number of levels kept per side is user controlled, counted separately for highs and lows.

Exact pairs claim slots first; clusters fill what remains.

Overlapping reads are de-duplicated so the same pocket of liquidity is not drawn twice.

Retirement

A level is removed the moment price trades through it. Older, untouched clusters are also pruned over time.


COMPONENTS AND VISUALS
-----------------------------------------------------------------------------------------------

EQH Level — A line marking an equal high above price, labeled EQH.

EQL Level — A line marking an equal low below price, labeled EQL.

Per-Side Control — Independent control over how many equal highs and how many equal lows are shown.


INPUT CATEGORIES
-----------------------------------------------------------------------------------------------

EQH/EQL — Visibility, buyside and sellside colors, how many levels to show per side, line style, label size and visibility, and the Equality Tolerance that governs how close two swings must be to count as equal.


USAGE GUIDELINES
-----------------------------------------------------------------------------------------------

Equal Highs and Lows is suited for the review and documentation of equal levels and resting liquidity.

Recommended educational workflows:

Mark equal highs and lows and review how price reacts as it reaches them.

Compare exact-tick pairs against looser swing clusters to see which the market respects.

Tune the Equality Tolerance per instrument, since indices tolerate a larger value than forex.

Study how often equal levels are swept versus hold.

Teach equal highs and lows and liquidity in mentorship or training sessions.

The tool works across forex, futures, and crypto markets.


OPERATIONAL NOTES AND LIMITATIONS
-----------------------------------------------------------------------------------------------

The Equality Tolerance is measured in price points, not ticks or percent, and should be tuned per instrument.

Exact-pair detection always requires a match to the tick, regardless of the tolerance setting.

Levels are removed as soon as price trades through them.

The per-side setting controls how many levels are shown, not how many are detected.

The lines and labels are visual study aids only.

This tool does not include setups, entries, targets, or alerts.


ORIGINALITY AND ATTRIBUTION
-----------------------------------------------------------------------------------------------

The dual-detection engine is written from scratch in Pine v6, combining an adjacent exact-equal detector evaluated on closed bars with a bucketed swing-cluster detector, a priority system that ranks exact pairs above clusters, tolerance-based de-duplication, nearest-price-first selection, and trade-through retirement.

The concept of equal highs and lows and the liquidity resting at them is publicly taught within ICT-style market education. This implementation was designed and engineered by TakingProphets.


TERMS AND DISCLAIMER
-----------------------------------------------------------------------------------------------

This indicator is for educational and informational use only. It does not provide financial advice or predictive output. Historical patterns do not guarantee future results. All users remain responsible for their own decisions. Use of this script implies agreement with TradingView's Terms of Use.
Release Notes
-Added high timeframe functionality

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.