OPEN-SOURCE SCRIPT
已更新

Equal & Relative Equal Highs/Lows

374
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.



版本注释
Increased relative tick max levels to 60, to incorporate relative equal highs/lows for higher timeframe levels (Monthly, Weekly, Daily, 4h)

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。