OPEN-SOURCE SCRIPT

Smart Money Concepts Pro – OB, FVG, Liquidity + Trade Setups

321
This script is a complete Smart Money Concepts (SMC) toolkit designed for traders who want clean and actionable charts without clutter.
It combines the most important institutional concepts into one indicator:

Order Blocks (OB): auto-detection of bullish and bearish order blocks with mitigation tracking, merging and TTL (time-to-live).

Fair Value Gaps (FVG): automatic gap recognition with size filters, mitigation tracking and lifetime control.

Liquidity Pools (EQH/EQL): equal highs and equal lows marked with tolerance (ATR-based or fixed).

Break of Structure (BOS): up/down structure shifts plotted directly on the chart.

Multi-Timeframe (HTF): option to use higher timeframe data (e.g. H4, Daily) for stronger zones.

Trend Filter: show zones only in the direction of market structure.

Trade Setups: automatic signals for OB Retest + Trend setups, with entry, stop-loss and take-profit levels (custom R-R).

Flexible Zone Extension: choose between extending zones to the live bar or fixed box width for a cleaner look when scrolling.

Features

Fully customizable (pivot length, ATR filters, box width, TTL, zone colors)

Separate presets for Scalping, Intraday, Swing trading styles

Visual trade planning with entry/SL/TP lines and optional labels

Works across all markets (crypto, forex, indices, stocks)

How to use

Bias: identify overall direction (BOS + HTF zones).

Wait: for price to return to an unmitigated OB or FVG.

Entry: take the setup signal (OB retest + trend filter).

Risk: stop-loss at opposite OB boundary.

Target: TP based on chosen R-R multiple (default 2R).

⚡ Whether you scalp short-term moves or swing trade HTF zones, this indicator gives you a clear institutional edge in spotting supply/demand imbalances and high-probability setups.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.