Skip to content
IndicatorMT5No repaint

Order Block Locator

Order Block Locator: 0 of 16 signals changed in our repaint test.

Order Block Locator on an MT5 chart
Order Block Locator screenshot
Test verdictPassed
Repainted
0 / 16
Signals / week
≈ 1.3
Tested on
EURUSD M15
Tested
2026-10-02
Download free · Google Drivev1.00 · 110.3 KB · .ex5 · mirror link
Lab pick — built by the lab, not from a member request. Want something like it? Request a tool

Overview

Order Block Locator is a free MetaTrader 5 indicator that draws bullish ob reaction arrows, bearish ob reaction arrows, bullish order block (demand) zones, bearish order block (supply) zones, htf confluence border zones, higher-timeframe order block outline zones and a panel (On-chart panel) on the main price chart. When a Bullish OB reaction arrow prints, it can send pop-up, push and sound alerts. We logged 16 of its signals at bar close on EURUSD M15 and re-read them after the test: none had changed. Start with ObBodyAtrMultiplier, default 1 — minimum order block body = this x ATR (0.3-3.0).

Specifications

Platform
MetaTrader 5
Version
1.00
Type
Indicator
Window
Main chart
Draws
2 arrows, 4 zones, 1 panel
Alerts
popup, push, sound
Repaints
No (0 of 16 signals changed)
Inputs
22
Tested on
MT5 build 6230 · 2026-10-02

Repaint test

Signals logged live
16
Changed after close
0
Arrow delay
None

No repaint detected. In a 2 Jul 2026 – 1 Oct 2026 test on EURUSD M15 (real ticks (Raw Trading Ltd)), 16 signals were logged at bar close and re-read at the end of the test: 0 changed. Arrows print on the bar that closes the signal, with no delay.

IndicatorFree — tested 2026-10-02 · MT5 build 6230 · real ticks (Raw Trading Ltd). Results come from historical data, not live trading, and do not guarantee future results.

Signal statistics

Price moved 1×ATR in the signal direction first62.5%
Price moved 1×ATR against it first37.5%
Neither within 20 bars0%

Over 2 Jul 2026 – 1 Oct 2026 on EURUSD M15, the indicator printed 16 arrows. After 62.5% of them, price moved 1×ATR(14) in the arrow's direction before moving 1×ATR against it (median null bars). 0% reached neither level within 20 bars.

This measures price movement after the arrow, not a trading result. It includes no spread, commission, stop loss or position sizing.

Small sample — not enough to draw a conclusion.

What it draws

  • Arrows (Bullish OB reaction) from buffer 0, drawn on the closed bar.
  • Arrows (Bearish OB reaction) from buffer 1, drawn on the closed bar.
  • Rectangles (Bullish order block (demand)) drawn as chart objects, not buffers — they are not readable by iCustom() in an EA.
  • Rectangles (Bearish order block (supply)) drawn as chart objects, not buffers — they are not readable by iCustom() in an EA.
  • Rectangles (HTF confluence border) drawn as chart objects, not buffers — they are not readable by iCustom() in an EA.
  • Rectangles (Higher-timeframe order block outline) drawn as chart objects, not buffers — they are not readable by iCustom() in an EA.
  • An on-chart panel (On-chart panel); values shown in the panel are not exposed as buffers.

Inputs

InputDefaultWhat it does
SwingLeftBars5Bars left of a swing pivot (3-15)
SwingRightBars5Bars right of a swing pivot = confirmation delay (3-15)
AtrPeriod14ATR period for the order block body filter (5-50)
ObBodyAtrMultiplier1Minimum order block body = this x ATR (0.3-3.0)
ZoneBasisOBL_BASIS_RANGEZone edges from the OB candle range or body
MaxActiveZonesPerSide5Max active zones per side; the oldest is removed (1-20)
MaxZoneAgeBars300Zone expires after this many closed bars (50-2000)
OnMitigationOBL_MIT_DELETEWhat to do when a bar closes through a zone
RequireConfirmationCandleColortrueReaction bar must close in the signal direction
SignalOnEveryTouchfalsefalse = first touch of a zone only; true = every touch
ShowHtfZonestrueOutline HTF order blocks and flag LTF confluence
HtfTimeframePERIOD_H4Higher timeframe (used only if above the chart timeframe)
ReactionLookaheadBars10Bars after the first touch used to judge a reaction (3-50)
ReactionSuccessAtrMultiple0.5Favourable move needed for a success, x ATR (0.1-3.0)
EnableAlertstruePopup alert on a reaction signal
EnablePushNotificationfalsePush notification on a reaction signal
EnableSoundfalsePlay a sound on a reaction signal
SoundFilealert.wavSound file (terminal Sounds folder)
AlertOnZoneCreatedfalseAlso alert when a new order block zone forms
ThemeOBL_THEME_DARKChart theme
RestoreThemetrueRestore the original chart colors on removal
DashScale1.5Panel scale (1.0-2.0, multiplied by screen DPI)

How to read it

A Bullish OB reaction arrow (buffer 0) prints when a closed bar trades into an active bullish order block zone and closes back above the zone top (with a bullish candle when RequireConfirmationCandleColor is on), on the first touch of the zone unless SignalOnEveryTouch is on. With the default ObBodyAtrMultiplier=1, expect roughly 1.3 arrows per week on EURUSD M15.

A Bearish OB reaction arrow (buffer 1) prints when a closed bar trades into an active bearish order block zone and closes back below the zone bottom (with a bearish candle when RequireConfirmationCandleColor is on), on the first touch of the zone unless SignalOnEveryTouch is on. With the default ObBodyAtrMultiplier=1, expect roughly 1.3 arrows per week on EURUSD M15.

Bullish order block (demand) zones are removed when a bar closes below the zone bottom (deleted or turned gray per OnMitigation), the zone is older than MaxZoneAgeBars bars, or a new bullish zone exceeds MaxActiveZonesPerSide (oldest removed) (input MaxZoneAgeBars, default 300).

Bearish order block (supply) zones are removed when a bar closes above the zone top (deleted or turned gray per OnMitigation), the zone is older than MaxZoneAgeBars bars, or a new bearish zone exceeds MaxActiveZonesPerSide (oldest removed) (input MaxZoneAgeBars, default 300).

HTF confluence border zones are removed when the order block zone it outlines is mitigated, expires or is removed.

Higher-timeframe order block outline zones are removed when a closed HTF bar closes through the far side of the zone, the zone is older than MaxZoneAgeBars HTF bars, or the per-side cap is exceeded (input ShowHtfZones, default true).

The On-chart panel panel shows last reaction signal (direction, price, move in pips since the signal, strength), nearest zone above and below with distance in pips, active bullish/bearish zone counts with HTF confluence count, zones tested and reaction win-rate, active HTF zone counts.

Installation

  1. 1Download OrderBlockLocator.ex5 from the button above (Google Drive).
  2. 2In MetaTrader 5: File → Open Data Folder → MQL5 → Indicators. Copy OrderBlockLocator.ex5 there.
  3. 3Restart MT5 or right-click Indicators in Navigator → Refresh.
  4. 4Drag Order Block Locator onto a chart. For push alerts, enable "Allow push notifications" under Tools → Options → Notifications.
  5. Tested on MT5 build 6230.

FAQ

›Does Order Block Locator repaint?

No repaint detected. In a 2 Jul 2026 – 1 Oct 2026 test on EURUSD M15 (real ticks (Raw Trading Ltd)), 16 signals were logged at bar close and re-read at the end of the test: 0 changed. Arrows print on the bar that closes the signal, with no delay.

›Can I use Order Block Locator in an EA?

Yes. Read buffer 0 (Bullish OB reaction) with iCustom() on bar 1 — the last closed bar.

›Why can’t my EA read the zones?

Zones and the panel are chart objects, not indicator buffers, so iCustom() does not return them.

›How do I get alerts on my phone?

Enter your MetaQuotes ID under Tools → Options → Notifications, tick "Enable push notifications", and keep the push alert input on.

›Does it work on other pairs?

Tested on EURUSD only; other symbols not tested.

Changelog

  • 1.00Initial release: swing pivot + Break of Structure order block engine (closed bars only, no repaint); automatic zone expiry by age and a per-side active zone cap; rejection arrows on zone touch with first-touch and every-touch modes; optional higher-timeframe confluence overlay with gold outline on matching zones; on-chart dashboard (last signal with strength meter, nearest zone above/below, act... · 2026-10-02

Final verdict

Order Block Locator suits traders who need bullish ob reaction arrows, bearish ob reaction arrows, bullish order block (demand) zones, bearish order block (supply) zones, htf confluence border zones, higher-timeframe order block outline zones and a panel (On-chart panel) that do not move after the bar closes. The test produced only 16 arrows, too few to judge them. Order Block Locator was tested on EURUSD only; other symbols were not tested.

More indicators