Indicator · Pine Script v6 · On the chart

SMC Market Structure Indicator

by mrdungx2603

This indicator identifies Smart Money Concepts market structure directly on the price chart.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code1,099
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 swing points to label higher highs, higher lows, lower lows, and lower highs based on pivot or session seed calculations. The script marks Break of Structure and Change of Character transitions with customizable lines and labels, while identifying Fair Value Gaps, Opening Gaps, and Volume Imbalances. Users can adjust pivot lengths, toggle imbalance extensions, and position an on-chart statistics dashboard. As an analytical overlay, it provides visual mapping without automated trade execution rules.

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, Trend

Markets

Stocks

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

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

Market State Engine classifies the current market into nine states including balance, compression, bull and bear expansion, pullback, exhaustion, and transition. It computes orthogonal axes for structural regime, energy phase, value location relative to adapti

Indicator v6 TrendSupport & resistance Repaints
Updated yesterday · MIT GitHub repository of Market State Engine [WavesUnchained]

Quantum Structure | jjart

by MeridianAlgo
9 stars

This indicator analyzes market structure and identifies key swing highs, swing lows, and consolidation ranges across multiple timeframes. It automatically adapts swing lengths and consolidation thresholds according to chosen profiles for scalping, intraday, or

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · MIT GitHub repository of Quantum Structure | jjart
7 stars

Smart Krypto Futures Daytrade Suite is an all-in-one technical indicator tailored for intraday cryptocurrency trading. It plots higher-timeframe supply and demand zones, Fair Value Gaps with optional mitigation filtering, session VWAP, dynamic moving averages,

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Smart Krypto Futures Daytrade Suite

OT Algo Toolkit

by IAMATOMIC001
3 stars

OT Algo Toolkit is a Smart Money Concepts market structure indicator that plots swing and internal structure transitions, including Break of Structure (BOS) and Change of Character (CHoCH) labels directly on the price chart. It highlights equal highs and lows,

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 12 months ago · None stated GitHub repository of OT Algo Toolkit

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