OPEN-SOURCE SCRIPT
Order Blocks by @numberxbt

Overview
This indicator automatically detects and plots Bullish and Bearish Order Blocks based on SMC and ICT principles. It helps traders identify high probability naked supply and demand zones, tracks their mitigation status, and automatically removes invalidated zones to keep your chart clean.

Key features
Settings
How it works
The indicator uses a classic 3-candle sequence to define institutional footprints:
Note: This indicator focuses purely on Order Blocks. Breaker blocks and other complex features have been removed to provide a clean, lightweight, and highly focused trading tool.
Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice. Trading involves risk, and past performance is not indicative of future results. Always do your own research and manage your risk accordingly.
This indicator automatically detects and plots Bullish and Bearish Order Blocks based on SMC and ICT principles. It helps traders identify high probability naked supply and demand zones, tracks their mitigation status, and automatically removes invalidated zones to keep your chart clean.
Key features
- Automatic detection - Instantly identifies valid bullish and bearish order blocks based on a strict 3-candle displacement pattern.
- Auto Invalidation - Automatically deletes order blocks if the price closes completely through them.
- Equilibrium Midlines - Optional 50% midlines drawn through the center of each order block for precise, sniper-like entries.
- Chart Clutter Control - Configurable limits on the maximum number of unmitigated and mitigated zones displayed.
- Mitigation Tracking - Monitors price action to track when an order block has been tapped (mitigated).
Settings
- Show Bull/Bear OB: Toggle the visibility of Bullish (Demand) and Bearish (Supply) Order Blocks.
- Colors: Customize the background transparency and border colors for both Bullish and Bearish zones.
- Hide Mitigated: Check these boxes to automatically hide Order Blocks once they have been tapped, keeping your chart focused only on fresh zones.
- Max Unmitigated / Max Mitigated: Set the maximum number of active and mitigated zones allowed on the chart. Older zones will be deleted once the limit is reached.
- Show Midline: Toggles the 50% equilibrium line inside the Order Blocks.
How it works
The indicator uses a classic 3-candle sequence to define institutional footprints:
- Bullish Order Block: Formed by a bearish candle, followed by a bullish candle, followed by a strong bullish continuation. The zone is drawn over the initial bearish candle.
- Bearish Order Block: Formed by a bullish candle, followed by a bearish candle, followed by a strong bearish continuation. The zone is drawn over the initial bullish candle.
Note: This indicator focuses purely on Order Blocks. Breaker blocks and other complex features have been removed to provide a clean, lightweight, and highly focused trading tool.
Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice. Trading involves risk, and past performance is not indicative of future results. Always do your own research and manage your risk accordingly.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。