An order block is the last candle against a move that then runs hard. The order blocks finder indicator access indicator boxes those candles, dots their edge, and joins equal highs and equal lows with lines, since stops tend to rest there. It marks a buy or sell when price leans back into a fresh block.
This build ships as a compiled .ex4 for MT4 and .ex5 for MT5; the screenshots below come from EURUSD H1.
| Platforms | MT4 (.ex4) + MT5 (.ex5) |
|---|---|
| Chart window | Main price chart |
| Plots | 4: OBF Bull OB Retest, OBF Bear OB Retest, Bull OB marker, Bear OB marker |
| Alerts | popup, push notification, email, sound |
| Inputs | 15 |
What the file declares
Boxes, liquidity lines, dots and marks on price.
Lime boxes mark bullish blocks and red boxes bearish ones.
`Bull OB marker` dots the block low in dodger blue.
`Bear OB marker` dots the block high in orange.
`OBF Bull OB Retest` prints lime with arrow 233.
`OBF Bear OB Retest` prints red with arrow 234.
- OBF Bull OB Retest: arrow, lime, width 2, arrow code 233
- OBF Bear OB Retest: arrow, red, width 2, arrow code 234
- Bull OB marker: arrow, dodger blue, width 1, arrow code 159
- Bear OB marker: arrow, orange, width 1, arrow code 159

How a value appears
Finding a block
A down candle qualifies when the next `InpImpulseBars` `3` bars rise at least `InpImpulseATRmult` `1.5` ranges above its high and the third one closes above it.
The retest
If that third bar dips its low into the block but closes above the block low, a retest mark prints. Bearish blocks mirror this.
Liquidity
`InpShowLiquidity` joins swing highs, or swing lows, that sit within 0.15 of a range of each other. The search covers the last `InpLookback` `50` bars.
What the output means
Lime boxes are demand, red boxes are supply.
A dot marks the edge of each block.
Lines join equal highs or equal lows.
Marks appear only on quick retests.
`InpMaxBlocks` `30` keeps only the newest boxes.
Same-side marks stay at least three bars apart.
Alert channels in this build: popup, push notification, email and sound, one message per closed bar.
Retests go out as OBF BUY or OBF SELL with the symbol and period. `EnableAlerts` is the master switch, and the popup plus the sound playing `InpSoundFile` start on; mobile and email wait.
Every Order Blocks Finder Indicator Access Indicator input
Core settings
| Setting | What it does | Default |
|---|---|---|
InpLookback |
Structure lookback (bars). Bars searched for blocks and pools, `50`. | 50 |
InpImpulseBars |
Impulse window after OB candle. Bars in the move after the block, `3`. | 3 |
InpImpulseATRmult |
Min impulse size (ATR mult). Size of that move in ranges, `1.5`. | 1.5 |
InpATRPeriod |
ATR period. Range window, `14`. | 14 |
InpMaxBlocks |
Max OB rectangles drawn. Newest boxes kept on the chart, `30`. | 30 |
InpObjPrefix |
(see inputs panel) | OBF_ |
Display settings
| Setting | What it does | Default |
|---|---|---|
InpShowOB |
Show order blocks. Draw the blocks, `true`. | on |
InpShowLiquidity |
Show equal-high/low liquidity. Join equal highs and lows, `true`. | on |
InpArrowOffsetPts |
Arrow offset (points). Mark gap in points, `30`. | 30 |
Alert settings
| Setting | What it does | Default |
|---|---|---|
EnableAlerts |
Master alert switch. Master switch for retest news, `true`. | on |
EnablePopup |
Popup alert. | on |
EnablePushNotify |
Mobile push. | off |
EnableEmail |
Email alert. | off |
EnableSound |
Sound alert. Sound, ships on, `true`. | on |
InpSoundFile |
(see inputs panel) | alert.wav |

Best home for this one
Strong three-bar moves are common on hourly charts. EURUSD H1 is the reference chart, with a handful of fresh blocks a day. On M15 boxes pile up quickly. On H4 each block marks a real push.
What to watch out for
Most boxes are never revisited.
The retest window is only the third bar.
Equal highs can break without a reversal.
The sound route ships on.
Copy the compiled Order Blocks Finder Indicator Access Indicator file into your MQL4/Indicators folder, and the MT5 build into MQL5/Indicators, then restart the terminal and drag it onto a chart. The step-by-step guide with screenshots is at how to install MT4 and MT5 indicators.
Download the Order Blocks Finder Indicator Access Indicator for MT4 and MT5
The zip holds the compiled Order Blocks Finder Indicator Access Indicator build for MT4 and MT5, plus a short README. Compiled files only, no source. Enter your email below and the download link arrives in your inbox.
Download this indicator free
Enter your email and the file is yours. You also get the full MT4 and MT5 library.
FAQ
What makes a candle a bullish block here?
A down candle followed by three bars that rise at least one and a half ranges above its high, with the third closing above it. Every value comes from `InpImpulseBars` and `InpImpulseATRmult`.
When does OBF Bull OB Retest print?
Only if the bar that completes the move also dips its low into the block while closing above the block low. It is a narrow test, so the marks are rare.
What does InpShowLiquidity draw?
Lines joining swing highs, or swing lows, that sit within fifteen percent of a range of each other. Those equal levels are where resting stops tend to gather.
Why keep only InpMaxBlocks 30 boxes?
Without a cap the chart fills with old rectangles. The newest thirty stay and older ones go as new blocks form, so the boxes near price always stay visible.
Are results guaranteed?
No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the Order Blocks Finder Indicator Access Indicator as one input. Always backtest before trading live.
Category: this is part of our Smart Money collection. Browse more Smart Money for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.
External references
- Learn more about the underlying method in Central limit order book on Wikipedia.
- For wider market background, see Limitorder at Investopedia.
