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 indicator, select all of the template text and paste. Press Save and give it a name.
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.
Market structure swing point detection
Break of Structure and Change of Character mapping
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Seed Mode
string
Pivot Seed
seedMode
Pivot Length (cho Pivot Seed)
int
5
pivotLength
Hiển Thị
bool
true
show_bos
Tiêu Đề Label
string
BoS
bos_title
Kiểu Đường
string
Solid
bos_style
Màu Đường BoS Tăng
color
color.blue
bos_bull_color
Màu Đường BoS Giảm
color
color.red
bos_bear_color
Hiển Thị
bool
true
show_choch
Tiêu Đề Label
string
CHoCH
choch_title
Kiểu Đường
string
Dashed
choch_style
Màu Đường CHoCH
color
color.orange
choch_color
Hiển Thị
bool
true
show_struct_labels
Show all 40 settings
Setting
Type
Default
Variable
Màu Label Bull (HH/HL)
color
color.blue
bullColor
Màu Label Bear (LL/LH)
color
color.red
bearColor
Hiển Thị Pivot Tạm (HL?/LH?)
bool
true
show_temp_pivot
Hiển Thị
bool
true
show_dashboard
Vị Trí
string
Top Right
dashboard_pos
Hiển Thị
bool
true
show_fvg
Màu FVG Tăng
color
#2157f3
bull_fvg_color
Màu FVG Giảm
color
#ff1100
bear_fvg_color
Kéo Dài FVG (bars)
int
0
fvg_extend
Hiển Thị
bool
true
show_og
Màu OG Tăng
color
#2157f3
bull_og_color
Màu OG Giảm
color
#ff1100
bear_og_color
Kéo Dài OG (bars)
int
0
og_extend
Hiển Thị
bool
true
show_vi
Màu VI Tăng
color
#2157f3
bull_vi_color
Màu VI Giảm
color
#ff1100
bear_vi_color
Kéo Dài VI (bars)
int
0
vi_extend
Lọc Theo Độ Rộng Tối Thiểu
bool
false
imb_usewidth
Độ Rộng Tối Thiểu
float
0
imb_gapwidth
Đơn Vị
string
Points
imb_width_method
Hiển Thị Dashboard
bool
false
show_imb_dashboard
Vị Trí
string
Bottom Right
imb_dashboard_pos
Kích Thước Chữ
string
Tiny
imb_text_size
Hiển Thị OB
bool
true
show_ob
Số OB Active Tối Đa
int
30
max_ob_active
Bộ Lọc OB Đã Mitigated
string
All
ob_filter_mode
Màu OB Tăng (Demand)
color
#089981
ob_bull_color
Màu OB Giảm (Supply)
color
#f23645
ob_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.
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
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
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
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,
This indicator plots Smart Money Concepts (SMC) elements directly on the price chart, including higher-timeframe structure breaks, order blocks, and fair value gaps (FVGs). It uses an inducement filter to validate market structure shifts alongside expected hig
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,