OPEN-SOURCE SCRIPT
Relevant Order Blocks Detector (BOS + Displacement)

This indicator is designed to identify only the most relevant Order Blocks, filtering out market noise and low-quality zones.
It detects Order Blocks based on real Break of Structure (BOS) combined with strong displacement, ensuring that each marked zone represents institutional activity rather than random price movement.
A Bullish Order Block is formed when the last bearish candle before a strong bullish impulse breaks the previous structure high.
A Bearish Order Block is formed when the last bullish candle before a strong bearish impulse breaks the previous structure low.
Only Order Blocks that meet strict strength and structure conditions are displayed, making the indicator ideal for scalping, intraday trading, and CRT-based strategies.
Key Features:
Break of Structure (BOS) confirmation
Strong impulse (displacement) filter
Noise reduction (high-quality OBs only)
Clean and minimal chart visualization
Suitable for 5m, 15m, and 1H timeframes
This tool is best used in confluence with liquidity sweeps, FVGs, and session timing rather than as a standalone signal.
It detects Order Blocks based on real Break of Structure (BOS) combined with strong displacement, ensuring that each marked zone represents institutional activity rather than random price movement.
A Bullish Order Block is formed when the last bearish candle before a strong bullish impulse breaks the previous structure high.
A Bearish Order Block is formed when the last bullish candle before a strong bearish impulse breaks the previous structure low.
Only Order Blocks that meet strict strength and structure conditions are displayed, making the indicator ideal for scalping, intraday trading, and CRT-based strategies.
Key Features:
Break of Structure (BOS) confirmation
Strong impulse (displacement) filter
Noise reduction (high-quality OBs only)
Clean and minimal chart visualization
Suitable for 5m, 15m, and 1H timeframes
This tool is best used in confluence with liquidity sweeps, FVGs, and session timing rather than as a standalone signal.
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.