Liquidity Sweep Scalper v2 is a scalping strategy that detects liquidity sweeps using Supertrend trend filters, Bollinger Bands for volatility, Williams Fractals for pivots, and MACD momentum.
1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
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
Liquidity Sweep Scalper v2 enters on rejection candle breaks after sweeps and exits via stop loss, Bollinger touches, wicks, or trend flips. The strategy plots arrows and fractal levels on the price chart. It allows shorts and uses percentage-based position sizing. Settings adjust ATR length, band parameters, fractal strength, MACD values, rejection rules, and risk exits.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Supertrend ATR Length
int
10
stAtrLen
Supertrend Factor
float
2.0
stFactor
BB Length
int
20
bbLen
BB StdDev
float
2.0
bbMult
Allow Midline Sweep
bool
true
useBBMid
Allow Outer Band Sweep
bool
true
useBBOuter
Fractal Strength (left/right bars)
int
2
frLen
Require Fractal Pivot Sweep
bool
true
useFrSweep
Use MACD Momentum Filter
bool
true
useMACD
MACD Fast
int
12
macdFast
MACD Slow
int
26
macdSlow
MACD Signal
int
9
macdSignal
Show all 27 settings
Setting
Type
Default
Variable
MACD Opposing Threshold (avoid long if hist < -this, short if hist > +this)
float
0.0
macdOpposingThreshold
Allow Sweep on Prior Bar (rejection on current bar)
bool
true
allowSweepPriorBar
Rejection Candle Min Body % of Range (0 = any)
float
0.0
rejectionMinBodyPct
Stop Loss %
float
0.35
slPct
Setup Expires After N Bars
int
2
setupExpires
Enable Shorts
bool
true
useShorts
Exit on BB Band Touch (upper=longs, lower=shorts)
bool
true
useBBTouchExit
When BB Expanding: Hold Until Band Curve Turns
bool
true
useCurveTurnHold
Exit on Long Wick (rejection = level unlikely to break)
bool
true
useLongWickExit
Long Wick Min % of Bar Range
float
50.0
longWickPct
Max Hold Bars (safety cap)
int
20
maxHoldBars
Exit on Trend Flip (Supertrend)
bool
false
useTrendFlipExit
Show Entry & Exit Arrows
bool
true
showArrows
Show Last Fractal Levels
bool
true
showFractals
Show Bollinger Bands
bool
true
showBB
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.
Box Scalper v4 is a strategy that plots buy and sell signals on the price chart using ADX trend filters, QQE momentum oscillator, and BOX channels. It signals entries based on crossovers and zone conditions, with trailing stop loss and take profit targets. Par
This Pine Script v5 strategy generates buy and sell signals for XAUUSD on the price chart. It combines Stochastic Oscillator, RSI, EMA crossovers and Fibonacci retracements with M15 overbought/oversold triggers and rejection wick filters to identify entries. C
This strategy trades S50 TFEX USDTHB contracts on the price chart. It detects swing highs and swing lows with pivot points to generate long entries on swing highs and short entries on swing lows. The ATR indicator calculates dynamic stop-loss distances while t
This strategy overlays a trend moving average and Supertrend bands directly on the price chart while calculating Stochastic RSI values internally. Long positions trigger when price exceeds the moving average, Supertrend signals bullish momentum, and the StochR
This strategy plots VWMA-based Bollinger bands on the 1-minute ES futures price chart for volatility analysis and potential breakout identification. It calculates dynamic long and short stop loss and take profit levels using percentage inputs relative to entry
This strategy uses multiple VWAP anchors and a custom Lull indicator to generate buy and sell signals on the Nasdaq price chart. It plots the VWAP trend line and three VWAP anchors with customizable colors and mitigation methods. The Lull indicator produces si