Breaker Finder [Quanty]

Breaker blocks drawn from confirmed swings, with a table that tests the first return to each zone against chance on the chart you are viewing.
HOW IT WORKS
A breaker is a level that failed and flipped. The script finds it in three steps:
1. Sweep. Price trades beyond a liquidity swing: a swing low (or high) with 10 bars on each side, the kind of level many traders can see. The extreme of that run is marked with a small x.
2. Shift. A candle then closes beyond the last structure swing (3 bars on each side) on the other side of the run: the last swing high after a sweep below, the last swing low after a sweep above. This is the market structure shift (MSS), drawn as a dotted line from the swing to the closing candle. That candle has to show displacement: it leaves a fair value gap or has a body of at least 1 ATR (14 bars) in the direction of the shift. A shift without displacement is ignored and the script waits for the next sweep.
3. Breaker. The body of the last candle at the broken swing that closed in the new direction, before the run into the sweep (an up candle for a shift up, a down candle for a shift down), becomes the breaker zone. Its midpoint, the mean threshold, is drawn as a dashed line. Teal zones sit below price after a shift up; violet zones sit above price after a shift down.
A zone stays live and extends to the right until a candle closes through its far side. Then it is broken and removed from the chart (or kept as a faint dotted box, if you switch that on). The first time price comes back into a live zone, a circle marks the touch. That return is the moment the Stats table measures.
Swings are confirmed a fixed number of bars after they form, so nothing is drawn in hindsight and everything is read on closed candles. Raise the liquidity swing to see fewer, larger breakers; lower it to see more. The structure swing, the displacement filter and the number of zones kept on the chart are also settings, and the Stats table counts every zone, not only the ones on screen. The script works on any timeframe and any symbol.
HOW TO READ THE STATS TABLE
The table in the corner takes the last 50 returns to a breaker zone on the chart you are viewing (the number after the slash) and counts in how many of them price moved at least 1 ATR (14 bars) in the expected direction within the next 10 bars: up from a teal zone, down from a violet zone. It is a measurement of history on this symbol and timeframe, not a prediction and not a promise. Change the symbol or the timeframe and the numbers change with it. Past results do not guarantee future results.
The next row tests the same returns in the opposite direction: if both directions score about the same, the zone marked a volatile moment, not a direction. The row after that runs the same test on every one of the last 500 bars in a random direction, so you can see what a coin toss would have scored here. Two more rows split the count by volume. When one side has only a handful of returns, read it as a handful, not as a rate. The threshold can be set in ATR or in percent, and the number of bars ahead is a setting. The table can be collapsed to one line, and its colours follow your chart theme.
Breaks of structure and liquidity sweeps did not beat a coin toss in our own earlier tests. Check breakers on your own symbol and timeframe before you trust them.
Alerts: price returns to a live breaker zone below, and to a live breaker zone above.
Written from the concept; no code from other scripts is used.
Not investment advice.
HOW IT WORKS
A breaker is a level that failed and flipped. The script finds it in three steps:
1. Sweep. Price trades beyond a liquidity swing: a swing low (or high) with 10 bars on each side, the kind of level many traders can see. The extreme of that run is marked with a small x.
2. Shift. A candle then closes beyond the last structure swing (3 bars on each side) on the other side of the run: the last swing high after a sweep below, the last swing low after a sweep above. This is the market structure shift (MSS), drawn as a dotted line from the swing to the closing candle. That candle has to show displacement: it leaves a fair value gap or has a body of at least 1 ATR (14 bars) in the direction of the shift. A shift without displacement is ignored and the script waits for the next sweep.
3. Breaker. The body of the last candle at the broken swing that closed in the new direction, before the run into the sweep (an up candle for a shift up, a down candle for a shift down), becomes the breaker zone. Its midpoint, the mean threshold, is drawn as a dashed line. Teal zones sit below price after a shift up; violet zones sit above price after a shift down.
A zone stays live and extends to the right until a candle closes through its far side. Then it is broken and removed from the chart (or kept as a faint dotted box, if you switch that on). The first time price comes back into a live zone, a circle marks the touch. That return is the moment the Stats table measures.
Swings are confirmed a fixed number of bars after they form, so nothing is drawn in hindsight and everything is read on closed candles. Raise the liquidity swing to see fewer, larger breakers; lower it to see more. The structure swing, the displacement filter and the number of zones kept on the chart are also settings, and the Stats table counts every zone, not only the ones on screen. The script works on any timeframe and any symbol.
HOW TO READ THE STATS TABLE
The table in the corner takes the last 50 returns to a breaker zone on the chart you are viewing (the number after the slash) and counts in how many of them price moved at least 1 ATR (14 bars) in the expected direction within the next 10 bars: up from a teal zone, down from a violet zone. It is a measurement of history on this symbol and timeframe, not a prediction and not a promise. Change the symbol or the timeframe and the numbers change with it. Past results do not guarantee future results.
The next row tests the same returns in the opposite direction: if both directions score about the same, the zone marked a volatile moment, not a direction. The row after that runs the same test on every one of the last 500 bars in a random direction, so you can see what a coin toss would have scored here. Two more rows split the count by volume. When one side has only a handful of returns, read it as a handful, not as a rate. The threshold can be set in ATR or in percent, and the number of bars ahead is a setting. The table can be collapsed to one line, and its colours follow your chart theme.
Breaks of structure and liquidity sweeps did not beat a coin toss in our own earlier tests. Check breakers on your own symbol and timeframe before you trust them.
Alerts: price returns to a live breaker zone below, and to a live breaker zone above.
Written from the concept; no code from other scripts is used.
Not investment advice.
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。