Skip to content
Forex Indicator System Thailand
Back to marketplace
Support and resistanceIndicator

Liquidity Sweep (liquidity sweep markers)

An indicator that draws a line where a candle wick swept past an earlier high or low, plus lines for liquidity not yet swept

Liquidity Sweep (liquidity sweep markers) on an MT5 chart
Example on an MT5 chart

Download the indicator free

Download right away. Nothing to fill in.

Version
1.01
Published
11/21/2026
File size
21 KB

Open source, MIT License, by rpanchyk. See licences

Version history

  1. 1.01Current11/21/2026 · 21 KB

    First release on this site.

How to read it

A dotted green line is a sweep of a high: the wick of one bar pushes above an earlier bar's high, but the candle body does not close above that level. The line runs from the earlier bar to the sweeping bar. A dotted red line is a sweep of a low. A grey line reaching the current bar is a fractal high or low that price has not broken yet, where liquidity may sit.

InpLeftBarsSkip is the number of adjacent bars that are skipped and not counted as a sweep. InpForecastFractalAdjacentBars is the number of bars on each side used to decide that a point is a fractal, and InpForecastBackwardLimit is how many bars back to search. Turn off InpForecastEnabled if you do not want the grey lines. Colours and line style can be adjusted. When a grey line disappears because price broke it, a popup alert can be sent if InpForecastLqSwAlertEnabled is on (off by default).

Calculation runs when a new bar opens and uses nested look-back loops, so the first load can be slow on a chart with a very long history.

Parameters

NameDefaultDescription
InpLeftBarsSkip1Number of adjacent bars to the left that are skipped and not counted as a sweep.
InpHigherLqSwLineColorclrGreenLine colour for sweeps of highs.
InpLowerLqSwLineColorclrRedLine colour for sweeps of lows.
InpLineStyleSTYLE_DOTLine style of the sweep lines.
InpLineWidth1Width of the sweep lines.
InpForecastEnabledtruetrue = show forecast lines for liquidity not yet swept.
InpForecastBackwardLimit1000Maximum number of bars back searched for forecast liquidity.
InpForecastFractalAdjacentBars4Number of bars on each side used to decide that a point is a fractal.
InpForecastHigherLqLineColorclrSilverColour of forecast lines for liquidity above.
InpForecastLowerLqLineColorclrSilverColour of forecast lines for liquidity below.
InpForecastLqSwAlertEnabledfalsetrue = show a popup alert when liquidity on a forecast line has been swept.
InpDebugEnabledfalsetrue = write verbose troubleshooting messages to the Experts tab.

Defaults are the values shipped with the EA, not a recommendation. Results depend on the market and on each account. Past results do not guarantee future results. Trading carries a high risk of loss.

How to install

  1. Download the .ex5 file.
  2. In MT5, choose File > Open Data Folder.
  3. Copy the file into the MQL5\Indicators folder.
  4. Right-click Indicators in the Navigator window and choose Refresh (or restart MT5).
  5. Drag the indicator onto a chart, adjust the Inputs if you like, then click OK.

Description

This indicator finds candles whose wick pushes past the high or low of an earlier candle without the body actually closing beyond it (a liquidity sweep), and draws a dotted line from the original bar to the sweeping bar. Green lines are sweeps of highs, red lines are sweeps of lows (colours and line style can be changed). InpLeftBarsSkip sets how many adjacent bars are skipped and not counted.

The Forecast part (on by default) finds fractal highs and lows that price has not broken yet, where liquidity may sit, and draws a grey line from each to the current bar. When such a line disappears because price swept it, InpForecastLqSwAlertEnabled can send a popup alert.

Sweeps are found from closed bars. The indicator opens no trades and has 4 buffers that an EA can read.

Banners from the Exness partner programme

Exness banner: gold spreads*

FXIDTH is an independent IB partner of Exness. This channel is not owned or operated by Exness.*Spreads may fluctuate and widen due to factors including market volatility, news events, market open/close, and others.*Processing times may vary depending on the chosen payment method.