Market Structure Break and Order Block Indicator
- Индикаторы
- Zhen Yu Zheng
- Версия: 1.10
- Обновлено: 26 апреля 2026
Market Structure Break and Order Block Indicator is a professional price action tool for MT4, inspired by Smart Money Concepts (SMC) and ICT methodology. It automatically maps market structure, order blocks, and imbalance zones directly on your chart — with full EA integration support via 20 output buffers.
─────────────────────────────────────
◆ CORE FEATURES
─────────────────────────────────────
▶ Internal & Swing Structure
Detects Break of Structure (BOS) and Change of Character (CHoCH) on both internal (short-term) and swing (major) levels. Individual bullish and bearish filters let you focus on only the signals that matter. Labels are rendered directly on the chart with configurable size and color.
▶ Order Blocks (Internal & Swing)
Automatically identifies and draws the most recent bullish and bearish order blocks at both internal and swing levels. Includes optional midline display and mitigation detection — choose between close-based or high/low-based invalidation logic.
▶ Fair Value Gaps (FVG)
Detects bullish and bearish price imbalance zones with auto-threshold calibration. Displays filled rectangle zones with an optional midline. Mitigated gaps are removed from the chart automatically.
▶ Equal Highs and Equal Lows
Identifies potential liquidity levels where price has formed equal highs or equal lows within a configurable price threshold.
▶ Strong and Weak High / Low
Marks the current swing high and low as either Strong or Weak based on trend direction — helping you identify where liquidity is likely resting.
▶ Swing Points
Optional display of HH, HL, LH, LL labels for clear visual structure mapping.
─────────────────────────────────────
◆ EA-READY: 20 OUTPUT BUFFERS
─────────────────────────────────────
All signals are written to 20 indexed buffers accessible via iCustom(), allowing your EA to read every market condition in real time with no additional parsing required.
Buf 0 — Internal Bull OB signal (1=Touched, 2=Formed, 3=Break)
Buf 1 — Internal Bear OB signal
Buf 2 — Swing Bull OB signal
Buf 3 — Swing Bear OB signal
Buf 4 — Bull FVG signal (1=Touched, 2=Formed)
Buf 5 — Bear FVG signal
Buf 6-7 — Latest Bull OB Top / Bottom price
Buf 8-9 — Latest Bear OB Top / Bottom price
Buf 10-11 — Latest FVG Top / Bottom price
Buf 12 — Market Trend (1=Bullish, -1=Bearish, EMA20/50 based)
Buf 13 — Equal High/Low signal (1=EQL Touched, 2=EQH Touched, 3=EQL Formed, 4=EQH Formed)
Buf 14-17 — Candle OHLC values
Buf 18 — Internal Bull OB Midline Touched
Buf 19 — Internal Bear OB Midline Touched
─────────────────────────────────────
◆ ALERT SYSTEM
─────────────────────────────────────
Every signal type has its own individual alert toggle:
• Internal & Swing Structure — BOS and CHoCH, Formed and Touched
• Order Blocks (Internal & Swing) — Touched, Formed, Break
• Order Block Midline — Touched
• Equal High / Low — Formed and Touched
• Fair Value Gap — Formed and Touched
Alert delivery supports: Screen popup, Sound, Email, Push Notification.
A ring-buffer deduplication system prevents the same alert from firing more than once per bar.
─────────────────────────────────────
◆ DISPLAY OPTIONS
─────────────────────────────────────
• OB Count — set how many order blocks are shown per direction
• OB Filter — ATR-based or range-based zone filtering
• OB Mitigation — close-based or high/low-based invalidation
• FVG Extend Bars — control how far imbalance zones project to the right
• Label sizes — Tiny, Small, or Normal per structure type
• Max Bars — limit the lookback depth for chart performance
─────────────────────────────────────
◆ PERFORMANCE AND STABILITY
─────────────────────────────────────
Built for reliable operation on live charts:
• GDI object cap (3,000) with automatic cleanup — prevents MT4 object overflow
• Fixed-capacity sliding window buffers — no unbounded memory growth
• ATR cached per bar — no redundant recalculation on every tick
• SaveState / RestoreState — prevents signal duplication on tick replay
• Drawing separated from tick logic — chart objects update on bar close only
─────────────────────────────────────
◆ RECOMMENDED USE
─────────────────────────────────────
• Discretionary traders who want automated structure and zone mapping
• EA developers needing structured, buffer-based price action signals
• Works on any liquid instrument — XAUUSD, Forex majors, indices
• Multi-timeframe approach: M1 for entries, M15 or H1 for structure context
─────────────────────────────────────
◆ NOTES
─────────────────────────────────────
• Free indicator — no license required
• Concept based on LuxAlgo price action framework
• Minimum 200 bars of history required for ATR and structure calculations
• Tested on XAUUSD M1, M5, and M15 with ECN brokers
If you find this indicator useful, a positive rating is greatly appreciated and helps other traders discover it. Feedback and bug reports are welcome.
