Strategy · Pine Script v6 · On the chart

SMC Strategy

by mrdungx2603

This Smart Money Concepts (SMC) strategy identifies market structure, order blocks, imbalances, and premium or discount zones directly on the price chart.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code896
Settings31inputs
LicenceNone stated
Last update4 months ago28 Jun 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 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.

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

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 7 months ago · None stated GitHub repository of Advanced ORB + ICT Strategy

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 2 months ago · Custom licence GitHub repository of Qtus SMC-Sniper AutoTrader v2

Booming Bulls Sniper

by jayadevrana
1 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 days ago · MPL-2.0 GitHub repository of Booming Bulls Sniper
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 days ago · None stated GitHub repository of CHOCH-Strategy (Structure Only)

ORB + ICT Backtest Strategy v2

by mccallister-dev
1 stars

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

Strategy v6 BreakoutSMC / ICT / price action
Updated 5 weeks ago · None stated GitHub repository of ORB + ICT Backtest Strategy v2

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