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 Zones calculates and plots order blocks, fair value gaps, BOS and CHoCH break lines, and optional liquidity sweeps. Users can adjust swing length, ATR parameters for gap sizing, session filters, mitigation rules (touch, midpoint, wick, or close), and display higher timeframe zones. The script draws visual boxes and lines directly on the price chart and offers customizable alert events for new zones, touches, or structural breaks.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Swing strength, bars on each side
int
3
swingLen
ATR period
int
14
atrLen
Draw order blocks
bool
true
showOB
Order block is mitigated when
string
MIT_CLOSE
obMitTxt
Draw fair value gaps
bool
true
showFVG
Minimum gap, x ATR
float
0.20
fvgMin
Gap is mitigated when
string
MIT_WICK
fvgMitTxt
Mark liquidity sweeps
bool
false
showSweeps
Swing looked back, bars
int
60
sweepLook
Wick beyond the swing, min x ATR
float
0.10
sweepMin
Only create zones and sweeps in the session
bool
false
useSession
Session start hour
int
7
sessStart
Show all 31 settings
Setting
Type
Default
Variable
end hour
int
17
sessEnd
Hours are in
string
TZ_NYCLOSE
sessTz
Also draw zones of this timeframe
timeframe
htf
Draw BOS / CHoCH lines
bool
true
showStruct
Keep mitigated zones, up to their mitigation bar
bool
false
showMitigated
Draw zones created within this many bars
int
1000
drawBars
Draw at most this many zones (newest first)
int
80
maxZones
Extend live zones this many bars past the last bar
int
12
extendBars
Fill the zones
bool
true
fillZones
Order block
color
#089981
colOBBull
colOBBear
color
#F23645
colOBBear
Gap
color
#2962FF
colFVGBull
colFVGBear
color
#FF9800
colFVGBear
Higher-timeframe zones
color
#9598A1
colHTF
New order block or gap
bool
true
alNew
Price touches a live zone
bool
true
alTouch
A zone is mitigated
bool
false
alMit
BOS / CHoCH
bool
true
alStruct
Liquidity sweep
bool
false
alSweep
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 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 overlays options gamma-exposure levels, session VWAP bands, and intraday market structure tools directly on the price chart. It provides three modular components: strike walls with standard deviation bands and opening ranges, a gamma regime engi
This indicator detects and draws the first Fair Value Gap (FVG) that forms in each hourly session based on a selected lower timeframe, with specialized handling for Regular Trading Hours (RTH) confluence windows. It draws FVG range boxes, midpoint lines, hourl
This indicator combines six trading tools into a single chart overlay to optimize indicator limits. It calculates Bollinger Bands, projects weekend price boundaries, plots market structure elements like order blocks, breaker blocks, and MSB lines, marks New Yo
This indicator highlights Inner Circle Trader (ICT) killzones and key session pivot points directly on the price chart. It projects shaded boxes for specific trading sessions, including Asia, London, NY AM, NY Lunch, and NY PM, to help traders identify high-li
Indicatorv5SMC / ICT / price actionSessions & time
Bandz Session Ranges + ORG + Opening Prices plots trading session ranges, killzones, opening RTH gaps, standard deviation projections, and key opening prices directly on the price chart. It calculates gap ranges based on prior regular trading hours close sourc