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 tracks pivot points to label higher highs, higher lows, lower highs, and lower lows, while plotting break of structure and change of character levels. The script also visualizes fair value gaps, opening gaps, and volume imbalances, alongside an on-chart statistical dashboard. Settings allow configuring pivot lengths, seed modes, gap width filters, and visual styles. Because pivot detection requires right-side confirmation bars, structural swing labels plot after the pivot condition confirms.
Break of structure and change of character detection
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ị
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
Độ Trong Suốt OB Active
int
70
ob_transparency
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.
The CISD with Fib/Range Extensions and Stats indicator tracks Change in State of Delivery (CISD) level breakouts on the price chart. It detects pullback structures filtered by ATR and volume conditions, then projects future target levels using customizable Fib
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
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
Indicatorv6SMC / ICT / price actionSessions & time
This indicator tracks smart money market structure directly on the price chart. It calculates dual-period swing highs and swing lows to detect Changes of Character (CHoCH), Breaks of Structure (BOS), inducements, and liquidity sweeps. When structural levels ar
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
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