Watch how to download trading robots for free
Find us on Facebook!
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

Smart Liquidity Hunter — Confirmed Swing Sweeps for MT5 - indicator for MetaTrader 5

Views:
13
Rating:
(1)
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Overview

Smart Liquidity Hunter v1.11 is a MetaTrader 5 indicator for identifying price sweeps around previously confirmed swing highs and lows. It uses OHLC prices as a liquidity proxy: it does not read actual resting orders or stop-loss locations, and it does not execute trades.

Signal rules

A bullish signal requires a closed candle to sweep below an eligible swing low and close back above it. A bearish signal requires a sweep above an eligible swing high followed by a close back below it.

The penetration must exceed the larger of the fixed points threshold and the volatility threshold. Volatility is calculated as the simple mean of true ranges from candles preceding the signal candle. The configured wick, closing-position, freshness and optional candle-direction filters must also pass.

Only swings already confirmed before the signal candle are eligible. A candle qualifying in both directions is skipped. The unfinished candle does not receive a signal arrow.

Inputs and defaults

  • SwingStrength = 3: Candles required on each side of a swing point.
  • MaxSwingAge = 100: Maximum distance in bars from the signal candle to an eligible swing.
  • MaxBarsToScan = 1000: Maximum number of closed historical candles calculated.
  • MinSweepPoints = 12: Fixed sweep threshold in symbol points.
  • VolatilityPeriod = 14: Lookback for the simple mean of preceding true ranges.
  • MinSweepVolRatio = 0.10: Mean true range multiplier for the volatility-based sweep threshold.
  • MinWickPercent = 25.0: Minimum rejection wick as a percentage of candle range: lower wick for bullish setups, upper wick for bearish setups.
  • MinCloseLocationPct = 60.0: Minimum closing position measured from the low for bullish setups and from the high for bearish setups. At the default 60, bullish closes must lie within the upper 40% of the range and bearish closes within the lower 40%.
  • RequireFreshLevel = true: Exclude levels previously pierced by an intervening candle.
  • RequireCandleColor = false: When enabled, require close above open for bullish setups and close below open for bearish setups.
  • ShowLiquidityLevels = true: Display eligible swing-high and swing-low levels.
  • ShowDashboard = true: Display the chart information panel.
  • ArrowPaddingPoints = 8: Minimum arrow offset from the candle high or low, in symbol points.
  • ArrowOffsetVolRatio = 0.18: Mean true range multiplier for arrow spacing. The greater of this offset and ArrowPaddingPoints is used.
  • DashboardInstanceId = A: Identifier of 1-40 characters. Each indicator instance on the same chart must use a different ID.
  • DashboardTextColor = clrDodgerBlue: Dashboard text color.
  • AlertPopup = false: Enable popup alerts for new closed-bar signals.
  • AlertSound = false: Play alert.wav for new closed-bar signals.
  • AlertPush = false: Enable push alerts; configure the terminal notification settings before use.
  • DashboardX = 15: Dashboard distance from the chart's left edge, in pixels.
  • DashboardY = 30: Dashboard distance from the chart's top edge, in pixels.

Chart examples

Green arrows mark bullish sweeps below the qualifying closed candle. Red arrows mark bearish sweeps above the qualifying closed candle. Dotted lines show eligible swing-high and swing-low levels.

The dashboard shows the latest eligible levels and most recent signal in the scanned history. A historical screenshot may therefore show an earlier signal than the dashboard's last-signal timestamp.

MT5 EURUSD H1 — bullish sweep example

Figure 1. MT5, EURUSD H1: a historical bullish sweep signal.

MT5 EURUSD H1 — bearish sweep example

Figure 2. MT5, EURUSD H1: a historical bearish sweep signal.

Usage notes

Start with the default inputs. Swing confirmation requires subsequent candles, so a swing is not available immediately when its high or low forms. Historical output depends on inputs, available price history and the calculation window.

Alerts are disabled by default. Initial attachment, history resets and catch-up batches do not trigger historical alerts. For multiple instances, use distinct DashboardInstanceId values, such as A and B, and different DashboardY positions.

Version 1.11

Dashboard object names now remain stable across profile reloads, preventing duplicate labels. Signal calculations are unchanged. A marked sweep does not establish that a reversal will follow.

MZ Smart Trail Manager - Break-even, Stepped Trailing Stop and Profit Lock MZ Smart Trail Manager - Break-even, Stepped Trailing Stop and Profit Lock

Trade manager for MT5: break-even, stepped trailing stop and progressive profit lock. Works with manual trades or any EA. Distances in ATR, so it fits any symbol. Bilingual panel (EN/AR).

Daily Open Line with Distance in Points Daily Open Line with Distance in Points

Draws the daily open price as a horizontal line and shows, in points, how far the current price is from today's open. The label changes color depending on whether the price is above or below the open.

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

MACD Signals MACD Signals

Indicator edition for new platform.