Strategy · Pine Script v5 · On the chart

Liquidity Sweep Reversal Strategy [Lab]

by mitchell-917

Liquidity Sweep Reversal Strategy [Lab] identifies potential price reversals following liquidity sweeps of previous high or low levels.

View on GitHub

GitHub stars4on the repository
Pine versionv5runs as is
Lines of code134
Settings8inputs
LicenceCustom licence
Last update11 months ago17 Nov 2025

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

A bullish setup occurs when price sweeps below a prior low and closes back inside, while a bearish setup occurs when price sweeps above a prior high and closes inside. The strategy enters trades on swept levels with customizable lookback periods, optional pivot filters, and wick size requirements. Exits are defined by an ATR-based stop loss and a risk-to-reward take profit target. Position sizes are calculated based on equity risk percentage. It plots overlay signals on the main price chart.

Details

Published by

mitchell-917 on GitHub

Type

Strategy, Pine Script v5

Draws

On the price chart

Category

SMC / ICT / price action, Support & resistance, Mean reversion

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Lookback for High Sweepsint10lookbackHigh
Lookback for Low Sweepsint10lookbackLow
Swing Pivot Lengthint2pivotLen
Require Swing High/LowboolfalserequireSwing
Min Wick % of Candle Rangefloat0.10minWickPct
Risk % of Equity per Tradefloat1.0riskPct
Stop Loss ATR Multiplierfloat1.5slAtrMult
Take Profit R:Rfloat2.0tpRR
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

FairValueGap E003

by ruckard
13 stars

Calculates the distance between the current price and the opposite end of the latest fair value gap, entering trades on the expectation that price will partially fill the gap. It incorporates risk management with customizable stop loss, take profit based on ri

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of FairValueGap E003

Wyckoff Phase

by muammeryldrm42
7 stars

This strategy identifies Wyckoff consolidation ranges directly on the price chart to trade potential spring and upthrust events. It calculates highest highs and lowest lows over a customizable lookback period, filtering setups by average volume spikes and ATR

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · MIT GitHub repository of Wyckoff Phase
1 stars

This Pine Script strategy detects ICT smart money concepts including order test zones, fair value gaps, and wicks on BTC and XAUUSD price charts. It calculates swings using pivot high and low. Signals enter long or short when the order test zone is hit with su

Strategy v5 SMC / ICT / price actionCandlestick patterns
Updated 6 months ago · None stated GitHub repository of ICT v4-weinkya BTC Improved
1 stars

This strategy detects liquidity sweep patterns based on pivot high and pivot low levels calculated over configurable left and right bar periods. A bullish sweep occurs when a candle's low pierces below the most recent pivot low while closing back above it, tri

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 5 days ago · Apache-2.0 GitHub repository of PF Probe Liquidity-Sweep-Probe-02-Sweep-Bar

SMC + VWAP Edge Strategy

by StockPro-AI
1 stars

This strategy combines Smart Money Concepts with Order Blocks and Fair Value Gaps alongside multiple VWAP levels including session, weekly, monthly, and anchored variants. It detects confluence zones to generate long and short entry signals on the price chart.

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of SMC + VWAP Edge Strategy
330 stars

This strategy divides a fixed price range between an upper and a lower limit into equally spaced grid levels and plots them on the price chart. It marks a buy when price crosses down through a grid and a sell when price crosses up through a grid, using either

Strategy v5 Support & resistanceMean reversion Repaints
Updated 2 months ago · None stated GitHub repository of Grid Bot Simulator [Alorse]

More strategys

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers