Indicator · Pine Script v6 · On the chart

Market Dominance + Liquidity Sweep + OB

by alvinng214

Market Dominance + Liquidity Sweep + OB is an overlay indicator that identifies Smart Money Concepts market structure elements directly on the price chart.

View on GitHub

GitHub stars2on the repository
Pine versionv6current
Lines of code1,054
Settings40inputs
LicenceNone stated
Last update2 months ago5 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 indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

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

Market Dominance + Liquidity Sweep + OB detects market dominance shifts, order blocks, order block touches, and liquidity sweeps based on configurable swing pivot lengths. Signals can be filtered using a long-period exponential moving average and ATR band filters. The indicator features customizable visual toggles for order block boxes, sweep lines, dominance labels, and optional risk-reward trade projections.

Details

Published by

alvinng214 on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

SMC / ICT / price action, Support & resistance, Trend, Volatility & bands

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
Swing Length — Dominance & HTF OBsint5swingLen
Swing Length — OB Touchint5swingLenOB
Swing Length — Liquidity Sweepint5swingLenSweep
EMA Filter Lengthint750emaLen
Enable EMA FilterbooltrueuseEma
Show EMA LinebooltrueshowEma
Apply EMA Filter to Liquidity SweepsbooltrueemaFilterSweep
Apply EMA Filter to OB TouchesbooltrueemaFilterOBTouch
Enable ATR Band FilterboolfalseenableATRFilter
ATR Multiplierfloat10.0atrMult
Show ATR Band LinesboolfalseshowATRBandLines
Show ATR Band FillboolfalseenableATRFill
Show all 40 settings
SettingTypeDefaultVariable
Upper Band Colorcolorcolor.rgb(139,139,139,50)upperBandCol
Lower Band Colorcolorcolor.rgb(139,139,139,50)lowerBandCol
Upper Fill Colorcolorcolor.new(#00bcd4, 90)upperFillCol
Lower Fill Colorcolorcolor.new(#dd326b, 90)lowerFillCol
Show Dominance LabelsbooltrueshowDominance
Show Dominance LinesbooltrueshowDominanceLines
Show Order BlocksbooltrueshowOB
Show Order Block TouchesbooltrueshowOBTouch
OB: Include Wicks (full candle)boolfalseobUseFullCandle
Sweep: Max Candles for Re-entry Confirmation (Sweep LB)int1sweepLookback
Show Liquidity SweepsbooltrueshowSweep
Show Sweep LinesbooltrueshowSweepLines
Show Trade on Chart (OB Touch)boolfalseshowRR
OB Touch SL Buffer (pips beyond spike wick)float10.0rrSlPips
OB Touch Risk:Reward Ratiofloat3.0rrRatio
Enable Breakeven — OB Touch 🔒boolfalseenableBE_OB
Breakeven at RR — OB Touchfloat2.0beRatio_OB
Overlap OB Trades 🔀boolfalseoverlapOBTrades
Show Trade on Chart (Sweep)boolfalseshowSweepRR
Sweep SL Buffer (pips beyond spike wick)float10.0sweepRRSlPips
Sweep Risk:Reward Ratiofloat3.0sweepRRRatio
Enable Breakeven — Sweep 🔒boolfalseenableBE_SW
Breakeven at RR — Sweepfloat2.0beRatio_SW
Overlap Sweep Trades 🔀boolfalseoverlapSWTrades
Show TP/SL Pip LabelsboolfalseshowPipLabels
Show Win Rate TablebooltrueshowTable
UTC Offset (hours)int1utcOffset
Enable Session Filter (exclude trades outside sessions)booltrueuseSessionFilter
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

This indicator detects market accumulation phases and bottom formations over time rather than generating single-point buy signals. It evaluates five scoring components: trend loss, range formation, volatility compression, liquidity behavior, and early bullish

Indicator v6 TrendVolatility & bands
Updated yesterday · MIT GitHub repository of Vein: Accumulation Phase 4H [WavesUnchained]

Imagegpt Test 1

by g-moe
3 stars

Imagegpt Test 1 is a comprehensive chart overlay indicator that plots buy, sell, and reversal signals along with supply and demand zones. It calculates key levels using volume pivots and features integrated Bollinger Bands alongside entry, exit, stop-loss, and

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 5 months ago · None stated GitHub repository of Imagegpt Test 1
575 stars

This indicator detects equal highs and lows by comparing prices within user-defined left and right bars using a tolerance percentage. It plots horizontal lines on the price chart for equal highs in one color and lows in another. A screener allows input of mult

Indicator v5 Support & resistanceTrend
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Equal Highs and Lows with Screener

[RS]Donchian Fans

by ricardosantos79
261 stars

This indicator plots Donchian Channel boundary lines along with dynamic fan projections directly on the price chart. It calculates the highest high, lowest low, and median price over a customizable lookback period. Whenever price establishes a new channel high

Indicator v4 Support & resistanceTrend
Updated 4 years ago · None stated GitHub repository of [RS]Donchian Fans

Dynamic Linear Regression

by TradersPost
218 stars

Dynamic Linear Regression calculates and plots linear regression trendlines and standard deviation channels directly on the price chart over a user-selected time period. Traders can configure static channels locked at the end time, dynamic channels that contin

Indicator v6 TrendSupport & resistance
Updated 3 months ago · None stated GitHub repository of Dynamic Linear Regression

Open Source Fractal

by cantolab
183 stars

This indicator implements the Fractal Model concept to plot market structure shifts, liquidity sweeps, and Change in State of Delivery (CISD) levels. It overlays custom higher-timeframe candle previews, open prices, and time markers directly on the price chart

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · MIT GitHub repository of Open Source Fractal

More indicators

Trade Your Charts With a Regulated Broker

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

Compare brokers