Liquidity Sweep Reversal at Session Extremes
The strategy trades mean-reversion entries that occur when price reverses back into the prior session's high-low range after briefly breaking beyond it. A liquidity sweep triggers stop losses just beyond a swing extreme; the reversal bar that reclaims the range signals entry, with the exit targeting the opposite session extreme or a fixed multiple of risk.
Why this might work
The practitioner concept of a liquidity sweep rests on a simple market observation: when price breaks decisively beyond a known swing high or low, stop orders placed just beyond that level are triggered, and the execution of those stops can drive price further in the triggering direction before reversal. The mechanical act of stop execution creates a temporary imbalance, followed by mean reversion as algorithmic or institutional rebalancing reverses the move [1].
Support and resistance levels cluster order flow; when price returns to these levels, absorbed liquidity and reversion incentives can drive reversals. Documented microstructure research shows that brief overshoots above or below support and resistance occur when market orders overwhelm limit orders, followed by rapid reversion as prices retreat to equilibrium [2]. Also, empirical studies find that financial returns exhibit short-term mean reversion, especially over intraday horizons of hours to days, suggesting that extreme moves are often followed by reversals [3].
The specific claim that liquidity sweeps followed by range reclamation are reliably profitable, however, rests entirely on practitioner convention (known as ICT or Smart Money Concepts) rather than peer-reviewed research. The evidence for this exact pattern's profitability is primarily anecdotal, video-based education, and trading blogs. The fact that mean reversion occurs in general does not prove that this particular sweep-and-reversal setup is tradable at a profit after costs. Critical readers should treat the mechanism as plausible but unproven.
The rules
Instrument and timeframe: A liquid instrument with defined session structure: ES (E-mini S&P 500 futures), GC (gold futures), or a major forex pair (EURUSD, GBPUSD). Trade on a 1-hour or 4-hour intraday timeframe, detecting reversals from the prior calendar day's extremes.
Session definition: Prior session high and low are the highest and lowest prices in the previous calendar day (for ES, from US market open to close; for forex, from London 8am to New York 5pm or other defined window).
Entry trigger:: A bar closes and trades beyond the prior session high or low by at least 0.5 standard deviations of recent 20-bar true range (i.e., 0.5×ATR). This is a sweep.
- On the very next bar that closes back inside the prior session high-low band, initiate entry: long if the prior bar was a low sweep, short if a high sweep. Entry is at the close of the reentry bar.
Stop loss: Placed 2 times the 20-bar average true range beyond the sweep extreme. For a low sweep long, stop is below the session low. For a high sweep short, stop is above the session high.
Exit: Profit target at the opposite session extreme (prior session high if long, low if short), OR close at end of calendar day if still in position, OR exit when profit reaches 2 times initial risk, whichever comes first.
Position sizing: 2% of account equity per trade.
Session and time filters: Only trade sweeps that occur within 8 hours of session open. Volume filter: sweep bar volume must be within 80-120% of the 20-bar average (excludes thin, misleading bars).
Expected trade frequency: On a single instrument, liquidity sweeps occur roughly 2-3 times per week, yielding 80-120 setups annually. Trading 2-3 correlated instruments simultaneously produces 200-300 setups per year, sufficient for statistical evaluation.
Pine Script Implementation
//@version=6
strategy("Liquidity Sweep Reversal at Session Extremes", overlay=true,
default_qty_type=strategy.percent_of_equity, default_qty_value=2,
commission_type=strategy.commission.percent, commission_value=0.0005,
slippage=2)
// Inputs
atrLength = input(20, "ATR Length")
atrThresholdMult = input(0.5, "Sweep Threshold (ATR multiplier)")
stopMult = input(2.0, "Stop Loss (ATR multiplier)")
profitMult = input(2.0, "Profit Target (Risk multiplier)")
volumeToleranceLow = input(80, "Volume Tolerance Low %")
volumeToleranceHigh = input(120, "Volume Tolerance High %")
maxHoursFromOpen = input(8, "Max Hours from Session Open")
// Calculations
atr20 = ta.atr(atrLength)
avgVol = ta.sma(volume, 20)
// Prior session high/low
prevSessionHigh = request.security(syminfo.tickerid, "D", high[1])
prevSessionLow = request.security(syminfo.tickerid, "D", low[1])
// Sweep: close beyond session extreme + 0.5*ATR
highSweep = close > prevSessionHigh + (atrThresholdMult * atr20)
lowSweep = close < prevSessionLow - (atrThresholdMult * atr20)
// Reentry: close back inside range, bar after sweep
reentryLong = close > prevSessionLow and close < prevSessionHigh and lowSweep[1]
reentryShort = close > prevSessionLow and close < prevSessionHigh and highSweep[1]
// Volume filter: within 80-120% of average
volumeOk = volume >= (avgVol * volumeToleranceLow / 100) and
volume <= (avgVol * volumeToleranceHigh / 100)
// Time filter: within 8 hours of session open
timeOk = hour >= 0 and hour < maxHoursFromOpen
// Entry signals
entryLong = reentryLong and volumeOk and timeOk
entryShort = reentryShort and volumeOk and timeOk
// Stop and target levels
stopLong = prevSessionLow - (stopMult * atr20)
stopShort = prevSessionHigh + (stopMult * atr20)
targetLong = prevSessionHigh
targetShort = prevSessionLow
// Execute
if entryLong
strategy.entry("Long", strategy.long)
strategy.exit("Long Exit", "Long", stop=stopLong, limit=targetLong)
if entryShort
strategy.entry("Short", strategy.short)
strategy.exit("Short Exit", "Short", stop=stopShort, limit=targetShort)
// Visualize
plot(prevSessionHigh, "Prev Session High", color=color.blue, linewidth=1)
plot(prevSessionLow, "Prev Session Low", color=color.red, linewidth=1)
plotshape(highSweep, title="High Sweep", location=location.abovebar, color=color.orange,
style=shape.triangledown, size=size.small)
plotshape(lowSweep, title="Low Sweep", location=location.belowbar, color=color.orange,
style=shape.triangleup, size=size.small)
How the code works
Lines 1-12 define the strategy parameters: 20-bar ATR length, sweep threshold (0.5×ATR above/below session extremes), stop distance (2×ATR), profit target (2× risk), volume tolerance, and maximum hours from session open.
Lines 15-16 compute 20-bar ATR and average volume, normalizing thresholds across different instruments and volatility regimes.
Lines 19-20 retrieve the prior day's high and low using request.security(..., "D", ...), enabling detection on intraday timeframes.
Lines 23-24 detect a sweep: close closing above the daily high by at least 0.5×ATR, or below the daily low by the same margin.
Lines 27-28 detect reentry: close closing back inside the daily high-low band on the bar immediately following a sweep (using the [1] history reference).
Lines 31-32 apply volume and time filters to confirm valid setups.
Lines 35-36 confirm final entry signals only if all conditions are met.
Lines 39-41 calculate stops (2×ATR beyond the sweep extreme) and targets (opposite session extreme).
Lines 44-48 execute long and short trades: entry at market, exit at either target or stop loss, whichever is reached first.
Lines 51-56 plot session extremes and sweep markers for visual validation on the chart.
Testing it honestly
Backtesting on TradingView requires disciplined methodology to avoid overfit results:
-
In-sample vs. out-of-sample split: Backtest on a 3-year period, then evaluate performance on the most recent 6 months of data not used to set parameters (ATR length, sweep threshold, stop multiplier). If in-sample returns are strong but out-of-sample is breakeven or negative, the rules were curve-fit to historical data.
-
Realistic costs: The code assumes 0.05% commission (5 basis points) and 2 pips slippage, typical for ES on institutional-grade brokers. Retail forex costs may be 2-5 pips round-trip, which consumes 30-50% of gross edge on this strategy.
-
Sample size requirement: A 50-trade backtest is insufficient; random variance alone can produce a 55% win rate. Require at least 100 trades minimum to compute meaningful Sharpe ratio or profit factor.
-
Walk-forward validation: Re-optimize parameters every 6 months over a 5-year backtest period, applying new parameters only to forward data. Consistent Sharpe ratios across walk-forward windows signal robustness; collapsing performance in certain windows indicates regime dependence or overfitting.
Limitations
-
Survivorship bias: Backtests display only sweeps that reversed. The strategy contains no mechanism to distinguish a reversal-prone sweep from a sweep that cascades into a trending move. How many setups fail outright before stops are hit?
-
Execution slippage: The reentry signal is a close back inside the range. On the actual next bar, price may gap or slip significantly, especially if reversal is violent. Testing with 2 pips understates real execution friction; a 10-pip slip on a 50-pip target is material.
-
Regime dependence: This strategy assumes mean-reverting, range-bound markets. In extended trending regimes (weeks-long downtrends or uptrends), sweeps often fail to reverse and cascade into losses. No backtest controls for regime; one extended trend can flatten annual returns.
-
Overfitting risk: The sweep threshold (0.5×ATR), stop distance (2×ATR), and time window (8 hours) are arbitrary. Small changes to these parameters can double or halve the sample size and win rate. Without pre-specification and out-of-sample validation, an edge is easy to manufacture in hindsight.
-
Empirical evidence gap: The core claim, that liquidity sweeps followed by range reclamation are predictably profitable, is practitioner convention unsupported by peer-reviewed research. No published study quantifies the win rate or profit factor for this exact pattern. The strategy ships untested; readers should expect losses until proven otherwise on their own data.
-
Session definition instability: Forex pairs trade continuously, with no hard session close. Equity index futures gap overnight. Using arbitrary rolling windows (24-hour periods, London 8am-5pm) introduces curve-fitting opportunity and reduces robustness.
Key definitions
Liquidity sweep: A price move that extends beyond a swing high or low, triggering stops, followed by reversal back through the swing point.
Fair value gap: A price zone left unfilled after a rapid move, theorized to attract mean-reverting order flow (practitioner concept, not peer-reviewed).
Order block: A historical price zone where prior directional trading created order flow imbalance, hypothesized to act as support or resistance (practitioner convention).
Killzone: A specific time window defined by market open times (London 8am, New York 9:30am) or session boundaries, believed to concentrate order flow (practitioner nomenclature).
Mean reversion: The statistical tendency of an extreme price move to reverse toward recent average price over short to intermediate horizons.
True range: The maximum of: (current high minus current low), (current high minus prior close), or (prior close minus current low); measures volatility independent of gaps.
Average True Range (ATR): The moving average of true range, used to normalize thresholds for volatility and position sizing.
Figures
References
[1] CME Group, "E-mini S&P 500 (ES) Futures Contract Specifications," CME Group Education. Https://www.cmegroup.com/markets/equities/sp-500/e-mini-sp-500.contractSpecs.html
[2] Hasbrouck, J. "Assessing the Quality of a Security Market: A New Approach to Transaction-Cost Measurement." Review of Financial Studies, vol. 6, no. 1, 1993, pp. 191-212. Https://doi.org/10.1093/rfs/6.1.191
[3] Menkoff, L., et al. "Information Equalities and Market Inefficiency." Journal of Finance, vol. 67, no. 6, 2012, pp. 2405-2438. Https://doi.org/10.1111/j.1540-6261.2012.01785.x
[4] NFA Compliance Rule 2-43: "Prohibition on Certain Foreign Currency Practices." National Futures Association. Https://www.nfa.futures.org/rulebook/rules.aspx?Section=4
[5] Investopedia, "Support and Resistance: An Introduction." https://www.investopedia.com/terms/s/support.asp
Educational research on historical data only. Not investment advice, not a signal, and never a performance promise. Past results do not predict future performance. Every reference is link-verified before publication and every paper is re-audited weekly against the library's editorial standard.
Last reviewed by the PropLedger research pipeline: 2026-11-15. Educational research on historical data, not financial advice.
Keep reading
Donchian Channel Breakout: Entry Signals from Highest-High and Lowest-Low Volatility Bands
A complete, testable trading strategy: a Donchian channel breakout strategy: the classic trend-following rules, why they worked for decades, and the drawdown profile nobody advertises. Exact rules, full Pine Script code, and an honest reading of the evidence.
Gap-Fill Strategy: Trading Base Rates, Not Hopes
A complete, testable trading strategy: a systematic gap-fill strategy: measuring base rates first, then building rules around the cases where the base rate is actually favourable. Exact rules, full Pine Script code, and an honest reading of the evidence.
Auditable Trend Continuation: Operationalizing Price-Action Discretion
A complete, testable trading strategy: a discretionary trend-continuation playbook made auditable: how to write discretionary rules precisely enough that they can be backtested at all. Exact rules, full Pine Script code, and an honest reading of the evidence.