OPEN-SOURCE SCRIPT
Order Block Finder [MHA Finverse]

Order Block Finder is a sophisticated Smart Money Concepts (SMC) tool designed to identify and visualize institutional order blocks on your charts. This indicator helps traders spot key areas where smart money has placed their orders, providing valuable insights for potential support and resistance zones.
What are Order Blocks?
Order blocks are price zones where institutional traders have placed significant orders. This indicator identifies these zones by detecting pivot points in price action and tracking structural breaks in both internal (short-term) and swing (long-term) timeframes.

Key Features:
• Dual Structure Analysis

- Internal Order Blocks: Fast-moving blocks based on 5-bar pivots for short-term trading
- Swing Order Blocks: Slower blocks based on 50-bar pivots for position trading
- Display up to 20 order blocks per type
• Volume Metrics

Each order block displays two important metrics:
- Volume value: The total volume of the candle that formed the order block
- Percentage: Relative volume compared to all visible order blocks (always totals 100%)
Higher percentages indicate stronger institutional activity and more significant zones
• Smart Filtering System
- ATR Filter: Filters out high-volatility candles (>2x ATR) to focus on genuine order blocks
- CMR Filter: Uses Cumulative Mean Range for adaptive filtering across different market conditions
• Flexible Mitigation Options
Choose how order blocks are considered broken:
- High/Low: Order block breaks when price touches its boundary
- Close: Order block breaks only when candle closes through it
• Visual Customization
- Colored or Monochrome themes
- Adjustable text size for volume metrics
- Customizable colors for bullish and bearish blocks
- Historical or Present mode for clean chart analysis
• Built-in Alert System
- Real-time alerts when order blocks are mitigated
- Individual toggles for each alert type
- Clear emoji indicators (🔵 Bullish, 🔴 Bearish)
- Compatible with TradingView's alert system
How It Works:
The indicator identifies order blocks by:
1. Detecting pivot highs and lows in price structure
2. Monitoring when price crosses these pivots (structure breaks)
3. Finding the highest/lowest volatility-filtered candle in the pivot zone
4. Marking this candle as an order block with its volume data
5. Removing blocks when the price mitigates them
Order blocks with higher volume percentages represent stronger institutional interest and are typically more reliable for trading decisions.
Best Practices:
- Use Internal OBs for day trading and scalping
- Use Swing OBs for swing trading and position entries
- Pay attention to blocks with higher volume percentages
- Combine with other SMC concepts for confirmation
Perfect for traders who follow Smart Money Concepts, ICT methodology, and institutional trading analysis.
Disclaimer:
This indicator is provided for educational and informational purposes only. It should not be considered as financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors. Past performance does not guarantee future results. Always conduct your own research and consult with a qualified financial advisor before making any trading decisions. The creator of this indicator assumes no responsibility for any losses incurred from its use.
What are Order Blocks?
Order blocks are price zones where institutional traders have placed significant orders. This indicator identifies these zones by detecting pivot points in price action and tracking structural breaks in both internal (short-term) and swing (long-term) timeframes.
Key Features:
• Dual Structure Analysis
- Internal Order Blocks: Fast-moving blocks based on 5-bar pivots for short-term trading
- Swing Order Blocks: Slower blocks based on 50-bar pivots for position trading
- Display up to 20 order blocks per type
• Volume Metrics
Each order block displays two important metrics:
- Volume value: The total volume of the candle that formed the order block
- Percentage: Relative volume compared to all visible order blocks (always totals 100%)
Higher percentages indicate stronger institutional activity and more significant zones
• Smart Filtering System
- ATR Filter: Filters out high-volatility candles (>2x ATR) to focus on genuine order blocks
- CMR Filter: Uses Cumulative Mean Range for adaptive filtering across different market conditions
• Flexible Mitigation Options
Choose how order blocks are considered broken:
- High/Low: Order block breaks when price touches its boundary
- Close: Order block breaks only when candle closes through it
• Visual Customization
- Colored or Monochrome themes
- Adjustable text size for volume metrics
- Customizable colors for bullish and bearish blocks
- Historical or Present mode for clean chart analysis
• Built-in Alert System
- Real-time alerts when order blocks are mitigated
- Individual toggles for each alert type
- Clear emoji indicators (🔵 Bullish, 🔴 Bearish)
- Compatible with TradingView's alert system
How It Works:
The indicator identifies order blocks by:
1. Detecting pivot highs and lows in price structure
2. Monitoring when price crosses these pivots (structure breaks)
3. Finding the highest/lowest volatility-filtered candle in the pivot zone
4. Marking this candle as an order block with its volume data
5. Removing blocks when the price mitigates them
Order blocks with higher volume percentages represent stronger institutional interest and are typically more reliable for trading decisions.
Best Practices:
- Use Internal OBs for day trading and scalping
- Use Swing OBs for swing trading and position entries
- Pay attention to blocks with higher volume percentages
- Combine with other SMC concepts for confirmation
Perfect for traders who follow Smart Money Concepts, ICT methodology, and institutional trading analysis.
Disclaimer:
This indicator is provided for educational and informational purposes only. It should not be considered as financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors. Past performance does not guarantee future results. Always conduct your own research and consult with a qualified financial advisor before making any trading decisions. The creator of this indicator assumes no responsibility for any losses incurred from its use.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。