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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.