Strategy · Pine Script v6 · On the chart

SMC Strategy

by mrdungx2603

This strategy automates Smart Money Concepts (SMC) trading logic by identifying order blocks, market structure breaks (BOS/CHoCH), fair value gaps, and liquidity imbalances.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code896
Settings31inputs
LicenceNone stated
Last update9 days ago15 Nov 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 strategy, select all of the template text and paste. Press Save and give it a name.
  4. 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 generates entries on order block retests, new order block formations, or structure breaks, filtered by premium and discount pricing zones. Trade exits are managed using risk-to-reward take-profit targets, ATR or swing-point stop losses, trailing stops, and opposite CHoCH signals. All active order blocks and structure zones are plotted directly on the main price chart.

Details

Published by

mrdungx2603 on GitHub

Draws

On the price chart

Markets

Any symbol

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
Lọc Theo Ngàyboolfalseuse_date_filter
Ngày Bắt Đầutimetimestamp("01 Jan 2020")start_date
Ngày Kết Thúctimetimestamp("31 Dec 2026")end_date
Seed ModestringPivot SeedseedMode
Pivot Length (cho Pivot Seed)int5pivotLength
OB Retestbooltrueentry_ob_retest
OB Mới Hình Thànhbooltrueentry_new_ob
BoS/CHoCH + OBboolfalseentry_bos_choch
Lọc Premium/Discount Zonebooltrueuse_zone_filter
Long Chỉ Ở Discount (<50%)booltruelong_in_discount
Short Chỉ Ở Premium (>50%)booltrueshort_in_premium
Hiển Thị OBbooltrueshow_ob
Show all 31 settings
SettingTypeDefaultVariable
Số OB Active Tối Đaint30max_ob_active
Màu OB Tăng (Demand)color#089981ob_bull_color
Màu OB Giảm (Supply)color#f23645ob_bear_color
Độ Trong Suốt OB Activeint70ob_transparency
Phát Hiện FVGbooltrueshow_fvg
Phát Hiện OGbooltrueshow_og
Phát Hiện VIbooltrueshow_vi
Lọc Độ Rộng Tối Thiểuboolfalseimb_usewidth
Độ Rộng Tối Thiểufloat0imb_gapwidth
Đơn VịstringPointsimb_width_method
% Vốn Rủi Ro Mỗi Lệnhfloat2.0risk_percent
Risk:Reward Ratiofloat2.0rr_ratio
Chế Độ SLstringSwing Pointsl_mode
SL: ATR Multiplierfloat1.5sl_atr_mult
SL: ATR Lengthint14sl_atr_length
Dùng Trailing Stopbooltrueuse_trailing
Trail Về HL/LL Mớibooltruetrail_to_hl
Thoát Khi CHoCH Ngượcbooltrueexit_on_choch
Thoát Khi OB Bị Mitigationboolfalseexit_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.

Similar Pine Scripts

Booming Bulls Sniper

by jayadevrana
11 stars

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

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 4 weeks ago · MPL-2.0 GitHub repository of Booming Bulls Sniper
6 stars

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

Strategy v5 BreakoutSMC / ICT / price action
Updated 8 months ago · None stated GitHub repository of Advanced ORB + ICT Strategy
3 stars

This Pine Script v6 strategy isolates and tests market structure events, specifically Break of Structure (BOS) and Change of Character (CHoCH). Using swing points calculated from configurable pivot strength settings, it tracks structural direction and triggers

Strategy v6 SMC / ICT / price actionBreakout
Updated 4 days ago · Apache-2.0 GitHub repository of Parity Probe 02 - CHoCH/BOS Isolator

Unicorn Strategy

by oscar811
3 stars

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

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · None stated GitHub repository of Unicorn Strategy

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

Strategy v6 SMC / ICT / price actionTrend
Updated 3 months ago · Custom licence GitHub repository of Qtus SMC-Sniper AutoTrader v2
1 stars

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

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 4 weeks ago · None stated GitHub repository of CHOCH-Strategy (Structure Only)

More SMC / ICT scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers