Strategy · Pine Script v6 · On the chart

XAUUSD LiqSweep+MSS+VP System

by MuthuvelMukesh

This intraday strategy executes trades on gold (XAUUSD) 5-minute charts using 15-minute higher-timeframe bias.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code1,910
Settings40inputs
LicenceNone stated
Last update8 weeks ago31 Aug 2026

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

XAUUSD LiqSweep+MSS+VP System identifies key liquidity levels—such as previous day highs and lows, session levels, swings, and equal highs or lows—and waits for confirmed liquidity sweeps. Following a sweep, it tracks market structure shifts (MSS) and displacement, executing long or short entries upon volume profile retests. Exits utilize configurable structural or ATR stop losses, take-profit targets, or session-end closes. Visuals plot liquidity lines, session backgrounds, and an on-chart status dashboard.

Details

Published by

MuthuvelMukesh on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

SMC / ICT / price action, Support & resistance, Volume, Sessions & time

Markets

Gold

Timeframes

M15-H1

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
HTF Context Timeframetimeframe15i_htfTF
ATR Lengthint14i_atrLen
Show Timeframe Warningbooltruei_showTFWarning
NY Session Start (HHMM)string0930i_nyStart
NY Session End (HHMM)string1600i_nyEnd
London Start (HHMM ET)string0300i_lonStart
London End (HHMM ET)string1200i_lonEnd
Asia Start (HHMM ET)string2000i_asiaStart
Asia End (HHMM ET)string0400i_asiaEnd
TimezonestringAmerica/New_Yorki_tz
Trade NY Sessionbooltruei_useNY
Trade London Sessionboolfalsei_useLondon
Show all 40 settings
SettingTypeDefaultVariable
Trade Asia Sessionboolfalsei_useAsia
Close Positions at Session Endbooltruei_sessionClose
HTF Swing Lengthint5i_htfSwingLen
Bias Lookback (# swings)int4i_htfBiasLookback
Require HTF Bias Alignmentbooltruei_requireHTFBias
Liquidity Swing Lengthint5i_liqSwingLen
Equal H/L Tolerance (×ATR)float0.15i_eqTolATR
Max Tracked Levelsint20i_maxLiqLevels
Track PDH/PDLbooltruei_usePDHL
Track Session H/Lbooltruei_useSessionHL
Track Swing H/Lbooltruei_useSwingHL
Track Equal H/Lbooltruei_useEqualHL
Min Sweep Distance (×ATR)float0.1i_minSweepATR
Max Sweep Distance (×ATR)float3.0i_maxSweepATR
Require Price Reclaimbooltruei_sweepReclaim
Min Wick Ratiofloat0.3i_minWickRatio
MSS Swing Lengthint3i_mssSwingLen
Min Break Distance (×ATR)float0.2i_mssMinBreak
Require Close Confirmationbooltruei_mssCloseConf
MSS Timeout (bars)int15i_mssTimeout
Require Displacementbooltruei_requireDisp
Body Size (×ATR)float0.8i_dispBodyATR
Min Body/Range Ratiofloat0.55i_dispBodyRatio
Enable Volume Profilebooltruei_enableVP
VP Bucket Countint30i_vpBuckets
Value Area (%)float70.0i_vpVAPct
Range Buffer (%)float0.5i_vpRangeBuf
HVN Threshold (×avg)float1.5i_hvnMult
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

Daily Bias + FVG Strategy

by TradersPost
218 stars

This overlay strategy plots previous-day high and low, the daily open, and fair value gap zones on the price chart. It takes entries on a selectable timeframe when the FVG requirement and an optional session window allow them, then uses an ATR or fixed pip sto

Strategy v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Daily Bias + FVG Strategy

P404 Smoke

by Musyimi97
16 stars

P404 Smoke is a price-chart strategy that sequences an optional higher-timeframe EMA bias, a liquidity range from recent pivots, a sweep of buy-side or sell-side liquidity, and a market structure shift within a set bar window. Comments state it then looks for

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · MIT GitHub repository of P404 Smoke

NQ 9:45-10:15 ICT Strategy

by eddiebelaval
7 stars

This ICT-based strategy trades during the 9:45 AM to 10:15 AM New York session window. It calculates a daily bias using a 20-period daily EMA and tracks previous day highs and lows to identify liquidity sweeps. The script refines order block entry levels and m

Strategy v6 SMC / ICT / price actionSessions & time Repaints
Updated 3 months ago · None stated GitHub repository of NQ 9:45-10:15 ICT Strategy

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
6 stars

This strategy combines Opening Range Breakout (ORB) mechanics with Inner Circle Trader (ICT) concepts like Fair Value Gaps, Order Blocks, and liquidity grabs. It identifies session opening ranges and generates signals when price breaks out with supporting rela

Strategy v5 BreakoutSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of Advanced ORB + ICT Strategy

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