ProTrade Order Block Detector
- Indicators
- Version: 1.1
ProTrade Order Block Detector
Product Overview
ProTrade Order Block Detector is a professional technical analysis indicator for MetaTrader 5 that automatically identifies institutional order blocks—key price zones where significant buying or selling pressure originated—and provides real-time alerts when price approaches or mitigates these levels. This indicator helps traders spot high-probability reversal and continuation zones based on institutional footprint analysis, without requiring manual chart marking.
This indicator is designed for price action traders, institutional concept traders, and anyone who wants to identify supply/demand zones with precision, receive timely alerts, and maintain a clean, organized chart workspace.
Key Features
Automated Order Block Detection
- Scans recent price action to identify bullish order blocks (last bearish candle before strong upward move) and bearish order blocks (last bullish candle before strong downward move)
- Configurable lookback period defines how many bars to analyze for potential zones
- Minimum move threshold (in pips) ensures only significant institutional footprints are marked
- Supports detection across any symbol and timeframe supported by MetaTrader 5
Smart Zone Classification & Filtering
- Fresh vs. Filled: Distinguishes between untouched ("fresh") order blocks and those already mitigated by price action
- Show Fresh Only mode: Optionally display only unfilled zones to reduce chart clutter and focus on actionable levels
- Auto-Hide Filled: Automatically hide mitigated order blocks to keep the chart clean and relevant
- Visual color coding: Bullish OBs (lime), Bearish OBs (red), Filled OBs (gray)
Real-Time Mitigation Tracking
- Continuously monitors price action to detect when price enters an order block zone
- Automatically marks OBs as "filled" when mitigation occurs, with optional color change
- Tracks mitigation status in the dashboard for quick reference
- Helps traders avoid trading already-tested institutional levels
Customizable Alert System
- Proximity Alerts: Notify when price approaches within a configurable distance (in pips) of an active order block
- Mitigation Alerts: Alert when price enters and mitigates an order block zone
- Alert Cooldown: Prevents alert spam by enforcing a minimum time between notifications
- Supports platform notifications, email alerts, and push notifications to mobile devices
Professional Visual Presentation
- Semi-transparent rectangular zones clearly mark order block areas on the chart
- Optional text labels identify each zone as "Bull OB" or "Bear OB" with [FRESH]/[FILLED] status
- Fully customizable colors for bullish, bearish, and filled zones
- Adjustable transparency and label font size for optimal visibility
Real-Time Dashboard & Controls
- On-chart panel displays:
- Total order blocks detected, fresh vs. filled counts
- Bullish vs. bearish zone breakdown
- Last scan/update timestamp
- Alert system status (Active/Paused)
- Color-coded indicators for instant visual awareness
- One-click buttons: Refresh (rescan), Clear All (remove objects), Alerts Toggle, Chart Settings
Chart Customization Suite
- Apply professional color schemes with one click
- Full control over candle colors, grid visibility, price lines, and volume display
- Auto-apply option ensures consistent workspace setup on initialization
How To Use
Step 1: Attach the indicator to any chart in MetaTrader 5. The dashboard and control buttons will appear automatically, and an initial scan will identify order blocks in the lookback window.
Step 2: Configure detection sensitivity. Adjust the Lookback Period (bars to scan), MinMovePips (minimum move to confirm an OB), and MinCandleCount to match your preferred timeframe and trading style.
Step 3: Set visual preferences. Choose colors for bullish/bearish/filled zones, adjust transparency, and decide whether to show labels. Enable ShowFreshOnly or AutoHideFilled to focus on actionable zones.
Step 4: Configure alerts. Enable proximity alerts (AlertDistancePips) to be notified when price approaches a zone, and/or mitigation alerts to know when a zone is tested. Set AlertCooldownMinutes to control notification frequency.
Step 5: Enable notification channels. Activate Push Notifications and/or Email Alerts if you want to receive alerts away from the terminal.
Step 6: Monitor and interact. Use the dashboard to track zone counts and status. Use Refresh to rescan for new blocks, Clear All to remove drawn objects, or toggle Alerts on/off as needed.
Step 7: Trade with context. Use identified order blocks as potential support/resistance zones for entries, stop placement, or profit targets—always in conjunction with your broader trading strategy and risk management.
Input Parameters
Order Block Settings
- LookbackPeriod: Number of bars to scan backward for potential order blocks
- MinCandleCount: Minimum number of candles required to form a valid OB zone (reserved for future expansion)
- MinMovePips: Minimum price move (in pips) after a candidate candle to confirm it as a valid order block
- ShowFreshOnly: Display only unfilled ("fresh") order blocks; hide mitigated zones
- AutoHideFilled: Automatically hide order blocks after they have been mitigated by price
Alert Settings
- EnableOBAlerts: Enable or disable all order block-related alerts
- EnableMitigationAlerts: Specifically enable alerts when an order block is mitigated (price enters the zone)
- AlertDistancePips: Distance (in pips) from an order block at which to trigger a proximity alert
- EnablePushNotifications: Send alerts via MetaTrader mobile push notifications
- EnableEmailAlerts: Send alerts via email (requires configured SMTP settings in MT5)
- AlertCooldownMinutes: Minimum time (in minutes) between successive alerts to prevent spam
Visual Settings
- BullishOBColor: Color for bullish (demand) order block zones
- BearishOBColor: Color for bearish (supply) order block zones
- FilledOBColor: Color for order blocks that have been mitigated/filled
- OBTransparency: Transparency level (0–100) for zone rectangles
- ShowOBLabels: Display text labels on each order block zone
- LabelFontSize: Font size for order block labels
Chart Appearance Parameters
- ChartBackground, ChartForeground, ChartGrid: Colors for chart background, text, and grid
- ChartUpColor, ChartDownColor: Colors for upward/downward price elements
- BullCandleColor, BearCandleColor: Colors for bullish/bearish candles
- VolumesColor: Color for volume histogram
- StopLevelsColor: Color for stop level indicators
Chart Display Options
- ShowTicker, ShowOHLC, ShowGrid: Toggle display of ticker, OHLC values, and grid
- ShowBidPriceLine, ShowAskPriceLine, ShowLastPriceLine: Toggle price line visibility
- ShowPeriodSeparators, ShowTradeLevels, ShowTradeHistory: Toggle additional chart elements
- ShowTickVolumes, ShowRealVolumes: Toggle volume display type
- AutoApplyChartSettings: Apply chart settings automatically on initialization
Dashboard Parameters
- ShowDashboard: Enable or disable the on-chart dashboard
- DashboardBG, DashboardText: Colors for dashboard background and text
- DashboardActive, DashboardInactive: Colors for active/inactive status indicators
Important Information
Educational & Analytical Tool This indicator identifies potential institutional order blocks based on price action patterns. It does not guarantee that identified zones will result in reversals or continuations. Order block analysis should be used as one component of a comprehensive trading approach, not as a standalone signal generator.
Pattern Recognition, Not Prediction The indicator detects historical patterns where strong moves followed consolidation candles. Past pattern behavior does not guarantee future price reactions at similar zones. Always confirm order block signals with additional confluence (trend structure, momentum, volume, etc.).
No Profit Promise This indicator is a technical analysis and alerting tool. It does not guarantee profits or improved trading performance. Trading foreign exchange and CFDs carries a high level of risk and may not be suitable for all investors. Past performance is not indicative of future results.
Alert Configuration Ensure your MetaTrader terminal is properly configured for email and push notifications if you enable those alert types. Test alert functionality in a demo environment before relying on it for live trading decisions.
Performance Considerations Scanning large lookback periods on lower timeframes may increase CPU usage. Adjust LookbackPeriod and refresh frequency based on your system capabilities and trading needs.
Testing Recommendation Always test this indicator on a demo account before using in live trading. Verify that order block detection, mitigation tracking, and alerts function as expected on your preferred symbols and timeframes. Forward-test across various market conditions before integrating into your live workflow.
Compatibility Designed exclusively for MetaTrader 5. Not compatible with MetaTrader 4. Requires a broker feed with reliable price data for accurate zone detection and alert triggering.
Data and Logging All detected order blocks, mitigation events, and alert triggers are logged in the MetaTrader Experts tab. Users should review logs to confirm the indicator is functioning as configured. The indicator does not store or transmit personal trading data externally.
Chart Customization Note Price line colors (Bid, Ask, Last) are controlled by MetaTrader terminal settings, not by this indicator. Users must set these colors manually in Tools → Options → Charts if they wish to customize line colors. This indicator controls line visibility only.
System Requirements
- MetaTrader 5 build 2244 or higher
- Windows 7 or later operating system
- Stable price feed with adequate tick data for accurate pattern detection
- Sufficient system resources for real-time scanning if using short refresh intervals
Support
For questions regarding functionality, settings, or usage, please refer to the information printed in the Experts tab when the indicator initializes. Additional documentation is available in this product description.
Final Notes
ProTrade Order Block Detector is designed to assist disciplined traders with systematic identification of institutional order blocks and timely alerts for zone approaches or mitigations. It is not a substitute for trading knowledge, market analysis, or sound risk management principles. Users should ensure they understand order block theory and all indicator features before relying on it for trading decisions.
This indicator does not provide financial advice, trading signals, or market predictions. All trading decisions remain the sole responsibility of the user. Always trade responsibly and within your risk tolerance. Use order block analysis as part of a confluence-based approach, not in isolation.
