OPEN-SOURCE SCRIPT
Order Blocks — Smart Mitigation & OB Labels (SMC/ICT)

Order Blocks — Smart Mitigation & OB Labels (SMC/ICT) — TradingATH
Precision. Stability. Execution.
This refined indicator automatically detects and draws bullish and bearish Order Blocks, perfectly anchored to the candle that created them. Each zone remains fixed, never drifting as you move the chart, ensuring absolute spatial accuracy.
ATR-based filters remove insignificant blocks, and optional live extensions allow active OBs to project forward until price delivers mitigation.
What You’ll See
Features
Perfect For
Recommended Settings
In Short
Clean structure. Absolute precision. Professional delivery.
Order Blocks — Smart Mitigation & OB Labels (SMC/ICT) provides a stable, disciplined visualization of institutional order flow — designed for traders who demand both accuracy and aesthetic refinement.
Created by: TradingATH
Precision. Stability. Execution.
This refined indicator automatically detects and draws bullish and bearish Order Blocks, perfectly anchored to the candle that created them. Each zone remains fixed, never drifting as you move the chart, ensuring absolute spatial accuracy.
ATR-based filters remove insignificant blocks, and optional live extensions allow active OBs to project forward until price delivers mitigation.
What You’ll See
- Bullish Order Blocks in subtle green tones, with a fine mid-line and a small label reading “Bullish OB (Order Block)”.
- Bearish Order Blocks in elegant red tones, equally marked and labeled.
- Compact, controlled-length zones extending only for the defined number of bars.
- Optional dynamic extension for unmitigated blocks until price returns.
- Real-time alerts when price enters the most recent bullish or bearish OB.
Features
- True anchoring: OBs are plotted in absolute time coordinates, fixed to the original source candle. No drift.
- Custom length control: Adjust each block’s horizontal reach by number of bars.
- ATR-based filters: Define minimum and maximum OB size (in multiples of ATR) to maintain clean and relevant zones.
- Smart mitigation logic: Choose between “Wick” or “Close” for OB validation; mitigated blocks are automatically removed.
- Elegant labeling: Minimalistic text inside each block, positionable in any corner for optimal readability.
- Advanced alerts: Automated signals for new OB formation and price entry into the latest block.
- Professional architecture: Size-safe arrays, optimized rendering, and zero performance waste.
- ICT/SMC ready: Fully compatible with advanced concepts such as Fair Value Gaps, Liquidity Sweeps, and Session Timing.
Perfect For
- Traders applying ICT or Smart Money Concepts who require precise OB identification and mitigation tracking.
- Intraday traders seeking clarity and efficiency on fast-moving charts.
- Swing traders filtering premium-quality OBs based on volatility structure.
Recommended Settings
- OB Length: 10 bars (adjust to timeframe and volatility).
- Label position: Bottom-Right for most clarity.
- Mitigation method: “Wick” for flexible precision; “Close” for stricter validation.
- ATR filter: Minimum 0.25×, Maximum 3× (balanced range for most assets).
In Short
Clean structure. Absolute precision. Professional delivery.
Order Blocks — Smart Mitigation & OB Labels (SMC/ICT) provides a stable, disciplined visualization of institutional order flow — designed for traders who demand both accuracy and aesthetic refinement.
Created by: TradingATH
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.