OPEN-SOURCE SCRIPT
Smart Money Concepts SMC

Smart Money Concepts (SMC) — Precision Edition
A comprehensive Smart Money Concepts indicator built for Indian markets, designed to identify institutional order flow through market structure, order blocks, and fair value gaps — with zero clutter.
Market Structure
Automatically detects and labels Break of Structure (BOS), Change of Character (CHoCH), and Market Structure Shift (MSS) using pivot-based swing detection. MSS signals are filtered by ATR-based displacement to
ensure only genuine momentum shifts are marked, reducing false signals.
Auto Swing Length
The swing detection length adjusts automatically when you change timeframes — no manual tuning required. Each timeframe uses a calibrated value optimised for clean, accurate structure detection. You can override
it manually at any time from the settings.
Order Blocks
Marks the last significant opposing candle before each structural break as an Order Block. A minimum body size filter (0.4× ATR) ensures only meaningful institutional candles are highlighted — eliminating tiny,
irrelevant candles that create noise. Mitigated Order Blocks vanish automatically the moment price trades through them, keeping the chart clean at all times. Each active OB is clearly labelled as Bull OB or Bear
OB.
Fair Value Gaps
Detects and highlights bullish and bearish imbalances between candles. FVGs are removed once price fills or touches them, depending on your mitigation preference.
Previous High / Low
Plots the previous session's high and low from any higher timeframe of your choice. Defaults to Daily, giving you immediate reference to key overnight levels.
Session Highlighter
Optionally highlights your custom trading session. Pre-configured for Indian market hours — 9:15 AM to 3:30 PM IST — out of the box.
Settings
All inputs are grouped and labelled clearly. Zone transparency, label size, and colours for bullish, bearish, BOS, CHoCH, and MSS are all fully customisable.
A comprehensive Smart Money Concepts indicator built for Indian markets, designed to identify institutional order flow through market structure, order blocks, and fair value gaps — with zero clutter.
Market Structure
Automatically detects and labels Break of Structure (BOS), Change of Character (CHoCH), and Market Structure Shift (MSS) using pivot-based swing detection. MSS signals are filtered by ATR-based displacement to
ensure only genuine momentum shifts are marked, reducing false signals.
Auto Swing Length
The swing detection length adjusts automatically when you change timeframes — no manual tuning required. Each timeframe uses a calibrated value optimised for clean, accurate structure detection. You can override
it manually at any time from the settings.
Order Blocks
Marks the last significant opposing candle before each structural break as an Order Block. A minimum body size filter (0.4× ATR) ensures only meaningful institutional candles are highlighted — eliminating tiny,
irrelevant candles that create noise. Mitigated Order Blocks vanish automatically the moment price trades through them, keeping the chart clean at all times. Each active OB is clearly labelled as Bull OB or Bear
OB.
Fair Value Gaps
Detects and highlights bullish and bearish imbalances between candles. FVGs are removed once price fills or touches them, depending on your mitigation preference.
Previous High / Low
Plots the previous session's high and low from any higher timeframe of your choice. Defaults to Daily, giving you immediate reference to key overnight levels.
Session Highlighter
Optionally highlights your custom trading session. Pre-configured for Indian market hours — 9:15 AM to 3:30 PM IST — out of the box.
Settings
All inputs are grouped and labelled clearly. Zone transparency, label size, and colours for bullish, bearish, BOS, CHoCH, and MSS are all fully customisable.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.