This Smart Money Concepts (SMC) strategy identifies market structure, order blocks, imbalances, and premium or discount zones directly on the price chart.
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 strategy, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.
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 Strategy executes long trades in discount zones and short trades in premium zones based on order block retests, new order blocks, or break of structure signals. Risk is managed using fixed risk percentages, configurable risk-to-reward ratios, stop losses anchored to swing points or ATR multipliers, and optional trailing stops or opposite structure exits. Settings allow customization of entry triggers, zone filtering, risk parameters, and visuals.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Lọc Theo Ngày
bool
false
use_date_filter
Ngày Bắt Đầu
time
timestamp("01 Jan 2020")
start_date
Ngày Kết Thúc
time
timestamp("31 Dec 2026")
end_date
Seed Mode
string
Pivot Seed
seedMode
Pivot Length (cho Pivot Seed)
int
5
pivotLength
OB Retest
bool
true
entry_ob_retest
OB Mới Hình Thành
bool
true
entry_new_ob
BoS/CHoCH + OB
bool
false
entry_bos_choch
Lọc Premium/Discount Zone
bool
true
use_zone_filter
Long Chỉ Ở Discount (<50%)
bool
true
long_in_discount
Short Chỉ Ở Premium (>50%)
bool
true
short_in_premium
Hiển Thị OB
bool
true
show_ob
Show all 31 settings
Setting
Type
Default
Variable
Số OB Active Tối Đa
int
30
max_ob_active
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
Phát Hiện FVG
bool
true
show_fvg
Phát Hiện OG
bool
true
show_og
Phát Hiện VI
bool
true
show_vi
Lọc Độ 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
% Vốn Rủi Ro Mỗi Lệnh
float
2.0
risk_percent
Risk:Reward Ratio
float
2.0
rr_ratio
Chế Độ SL
string
Swing Point
sl_mode
SL: ATR Multiplier
float
1.5
sl_atr_mult
SL: ATR Length
int
14
sl_atr_length
Dùng Trailing Stop
bool
true
use_trailing
Trail Về HL/LL Mới
bool
true
trail_to_hl
Thoát Khi CHoCH Ngược
bool
true
exit_on_choch
Thoát Khi OB Bị Mitigation
bool
false
exit_on_ob_mit
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.
This strategy combines Opening Range Breakout (ORB) mechanics with Inner Circle Trader (ICT) concepts like Fair Value Gaps, Order Blocks, and liquidity grabs. It identifies session opening ranges and generates signals when price breaks out with supporting rela
This overlay strategy marks market-structure swings and breaker blocks on the price chart. It can limit a breaker to the candle body, use one or two candles in the same direction, and stop the block at the first break of its center line. Entries can be restric
Qtus SMC-Sniper AutoTrader v2 is an automated trading strategy plotted on the price chart that combines Smart Money Concepts (SMC), ICT frameworks, price action patterns, and technical indicators into a multi-factor scoring engine. It enters long or short posi
Implements liquidity sweep and prop firm breakout strategies inspired by the Booming Bulls methodology. The script monitors previous-day, previous-week, and current-day highs and lows for liquidity sweeps where price wicks beyond a level without closing past i
This strategy plots market structure on the price chart from confirmed swing highs and lows and flags breaks of those levels. Breaks can use the wick or the close, and structure logic can stay standard or include sweeps. ChoCH mode selects Ping, Verify, or bot
This strategy defines opening range breakouts within Asian, London and New York sessions using ATR-based width and buffer filters. It identifies potential entries on breakout after a retest followed by continuation, applying ICT-style context and SMC proxies f