Breaker blocks
All indicators

LibraryMarket structure

Indicator

Breaker blocks

Order blocks that failed: price closed through them, and they are kept as zones of the opposite side, a broken bullish block as resistance, a broken bearish one as support.

Market structureOn the price4 inputsBreaker

How it is calculated

Order blocks as in order_block. A close below a bullish block's bottom turns it into a bearish breaker with the same top and bottom; a close above a bearish block's top into a bullish breaker. A breaker ends on a close back through its far side: a bullish one below its bottom, a bearish one above its top.

Reference: ICT market structure, from public descriptions (#546)

How to read it

The lines show the nearest bullish breaker (the highest) and bearish one (the lowest). new is 1 on the bar whose close turns a block into a breaker, broken on the bar that ends one. Order blocks and breakers are each kept up to max_zones per side.

In a strategy

Sell the retest after a failed long setup: when bb = ctx.ind("breaker_block", length=3) has bb.bear_new of 1, a short limit at bb.bear_bottom with the stop above bb.bear_top.

Inputs

InputTypeDefaultRange or choices
Swing bars each sidelengthWhole number3min 1, max 50
Break onbreak_onChoice"close"Close, Wick
ZonezoneChoice"wick"Full candle, Body only
Zones kept per sidemax_zonesWhole number20min 1, max 500

What it draws

LineDrawn as
Bullish topSteps
Bullish bottomSteps
Bearish topSteps
Bearish bottomSteps

Used in

No strategy template reads it yet.

OrionQuant