Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Liquidity Sweep Equal Highs Lows - indicator for MetaTrader 5

Cristhian Alexander Gaibor Cuasquer
Cristhian Alexander Gaibor Cuasquer
  • Founder & Systems Engineer at  Xander Pro
  • Ecuador
  • 7838
4.7 (40)
Trader and MQL5 member since 2017.
Views:
49
Rating:
(1)
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Equal highs and equal lows on Gold (XAUUSD) or any symbol are drawn as liquidity lines: two or more confirmed swings that end within a small distance, measured as a fraction of ATR, with no candle between them running the level first. Every new swing at the same price adds a touch to the line.

When a later candle trades beyond the line and closes back inside, the level is marked as swept, the buy side or sell side liquidity was taken and price returned. When the candle closes beyond the line, the level is marked as taken instead, so a real breakout is not confused with a sweep.

Swings are confirmed on closed bars, so the lines appear a few bars after the second swing and do not repaint. A sweep shows where stops were run, it does not say where price goes next. Test it on your symbols before you trade it.

Liquidity Sweep Equal Highs Lows indicator marking equal lows and a buy side liquidity sweep on a XAUUSD M15 chart in MetaTrader 5

Settings

  • Swing length: bars on each side that confirm a swing. Default 3.
  • Tolerance: two swings count as equal when they differ less than this many ATR. Default 0.10.
  • ATR period: default 14.
  • Maximum bars between the two swings: default 100.
  • Bars to scan: history used on load. Default 1500.
  • Show equal highs / equal lows, maximum active levels, maximum swept levels, keep taken levels, colours, line width and font size.
  • Alerts: new equal high or low and sweep, by popup, push and sound.
  • Object prefix: change it to run two copies on one chart.

What it needs

Any symbol, any timeframe, any broker. It only draws lines and labels, it never trades.

Make it yours

Try it on XAUUSD, EURUSD, GBPUSD, US30 and NAS100 on M5, M15 and H1. A tighter tolerance keeps only clean double tops and bottoms, a wider one finds more pools. Liquidity sweeps are the first step of many Smart Money Concepts setups: the sweep, then a change of character, then a return to an order block or a fair value gap. XP_AddSwing builds the levels and XP_CheckSweeps classifies sweep or taken, both ready to reuse as a filter in your own EA.

About this code

Open source. Use it as it is, adapt it, build your own version on top of it.

New versions and new tools are announced first on my MQL5 channel: https://www.mql5.com/en/channels/xander

Questions, suggestions and your own backtests are welcome in the Xander Lab group: https://www.mql5.com/en/messages/02eec85e4364dd01

More tools on my profile: https://www.mql5.com/en/users/09151993a

Provided as is, use at your own risk.

Related

Changelog

  • v1.0 - 2026-11-02 - Initial release
Fair Value Gap Zones Tracker Fair Value Gap Zones Tracker

Fair value gap (FVG) indicator for MT5 on Gold (XAUUSD), forex and indices: three candle gaps on closed bars, ATR size filter, the open part shrinks as price fills it, mitigation by touch, midline or full fill. Open source code.

Ziga-Zaga Lite — рыночная структура по фракталам H1 Ziga-Zaga Lite — рыночная структура по фракталам H1

Структура M5 как при ручной разметке: развороты берутся по фракталам H1, точки ставятся на настоящие экстремумы свечей M5. Волна никогда не проходит мимо экстремума, подтверждённые точки не перерисовываются.

Risk Lot Size Calculator Panel Risk Lot Size Calculator Panel

Lot size calculator panel for MT5 on Gold (XAUUSD), forex and indices: risk in percent of balance, percent of equity or money, stop in points, exact loss per lot, one click Buy or Sell with stop and target. Open source code.

MACD Signals MACD Signals

Indicator edition for new platform.