Indicator · Pine Script v6 · On the chart

SMC Market Structure Indicator

by mrdungx2603

This indicator performs Smart Money Concepts market structure analysis directly on the main price chart.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv6current
Lines of code1,079
Settings40inputs
LicenceNone stated
Last update4 months ago28 Jun 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

SMC Market Structure Indicator detects structural swing points including Higher Highs, Higher Lows, Lower Lows, and Lower Highs, while identifying Break of Structure (BoS) and Change of Character (CHoCH) levels. It also plots Fair Value Gaps, Opening Gaps, and Volume Imbalances with customizable visual settings, accompanied by an onscreen statistical dashboard. Pivot-based detection requires right-bar confirmation, causing structural labels and signals to repaint past bars upon confirmation.

Details

Published by

mrdungx2603 on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

SMC / ICT / price action, Support & resistance, Screeners & dashboards

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)

Settings

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

SettingTypeDefaultVariable
Seed ModestringPivot SeedseedMode
Pivot Length (cho Pivot Seed)int5pivotLength
Hiển Thịbooltrueshow_bos
Tiêu Đề LabelstringBoSbos_title
Kiểu ĐườngstringSolidbos_style
Màu Đường BoS Tăngcolorcolor.bluebos_bull_color
Màu Đường BoS Giảmcolorcolor.redbos_bear_color
Hiển Thịbooltrueshow_choch
Tiêu Đề LabelstringCHoCHchoch_title
Kiểu ĐườngstringDashedchoch_style
Màu Đường CHoCHcolorcolor.orangechoch_color
Hiển Thịbooltrueshow_struct_labels
Show all 40 settings
SettingTypeDefaultVariable
Màu Label Bull (HH/HL)colorcolor.bluebullColor
Màu Label Bear (LL/LH)colorcolor.redbearColor
Hiển Thị Pivot Tạm (HL?/LH?)booltrueshow_temp_pivot
Hiển Thịbooltrueshow_dashboard
Vị TrístringTop Rightdashboard_pos
Hiển Thịbooltrueshow_fvg
Màu FVG Tăngcolor#2157f3bull_fvg_color
Màu FVG Giảmcolor#ff1100bear_fvg_color
Kéo Dài FVG (bars)int0fvg_extend
Hiển Thịbooltrueshow_og
Màu OG Tăngcolor#2157f3bull_og_color
Màu OG Giảmcolor#ff1100bear_og_color
Kéo Dài OG (bars)int0og_extend
Hiển Thịbooltrueshow_vi
Màu VI Tăngcolor#2157f3bull_vi_color
Màu VI Giảmcolor#ff1100bear_vi_color
Kéo Dài VI (bars)int0vi_extend
Lọc Theo Độ Rộng Tối Thiểuboolfalseimb_usewidth
Độ Rộng Tối Thiểufloat0imb_gapwidth
Đơn VịstringPointsimb_width_method
Hiển Thị Dashboardboolfalseshow_imb_dashboard
Vị TrístringBottom Rightimb_dashboard_pos
Kích Thước ChữstringTinyimb_text_size
Hiển Thị OBbooltrueshow_ob
Số OB Active Tối Đaint30max_ob_active
Bộ Lọc OB Đã MitigatedstringAllob_filter_mode
Màu OB Tăng (Demand)color#089981ob_bull_color
Màu OB Giảm (Supply)color#f23645ob_bear_color
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

575 stars

This overlay indicator scans a pasted list of symbols for ICT liquidity sweep patterns using prior swing sweeps. The screening method looks back one, two, or three swings and can list long and short signals in a results table with adjustable rows, position, an

Indicator v5 SMC / ICT / price actionScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Liquidity Sweep Pattern Scanner

Golden Bullet Strategy

by TradersPost
218 stars

The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh

Indicator v6 SMC / ICT / price actionSessions & time
Updated 3 months ago · None stated GitHub repository of Golden Bullet Strategy
56 stars

This indicator identifies fractal-based pivot highs and lows to map out market structure directly on the price chart. It detects bullish and bearish structure breaks, automatically labeling Break of Structure (BOS) and Change of Character (ChoCH) events when p

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Market Structure (Fractal)
53 stars

Apex Trend & Liquidity Master calculates a trend cloud using customizable moving averages expanded by a volatility multiplier directly on the main price chart. It identifies dynamic support and resistance liquidity zones from swing high and low pivots, extendi

Indicator v6 TrendSupport & resistance
Updated 2 months ago · MPL-2.0 GitHub repository of Apex Trend & Liquidity Master
23 stars

MTF State of Delivery tracks lower timeframe and higher timeframe orderflow delivery states by identifying bullish and bearish delivery levels across timeframes. It plots confirmed and pending orderflow lines directly on the price chart and provides an optiona

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 weeks ago · Custom licence GitHub repository of MTF State of Delivery by traderprimez

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