The all in one order block indicator sets a high bar for what counts as an impulse. The body must reach `ImpulseMultiplier` `1.8` times a twenty-bar ATR. Only then does the code reach back one candle and mark it as the block. Fewer marks, larger candles behind each one.
This build ships as a compiled .ex4 for MT4 and .ex5 for MT5; the screenshots below come from EURUSD M15.
| Platforms | MT4 (.ex4) + MT5 (.ex5) |
|---|---|
| Chart window | Main price chart |
| Plots | 4: Bull OB, Bear OB, Buy, Sell |
| Alerts | popup, push notification, email, sound |
| Inputs | 9 |
What the All in One Order Block Indicator draws on the chart
Bull OB puts a dodger blue dot on the down candle ahead of a bullish impulse.
Bear OB puts a crimson dot on the up candle ahead of a bearish one.
Buy and Sell mark the impulse candle itself, `ArrowOffsetPoints` `40` from the bar.
Dots and arrows use different codes, so the block and the trigger never blur together.
- Bull OB: arrow, dodger blue, width 2, arrow code 119
- Bear OB: arrow, crimson, width 2, arrow code 119
- Buy: arrow, lime, width 4, arrow code 233
- Sell: arrow, red, width 4, arrow code 234

How the All in One Order Block Indicator calculates its values
Setting the impulse bar
atr reads iATR at `AtrPeriod` `20`, taken from the candle before the candidate so an impulse cannot inflate its own threshold. body takes the absolute close minus open. The candle qualifies once body clears atr times `ImpulseMultiplier`.
Checking the candle behind
A bullish impulse needs the candle before it to have closed below its open. The bearish case needs the reverse. That single colour requirement is what turns a large candle into an order block rather than just a big bar.
Marking two different things
BullOB writes the low of that earlier candle one index back, and BearOB writes its high. Buy and Sell then mark the impulse candle with the point offset applied. So the dot is the zone and the arrow is what created it.
How to read the signals
A twenty-bar ATR reacts slowly, which keeps the threshold steady through a session.
At 1.8 ATR the qualifying candles are visibly large.
The tool marks blocks as they form and never watches for a return to them.
Compare the dot price against later bars yourself.
Alert channels in this build: popup, push notification, email and sound, one message per closed bar.
`EnableAlerts` starts on and `EnablePopup` carries the text. `EnablePushNotify`, `EnableEmail` and `EnableSound` begin false. `SoundFile` picks the clip. The test reads two completed candles, and the guard allows one impulse message per bar.
Every All in One Order Block Indicator input
Core settings
| Setting | What it does | Default |
|---|---|---|
ImpulseMultiplier |
Impulse body size in ATR units, default `1.8`. | 1.8 |
AtrPeriod |
Bars in the ATR reading, default `20`. | 20 |
Display settings
| Setting | What it does | Default |
|---|---|---|
ArrowOffsetPoints |
Impulse arrow distance from the candle in points, default `40`. | 40 |
Alert settings
| Setting | What it does | Default |
|---|---|---|
EnableAlerts |
Master switch for the impulse alerts, default `true`. | on |
EnablePopup |
Terminal dialog when an impulse qualifies, default `true`. | on |
EnablePushNotify |
Phone push when an impulse qualifies, default `false`. | off |
EnableEmail |
Mail delivery when an impulse qualifies, default `false`. | off |
EnableSound |
Sound playback when an impulse qualifies, default `false`. | off |
SoundFile |
Wav clip for the impulse alert, default `alert.wav`. | alert.wav |

Settings that fit your chart
EURUSD M15 is the reference chart, and M15 through H1 is where this methodology is usually applied. Below M15 the ATR threshold gets cleared by ordinary noise during a busy session. On H4 and daily a qualifying candle appears only a few times a month, and the zone it leaves is very wide.
When the All in One Order Block Indicator fails
The block is a candle until price returns to it, and this build does not track that return.
A twenty-bar ATR lags a sudden change in volatility, so a news candle can clear the bar too easily.
One colour requirement is a thin definition, and plenty of qualifying pairs mean nothing.
Copy the compiled All in One Order Block 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.
Background reading on the method behind the All in One Order Block Indicator: Order book on Wikipedia, Percent B Money Flow at StockCharts ChartSchool.
Download the All in One Order Block Indicator for MT4 and MT5
The zip holds the compiled All in One Order Block 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
How much does ImpulseMultiplier at 1.8 demand?
Nearly twice the average range. `ImpulseMultiplier` `1.8` against a twenty-bar ATR of 10 pips demands an 18 pip body. Most candles fall well short, which is why the chart stays sparse even on an active instrument.
Why does AtrPeriod use 20 bars?
For stability. A twenty-bar average moves slowly, so the threshold does not jump around within a session. The trade-off is that it lags a genuine change in volatility, and a news burst can clear the bar more easily than it should.
Which candle carries the Bull OB dot?
On the candle immediately before the bullish impulse, at that candle’s low. The code writes it one index back rather than on the impulse bar. That earlier candle is the block, and its low is the level traders watch.
Does the arrow mark the same bar as the dot?
No, and that separation is deliberate. Buy and Sell mark the impulse candle, while Bull OB and Bear OB mark the candle before it. Reading them together shows both the zone and the move that created it.
Are results guaranteed?
No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the All in One Order Block Indicator as one input. Always backtest before trading live.
Category: this is part of our Smart Money collection. Then, still, browse more Smart Money for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.
External references
- The core method is documented in Order book on Wikipedia.
- Additional market context is at Percent B Money Flow at StockCharts ChartSchool.
