OPEN-SOURCE SCRIPT
Cập nhật XRS Order Blocks / Breaker Blocks

XRS Order Blocks / Breaker Blocks is a market-structure tool designed to identify potential bullish and bearish order blocks, track invalidation, and convert broken zones into breaker blocks.
The script uses swing structure to detect order block zones after price breaks a prior swing high or swing low. It includes both a filtered engine and a raw engine, with optional overlap matching to mark stronger dual-engine zones.
Features include:
• Bullish and bearish order block detection
• Breaker block tracking after invalidation
• Dual-engine matching for overlapping zones
• Optional merging of confirmed zones
• ATR-based filtering to reduce oversized zones
• Body or wick-based zone boundaries
• Multiple invalidation modes
• First tap / reaction tracking
• Optional historical broken zones
• Optional 50% consequent encroachment line
• Custom zone colors, fills, and styling
• Alerts for new bullish/bearish order blocks
• Alerts when price enters bullish/bearish order blocks
This indicator is useful for traders who use market structure, order blocks, breaker blocks, liquidity sweeps, failed reactions, and auction-market context. It can help map potential reaction zones, invalidated supply/demand areas, and areas where price may retest prior institutional structure.
The indicator does not provide automatic buy or sell signals. It is designed as a discretionary charting and confluence tool.
Disclaimer: This script is for educational and informational purposes only and does not constitute financial advice. Trading involves risk. Use at your own discretion.
The script uses swing structure to detect order block zones after price breaks a prior swing high or swing low. It includes both a filtered engine and a raw engine, with optional overlap matching to mark stronger dual-engine zones.
Features include:
• Bullish and bearish order block detection
• Breaker block tracking after invalidation
• Dual-engine matching for overlapping zones
• Optional merging of confirmed zones
• ATR-based filtering to reduce oversized zones
• Body or wick-based zone boundaries
• Multiple invalidation modes
• First tap / reaction tracking
• Optional historical broken zones
• Optional 50% consequent encroachment line
• Custom zone colors, fills, and styling
• Alerts for new bullish/bearish order blocks
• Alerts when price enters bullish/bearish order blocks
This indicator is useful for traders who use market structure, order blocks, breaker blocks, liquidity sweeps, failed reactions, and auction-market context. It can help map potential reaction zones, invalidated supply/demand areas, and areas where price may retest prior institutional structure.
The indicator does not provide automatic buy or sell signals. It is designed as a discretionary charting and confluence tool.
Disclaimer: This script is for educational and informational purposes only and does not constitute financial advice. Trading involves risk. Use at your own discretion.
Phát hành các Ghi chú
Updating to fix the preview.Phát hành các Ghi chú
Updated the way the order blocks are detected to avoid the potential for a ghost order block to be created, in rare instances an order block that was not attached to any actual candles would appear. This has been resolved.Phát hành các Ghi chú
Updated the filters to remove oversized order blocks or order blocks / breaker blocks that have been traded inside for too many candles to still produce a meaningful reaction.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.