OPEN-SOURCE SCRIPT
تم تحديثه 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.
ملاحظات الأخبار
Increased relative tick max levels to 60, to incorporate relative equal highs/lows for higher timeframe levels (Monthly, Weekly, Daily, 4h)نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.