OPEN-SOURCE SCRIPT
Aggiornato Equal & Relative Equal Highs/Lows

This indicator plots horizontal lines between equal highs and lows and relative equal highs and lows.
This tool is ideal for spotting equal & relative highs/lows (a classic price action concept), swing failure patterns, support/resistance zones based on liquidity, and areas where the market has previously shown equilibrium.
Price tends to create these highs and lows, as a zone of liquidity in which price will return to and sweep similar to the devils mark concept.
Key Features
--------------------
- Equal Lows (default: white lines) – Connects the current bar's low with the most recent prior low that matches it.
- Equal Highs (default: yellow lines) – Connects the current bar's high with the most recent prior high that matches it.
- Two Matching Modes:
-- Exact – Requires identical price levels.
-- Relative – Allows tolerance in ticks (1–3 ticks) for near-equal levels.
Conditions
-------------------
- Lines are drawn only when no lower low (for lows) or higher high (for highs) has occurred between the two matching bars — ensuring the level remains relevant.
- Lines are automatically removed once price sweeps through them (price closes below an equal-low line or above an equal-high line).
Settings
-------------------
- Max bars between equal levels – How far back to search for matching highs/lows (default 500).
- Max stored lines (per side) – Limits memory usage and clutter (default 100).
- Equal level matching – Exact or Relative mode.
- Relative tolerance (ticks) – Adjustable precision in Relative mode.
- Line colors & width – Fully customizable.
This tool is ideal for spotting equal & relative highs/lows (a classic price action concept), swing failure patterns, support/resistance zones based on liquidity, and areas where the market has previously shown equilibrium.
Price tends to create these highs and lows, as a zone of liquidity in which price will return to and sweep similar to the devils mark concept.
Key Features
--------------------
- Equal Lows (default: white lines) – Connects the current bar's low with the most recent prior low that matches it.
- Equal Highs (default: yellow lines) – Connects the current bar's high with the most recent prior high that matches it.
- Two Matching Modes:
-- Exact – Requires identical price levels.
-- Relative – Allows tolerance in ticks (1–3 ticks) for near-equal levels.
Conditions
-------------------
- Lines are drawn only when no lower low (for lows) or higher high (for highs) has occurred between the two matching bars — ensuring the level remains relevant.
- Lines are automatically removed once price sweeps through them (price closes below an equal-low line or above an equal-high line).
Settings
-------------------
- Max bars between equal levels – How far back to search for matching highs/lows (default 500).
- Max stored lines (per side) – Limits memory usage and clutter (default 100).
- Equal level matching – Exact or Relative mode.
- Relative tolerance (ticks) – Adjustable precision in Relative mode.
- Line colors & width – Fully customizable.
Note di rilascio
Increased relative tick max levels to 60, to incorporate relative equal highs/lows for higher timeframe levels (Monthly, Weekly, Daily, 4h)Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.