OPEN-SOURCE SCRIPT
Best Order Block Finder - Xcelerate Trade

The Best Order Block Finder - Enhanced - Developed by the Xcelerate Trade team.
Advanced Order Block Detection with Smart Visualization
This professional-grade indicator identifies institutional order blocks using sophisticated price action analysis, helping traders spot high-probability reversal and continuation zones.
🎯 Key Features:
Smart Detection Algorithm:
Identifies bullish and bearish order blocks based on volume pivots and price rejection
Configurable period analysis (2-20 bars) for different market conditions ( It can also be used on small timeframes 1m-15m)
Minimum percentage move filter to eliminate noise
Optional wick-based or body-based detection methods
Visual Excellence:
Clean, professional rectangular zones with customizable transparency
Color-coded labels with percentage move information
Compact design with adjustable block length (2-30 bars)
Dual color schemes: DARK and BRIGHT themes
Bullish blocks in GREEN, Bearish blocks in RED for instant recognition
Advanced Controls:
Maximum order blocks limit (5-50) to prevent chart clutter
Automatic cleanup of old/irrelevant blocks
Optional channel lines for latest order blocks
Information panel showing current OB levels
Real-time alerts for new order block formations
📈 How It Works:
Order blocks represent areas where large institutions have placed significant orders, creating imbalances that often lead to price reversals or strong reactions when retested.
Bullish Order Blocks: Form after bearish candles followed by strong bullish momentum
Bearish Order Blocks: Form after bullish candles followed by strong bearish momentum
🔔 Alert System:
New Bullish Order Block detected
New Bearish Order Block detected
Fully customizable alert messages
⚙️ Customization Options:
Adjustable detection sensitivity
Color scheme selection
Transparency controls
Block duration settings
Label visibility toggles
Perfect for:
Swing traders identifying key support/resistance levels
Scalpers looking for high-probability entry zones
Institutional analysis and smart money tracking
Multi-timeframe order block analysis
💡 Pro Tips:
Use on higher timeframes (30m - 4H+) for stronger institutional levels
Combine with volume analysis for confirmation
Watch for price reactions when retesting order blocks
Best used with proper risk management
Transform your trading with institutional-level order block analysis!
May 6
Release Notes
Xcelerate Trade – Order Block Finder (Enhanced)
Overview
A clean, rules-based Order Block tool that highlights bullish and bearish OB zones using a classic “OB candle + consecutive candles” confirmation model. It’s designed for traders who want simple, consistent OB marking without repaint-style guesswork.
How it works
Bullish OB: a bearish OB candle followed by N bullish candles (Relevant Periods) and an optional minimum % move filter.
Bearish OB: a bullish OB candle followed by N bearish candles (Relevant Periods) and an optional minimum % move filter.
OB zones are drawn as boxes and labeled on the chart once confirmation is met.
Key features
Order Block Zone modes
Open→Wick (default, matches the original method)
Body (open↔close)
Full Wick (high↔low)
Noise control via Min. Percent move threshold
Mitigation & invalidation options (optional)
Mitigation: Off / Touch / Close inside
Invalidation: Off / Touch beyond / Close beyond
After mitigation: Keep / Fade / Delete
Object management: configurable maximum OB boxes displayed to keep charts clean.
Alerts
Alert conditions for new Bullish OB and new Bearish OB
Optional alert conditions for mitigation events
Best practices
Use higher timeframes to mark “major” OB zones, then refine entries on lower timeframes.
Combine with structure (HH/HL/LH/LL), key levels, and session context for better confluence.
Developed by the Xcelerate Trade team.
Advanced Order Block Detection with Smart Visualization
This professional-grade indicator identifies institutional order blocks using sophisticated price action analysis, helping traders spot high-probability reversal and continuation zones.
🎯 Key Features:
Smart Detection Algorithm:
Identifies bullish and bearish order blocks based on volume pivots and price rejection
Configurable period analysis (2-20 bars) for different market conditions ( It can also be used on small timeframes 1m-15m)
Minimum percentage move filter to eliminate noise
Optional wick-based or body-based detection methods
Visual Excellence:
Clean, professional rectangular zones with customizable transparency
Color-coded labels with percentage move information
Compact design with adjustable block length (2-30 bars)
Dual color schemes: DARK and BRIGHT themes
Bullish blocks in GREEN, Bearish blocks in RED for instant recognition
Advanced Controls:
Maximum order blocks limit (5-50) to prevent chart clutter
Automatic cleanup of old/irrelevant blocks
Optional channel lines for latest order blocks
Information panel showing current OB levels
Real-time alerts for new order block formations
📈 How It Works:
Order blocks represent areas where large institutions have placed significant orders, creating imbalances that often lead to price reversals or strong reactions when retested.
Bullish Order Blocks: Form after bearish candles followed by strong bullish momentum
Bearish Order Blocks: Form after bullish candles followed by strong bearish momentum
🔔 Alert System:
New Bullish Order Block detected
New Bearish Order Block detected
Fully customizable alert messages
⚙️ Customization Options:
Adjustable detection sensitivity
Color scheme selection
Transparency controls
Block duration settings
Label visibility toggles
Perfect for:
Swing traders identifying key support/resistance levels
Scalpers looking for high-probability entry zones
Institutional analysis and smart money tracking
Multi-timeframe order block analysis
💡 Pro Tips:
Use on higher timeframes (30m - 4H+) for stronger institutional levels
Combine with volume analysis for confirmation
Watch for price reactions when retesting order blocks
Best used with proper risk management
Transform your trading with institutional-level order block analysis!
May 6
Release Notes
Xcelerate Trade – Order Block Finder (Enhanced)
Overview
A clean, rules-based Order Block tool that highlights bullish and bearish OB zones using a classic “OB candle + consecutive candles” confirmation model. It’s designed for traders who want simple, consistent OB marking without repaint-style guesswork.
How it works
Bullish OB: a bearish OB candle followed by N bullish candles (Relevant Periods) and an optional minimum % move filter.
Bearish OB: a bullish OB candle followed by N bearish candles (Relevant Periods) and an optional minimum % move filter.
OB zones are drawn as boxes and labeled on the chart once confirmation is met.
Key features
Order Block Zone modes
Open→Wick (default, matches the original method)
Body (open↔close)
Full Wick (high↔low)
Noise control via Min. Percent move threshold
Mitigation & invalidation options (optional)
Mitigation: Off / Touch / Close inside
Invalidation: Off / Touch beyond / Close beyond
After mitigation: Keep / Fade / Delete
Object management: configurable maximum OB boxes displayed to keep charts clean.
Alerts
Alert conditions for new Bullish OB and new Bearish OB
Optional alert conditions for mitigation events
Best practices
Use higher timeframes to mark “major” OB zones, then refine entries on lower timeframes.
Combine with structure (HH/HL/LH/LL), key levels, and session context for better confluence.
Developed by the Xcelerate Trade team.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน