Breaker Block Retest Zones for MT4/MT5
Info
The Breaker Block Retest Zones for MT4/MT5 is a Indicator for MetaTrader 5 that on gold (xauusd) an order block that fails does not disappear, it changes sides. This indicator finds order blocks on closed bars, keeps them hidden, and draws a zone only when a candle closes through one.
Usage
This tool is typically used for enhancing chart analysis and decision making.
Platform
This Indicator works exclusively on MetaTrader 5 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL5/Indicators folder via File ? Open Data Folder in MetaTrader 5.
How to Install and Use Breaker Block Retest Zones for MT4/MT5
1. Installation: Place your file in the MQL/Indicators folder via "Open Data Folder" and restart your terminal.
2. Loading: Find the indicator in the Navigator, drag it onto your chart, and configure the input parameters in the popup window.
3. Customization: Press Ctrl+I to open the indicator list, select your tool, and click "Properties" to change colors, levels, or visual styles.
4. Updating: Replace the old file in the Indicators folder with the new version and restart the platform to apply changes.
Frequently Asked Questions
Q: Why is my indicator not showing? A: Verify the file is in the MQL/Indicators folder, or try right-clicking the "Indicators" tree in the Navigator and clicking "Refresh."
Q: Do custom indicators slow down the platform? A: Too many complex indicators can impact performance; remove unused ones via the "Indicator List" (Ctrl+I).
Q: Can I use MT4 indicators on MT5? A: No, MQL4 and MQL5 are distinct languages; ensure the indicator is compiled specifically for your platform version.
What this tool does
On Gold (XAUUSD) an order block that fails does not disappear, it changes sides.
Typical Use Case
This Indicator excels in automated trading and technical analysis on MetaTrader 5.
Compatible Platform & Setup
This Indicator works on MetaTrader 5. Place the file in the MQL5/Indicators folder and restart the terminal.
Description & Settings
Related: Order Block Marker with Mitigation Tracking - another powerful indicator for MetaTrader 5 traders.
On Gold (XAUUSD) an order block that fails does not disappear, it changes sides. This indicator finds order blocks on closed bars, keeps them hidden, and draws a zone only when a candle closes through one. A bullish block that price closes below becomes a bearish breaker above price. A bearish block that price closes above becomes a bullish breaker below price.Also recommended: MTF Order Block Zones Indicator for MT4/MT5 - similar indicator with strong performance on MetaTrader 5.
Each breaker has three states, shown by colour: waiting for the retest, retested when a later closed candle comes back and touches the zone, and failed when a candle closes back through the far side. Failed breakers leave the chart unless you choose to keep them. The forming candle is never used, so a zone does not appear and then vanish.
A breaker is a place to watch, not an entry by itself. Price can retest it and go straight through. The code uses the simple definition, a close through the block, and does not check for a liquidity sweep before the break.
Settings
Swing length: bars on each side of a swing high or low, default 5. The order block is the last opposite candle of the leg that closes beyond a confirmed swing.
Impulse filter: the leg needs one candle with a body of at least this many ATR, default 1.0, 0 turns it off.
ATR period: default 14.
Zone drawn from the candle: full candle (high to low) or body only.
Bars an order block can wait to be broken: default 300, 0 means no limit. Older blocks are dropped and never become breakers.
Bars to scan: default 1500, 0 scans all the history of the chart.
Show bullish breakers and show bearish breakers, maximum live breakers per side (default 3, newest first), keep failed breakers (off) and the text label BB+ or BB- on the bar that made the breaker.
Colours for bullish, bearish, retested and failed zones and for the label.
Alerts: when a breaker forms and on its first retest, both off by default. Popup, push and sound. They fire once, on the candle that just closed.
Object prefix: change it to run two copies on the same chart.
What it needs
Any symbol and any timeframe. It reads the built-in ATR and draws standard rectangles and text objects, nothing else. It has no buffers, so an EA cannot read it with iCustom as it is, and it never trades. Everything is rebuilt once per new bar from closed candles only. Push notifications need your MetaQuotes ID in the terminal options.
Make it yours
Run it on XAUUSD, XAGUSD, EURUSD, GBPUSD, US30 or NAS100 and compare M5, M15 and H1: count how many breakers get a retest and how many fail on each one, then tune the swing length and the impulse filter. It fits next to Smart Money Concepts structure and classic support and resistance, because a breaker is a broken level that changed role. If you want it inside an EA, XP_UpdateZones holds the whole flip, retest and fail logic in one function and XP_CheckBreak finds the order block, so both are easy to copy. A session filter or a liquidity sweep check before the flip can be added inside XP_UpdateZones.
About this code
Open source. Use it as it is, adapt it, build your own version on top of it. Questions, suggestions and your own tests are welcome in the comments below. Provided as is, use at your own risk.
Changelog
v1.0 (2026-11-27): initial release.
You may also like: Order Block Zones for Smart Money Concepts - excellent alternative for indicator users on MetaTrader 5.
Source Code
яю
#property copyright "RobotFX"
#property link "https://robotfx.org"
#property version "1.00"
#property description "This code is educational. Feel free to use, modify and upgrade as you wish. Visit ROBOTFX.ORG for professional trading tools"
#property indicator_chart_window
#property indicator_buffers 0
#property indicator_plots 0
enum ENUM_XP_BBZONE
{
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.