OPEN-SOURCE SCRIPT
Order Block Finder [MHA Finverse]

A comprehensive order block detection indicator that identifies institutional buying and selling zones with advanced volume filtering and King Order Block (KOB) detection.

Key Features
Dual Structure Detection
- Internal Order Blocks: Short-term zones based on 5-bar pivots for precise entries
- Swing Order Blocks: Higher timeframe zones based on 50-bar pivots for major support/resistance levels
- Toggle between structures or display both simultaneously
King Order Block (KOB)

The indicator automatically identifies the order block with the highest volume and marks it as the "King Order Block" - typically the most significant institutional zone that deserves priority attention. You can optionally color-code KOB blocks differently for instant visual recognition.
Intelligent Volume Filtering
Uses ATR or Cumulative Mean Range to filter out low-quality blocks and focus only on institutional-sized moves. This ensures you're trading zones where smart money has left clear footprints.
Volume Metrics Display

Each order block shows its actual volume and percentage contribution, helping you prioritize which zones to trade. Higher volume blocks indicate stronger institutional interest.
Flexible Lookback Periods
Choose from preset trading styles (Scalping: 50 bars, Day Trading: 150 bars, Swing Trading: 400 bars, Position Trading: 750 bars) or set custom lookback periods to match your strategy.
Advanced Mitigation Options
Select between Close or High/Low mitigation methods to control when order blocks are considered invalidated.
King Order Block (KOB)

The King Order Block is the order block with the highest volume among all active blocks on your chart. It represents the zone where the largest institutional activity occurred, making it the most significant level for potential reversals. When multiple order blocks are present, the KOB should be your primary focus as it typically offers higher probability setups. The indicator automatically identifies and marks the KOB with a special label, and you can optionally color-code it differently for instant visual recognition. KOB zones often produce stronger reactions when price returns to test them, allowing for more confident entries with tighter stop losses.
How to Use
1. For Short-Term Trading: Enable Internal Order Blocks to identify quick reversals and entries on lower timeframes.
2. For Position Trading: Enable Swing Order Blocks to find major institutional zones on higher timeframes.
3. Focus on KOB: When multiple blocks appear, prioritize the King Order Block as it represents the highest volume zone.
4. Volume Confirmation: Check the volume metrics - blocks with 30%+ volume contribution are typically stronger zones.
5. Entry Strategy: Wait for price to return to an order block, look for rejection signals (pin bars, engulfing patterns), then enter with stops below/above the block.
6. Adjust Lookback: Match the lookback period to your trading timeframe for optimal block visibility.
Color Themes
- Colored Mode: Distinct colors for bullish/bearish and internal/swing blocks
- Monochrome Mode: Professional grayscale palette for clean charts
Alert System
Comprehensive alerts for:
- Order block creation (internal/swing, bullish/bearish)
- Order block mitigation
- King Order Block events
Perfect for traders who follow Smart Money Concepts (SMC), institutional order flow, and supply/demand zones.
Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice or trading recommendations. Past performance does not guarantee future results. Always conduct your own analysis, use proper risk management, and never risk more than you can afford to lose. Trading involves substantial risk of loss.
Key Features
Dual Structure Detection
- Internal Order Blocks: Short-term zones based on 5-bar pivots for precise entries
- Swing Order Blocks: Higher timeframe zones based on 50-bar pivots for major support/resistance levels
- Toggle between structures or display both simultaneously
King Order Block (KOB)
The indicator automatically identifies the order block with the highest volume and marks it as the "King Order Block" - typically the most significant institutional zone that deserves priority attention. You can optionally color-code KOB blocks differently for instant visual recognition.
Intelligent Volume Filtering
Uses ATR or Cumulative Mean Range to filter out low-quality blocks and focus only on institutional-sized moves. This ensures you're trading zones where smart money has left clear footprints.
Volume Metrics Display
Each order block shows its actual volume and percentage contribution, helping you prioritize which zones to trade. Higher volume blocks indicate stronger institutional interest.
Flexible Lookback Periods
Choose from preset trading styles (Scalping: 50 bars, Day Trading: 150 bars, Swing Trading: 400 bars, Position Trading: 750 bars) or set custom lookback periods to match your strategy.
Advanced Mitigation Options
Select between Close or High/Low mitigation methods to control when order blocks are considered invalidated.
King Order Block (KOB)
The King Order Block is the order block with the highest volume among all active blocks on your chart. It represents the zone where the largest institutional activity occurred, making it the most significant level for potential reversals. When multiple order blocks are present, the KOB should be your primary focus as it typically offers higher probability setups. The indicator automatically identifies and marks the KOB with a special label, and you can optionally color-code it differently for instant visual recognition. KOB zones often produce stronger reactions when price returns to test them, allowing for more confident entries with tighter stop losses.
How to Use
1. For Short-Term Trading: Enable Internal Order Blocks to identify quick reversals and entries on lower timeframes.
2. For Position Trading: Enable Swing Order Blocks to find major institutional zones on higher timeframes.
3. Focus on KOB: When multiple blocks appear, prioritize the King Order Block as it represents the highest volume zone.
4. Volume Confirmation: Check the volume metrics - blocks with 30%+ volume contribution are typically stronger zones.
5. Entry Strategy: Wait for price to return to an order block, look for rejection signals (pin bars, engulfing patterns), then enter with stops below/above the block.
6. Adjust Lookback: Match the lookback period to your trading timeframe for optimal block visibility.
Color Themes
- Colored Mode: Distinct colors for bullish/bearish and internal/swing blocks
- Monochrome Mode: Professional grayscale palette for clean charts
Alert System
Comprehensive alerts for:
- Order block creation (internal/swing, bullish/bearish)
- Order block mitigation
- King Order Block events
Perfect for traders who follow Smart Money Concepts (SMC), institutional order flow, and supply/demand zones.
Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice or trading recommendations. Past performance does not guarantee future results. Always conduct your own analysis, use proper risk management, and never risk more than you can afford to lose. Trading involves substantial risk of loss.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。