Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Telegram !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Indicateurs

Breaker Block Retest Zones - indicateur pour MetaTrader 5

Cristhian Alexander Gaibor Cuasquer
Cristhian Alexander Gaibor Cuasquer
4.7 (39)
Trader et membre de MQL5 depuis 2017.
Vues:
88
Note:
(1)
Publié:
MQL5 Freelance Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

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.

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.

Breaker Block Retest Zones on a XAUUSD M15 chart in MetaTrader 5: a bullish order block is closed below, becomes a bearish breaker block and gets its first retest

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 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.

RequestAudit: Check the Trade Requests of an Unchanged EA in the Tester RequestAudit: Check the Trade Requests of an Unchanged EA in the Tester

A library for MetaTrader 5 that checks every trade request of an existing Expert Advisor in the Strategy Tester, with one include line and no other change. Volume, stops level, freeze level, margin, trade mode and the order limit are checked; the request then goes out unchanged, and the Journal and a CSV list each violation with the file and line that sent it.

PantosAlgo Session Boxes (Asia / London / New York) PantosAlgo Session Boxes (Asia / London / New York)

Draws the Asia, London and New York session ranges (high/low boxes) on the chart, so you can instantly see each session's range, breakouts and retests.

Envelopes Channel with 3-Color Trend Candles Envelopes Channel with 3-Color Trend Candles

Конверты скользящих с раскраской свечей для mt5

Five Point Retest Five Point Retest

Five-point retest structures found on closed bars and turned into plans: a retest band, a target at point 3 and a fail level. Each plan runs until the target is touched or a close goes past the fail level, then fades, and a panel shows how many bullish and bearish structures reached the target on the chart you are looking at.