Any market structure indicator can mark a break of structure. But when one prints, the question you actually have is different: do breaks like this usually keep going, or do they come straight back? Most indicators stop at the label. This free market structure indicator for TradingView keeps watching after the break and counts what happened, on the chart in front of you.

Market Structure BOS/CHoCH + Break Follow-Through is free and open-source on TradingView, and we wrote it from scratch. It tags the swings, marks a BOS or a CHoCH when a candle closes through a swing, and then runs a simple race after every break: does price get 1 ATR beyond the level first, or 1 ATR back through it?

On the EURUSD 4-hour chart we published it on, breaks confirmed by a close reached the far line about two times in three. Breaks where price only poked through with a wick got there about one time in four. That’s a big gap, and part of it is built into the measurement, so there’s a section below on how to read it.

Key Takeaways

  • A free, open-source market structure indicator for TradingView: HH, HL, LH and LL swing tags, BOS and CHoCH on closed breaks, and the live swing levels drawn as blocks with their prices
  • After every break it runs a race, 1 ATR beyond the level or 1 ATR back through it within 30 bars, and counts the outcome over the last 200 breaks of each kind, with the sample size printed
  • On EURUSD 4-hour, close breaks reached 1 ATR beyond the level 131 and 133 times out of 200 (BOS and CHoCH), and wick-only breaks 51 and 49 times out of 200
  • Part of that gap comes from where the candle closed, so read the counts as a description of the chart they came from, not as an edge
  • No tag, break line or break label moves after it prints; swing tags show up a few bars late because a swing has to be confirmed first
Market structure indicator for TradingView on a EURUSD 4 hour chart: HH, HL, LH and LL tags, BOS and CHoCH labels with their counts, a pink level block, run boxes and the dashboard
The chart we published the indicator on: EURUSD 4-hour (FXCM data on TradingView), default settings, September 9, 2026.

What is a market structure indicator?

Market structure is the pattern of swing highs and swing lows that price leaves behind. In an up-trend price makes higher highs (HH) and higher lows (HL). In a down-trend it makes lower highs (LH) and lower lows (LL).

A market structure indicator, or break of structure indicator as some traders call it, finds those swings for you and marks the moment price breaks one. A break that goes with the trend is a break of structure (BOS). A break against it, the first one that flips the trend, is a change of character (CHoCH).

If you want the idea itself, with examples and the wick-or-close question, our break of structure guide covers it in full. This page is about the indicator.

What this market structure indicator for TradingView adds

Plenty of free scripts draw BOS and CHoCH. When we looked through the top market structure scripts on TradingView in September 2026, none of them counted what happened after a break. That’s the gap this one fills.

  • It keeps counting after the break. Every BOS and CHoCH gets the same follow-through race, and the outcome is filed by kind: BOS or CHoCH, broken on a close or only on a wick. The counts cover the last 200 breaks of each kind, and every count prints its sample size.
  • Its labels are frozen. A break label shows what the indicator said at the moment of the break, never a figure worked out with hindsight. Only the outcome is added to it later.
  • Wick-only breaks get their own count. The first time price trades through a level but closes back inside, nothing is drawn as a break, but the same race is run and the result goes into its own class. So you can compare close breaks with wick pokes on your own symbol.

It’s careful with small samples, too. Below 20 breaks of a kind, a label shows the sample size instead of a percentage, for example n=12 (<20), so a number built on six breaks never looks like one built on two hundred. The typical-run price waits for at least 8 measured runs.

How it finds swings: by price, not by counting bars

Most structure indicators find swings with a lookback: a high is a swing if it’s the highest of so many bars either side. This one doesn’t use a lookback at all.

A swing high is confirmed the first time a candle closes 1.5 ATR below the highest price of the current up-leg, and a swing low the first time a candle closes 1.5 ATR above the lowest price of the current down-leg. If price closes through the previous swing before that happens, the high or low in between becomes a swing on the spot. Because the rule is a distance in ATR, it scales with each symbol’s own volatility, so there’s no bar count to retune when you move between gold, indices, crypto and forex.

There’s a cost, and it’s worth knowing. A swing only exists once price has moved away from it, so the HH, HL, LH and LL tags land on the swing candle a few bars after it printed. That’s confirmation lag, not repainting: once a tag is placed, it stays where it is.

When the indicator marks a break

A break is a candle that closes through a live swing level. If it goes with the current structure it’s a BOS. If it goes against it and flips it, it’s a CHoCH.

The close is what counts. The first wick through a level isn’t drawn as a break; it goes into the wick-only class instead, and the border of that level’s block turns dashed so you can see it has been tested.

Each break gets a line from the broken swing to the candle that closed through it, and a label with the count as it stood at that moment, such as “BOS · 1.0 ATR reached 131/200 (66%)”. When the race ends, the outcome is added to the end of the label: “-> reached in 1b” or “-> snapped back in 2b”.

How each break gets measured

From the candle after the break, the indicator runs a race between two finish lines, both the same distance from the broken level: 1 ATR beyond it in the direction of the break, and 1 ATR back through it on the other side. Call them the far line and the snap-back line. ATR, the average true range, is the average size of recent candles (the last 14 by default, gaps included), so 1 ATR is about one ordinary candle’s range. It’s frozen at the break candle, so later volatility can’t move the lines.

  • Reached: price touched the far line first.
  • Snapped back: price touched the snap-back line first. If one candle touches both, the break is filed as snapped back, the cautious reading.
  • Neither: nothing was touched within 30 bars.

Nothing is fitted. Every reached, snapped-back and neither figure is a count of price events on your chart.

Diagram of how the market structure indicator measures a break: two finish lines 1 ATR either side of the broken level, with a close break starting 0.7 ATR from the far line and a wick-only break 1.3 ATR from it
How a break is measured. An illustration with round numbers, not real prices.

What it counted on the EURUSD 4-hour chart

When we published the indicator, the chart TradingView stored with it was EURUSD 4-hour on FXCM data, at the default settings. Its panel had filed 1,490 breaks and was counting the last 200 of each kind.

Kind of breakReached 1 ATR beyond the level
BOS on a close131 of 200 (66%)
CHoCH on a close133 of 200 (67%)
BOS on a wick only51 of 200 (26%)
CHoCH on a wick only49 of 200 (25%)

The close breaks that didn’t reach the far line all snapped back: 69 BOS and 67 CHoCH, so none of them hit the 30-bar limit. For wick-only breaks, the panel doesn’t show how the rest split between snapped back and neither.

Market structure indicator dashboard on EURUSD 4 hour: close breaks BOS 131 of 200 and CHoCH 133 of 200 reached 1 ATR, wick-only breaks 51 and 49 of 200, 1,490 breaks filed
The panel on the publish chart, read as TradingView stored it. The Close breaks and Wick-only breaks rows hold the counts in the table above.

Why the gap between close and wick-only breaks isn’t an edge

Read that table too fast and it says: wait for the close, because close breaks carry on more than twice as often. But part of that gap is built into the race, and these counts can’t tell you how big a part.

Both finish lines sit 1 ATR from the broken level, not from the candle’s close. A break that closes past the level has already covered part of the distance to the far line. Say it closes 0.3 ATR past: the far line is then 0.7 ATR away and the snap-back line 1.3 ATR away. A wick-only break is the mirror image. It closes back inside the level, so it starts nearer the snap-back line.

That head start matters. If price moved with no direction at all after the break, the close break above would still reach the far line first about 65% of the time, and a wick-only break that closed 0.3 ATR inside about 35%, just from where they started. We don’t know the average close distance of the breaks on this chart, so we can’t say how much of the 66% that explains.

So the gap mixes two things: what price did after the break, and where the break candle closed. The indicator counts the outcome; it doesn’t separate those two parts. Treat the table as a description of how breaks played out on this chart, not as proof that trading them pays.

That fits the one outside test we found. Gainium, a crypto bot platform, tested BOS and CHoCH entries from its own market structure indicator on BTC, ETH and SOL and found them no better than random entries on their own. Structure tells you where you are. It isn’t a signal by itself.

The counts are more useful for comparison. Put the same settings on two symbols, or on two timeframes of one symbol, and compare the same kind of break. If close BOS breaks reach the far line much less often on one of them, breaks there have tended to stall. That’s still a description of the past, not a forecast.

Reading the chart: blocks, captions and run boxes

The chart carries more than the labels, and each part answers a question you’d otherwise work out by hand.

  • Structure line: a solid line at the level whose break would flip the trend. It’s teal under price while structure is bullish and pink above price while it’s bearish. The shaded band between it and the other unbroken swing level is the dealing range, the range price is trading inside.
  • Level blocks: the last swing high and swing low that price hasn’t closed through, drawn at the right edge. Teal above price is the level a close has to clear; pink below is the level a close has to lose. Each caption gives the break it would be, the price, the distance and the count for breaks like it. Right after a break there’s no level on that side until a new swing confirms, and the panel reads “no ceiling yet” or “no floor yet”.
  • Block height: the median run for that kind of break on this chart: how far price got beyond the level within 30 bars, measured in ATR and drawn at the current ATR. Half the breaks went further and half less, and breaks that snapped back first still count, so the block’s outer edge isn’t a target. The caption reads “typical run to” when the median is used, “finish line at” before 8 runs have been measured, and “run floor at” when the minimum height sets it.
  • Run box: after each close break, a box as tall as the median run and as wide as the median number of bars that kind of break took to reach the far line, never narrower than 6 bars. Its caption repeats the count and gives the typical run as a price, in pips and in bars, like “typical run to 1.16806 (+44.8p) in 1b” on the publish chart. Its border thickens when the far line is reached, it goes hollow with a dashed border when the break snaps back, and it fades if neither happens. The last four stay on the chart.

On the publish chart, the pink block below price read: CHoCH below 1.16078, 26.5 pips away, close CHoCHs reaching 1 ATR in 133 of 200, typical run to 1.15593, wick-only CHoCHs reaching it in 49 of 200. There was no teal block above: the BOS two bars earlier had just broken the swing high, so the panel read “no ceiling yet”.

Right edge of the market structure indicator on EURUSD 4 hour: the pink level block below price with its caption, the newest BOS label and its teal run box, and filled and hollow run boxes from earlier breaks
The right edge of the publish chart: the live level block below price (the level above had just been broken, so the panel reads “no ceiling yet”), the newest break labels and the last four run boxes.

How to use a market structure indicator like this one

  • Read the level blocks first. They tell you the price that would make the next BOS or CHoCH, how far away it is, and what breaks like it did here.
  • Count a break only on a close. That’s the rule the indicator draws by: a wick through a level is a test, not a break, until a candle closes beyond it. It’s a definition, not a better entry.
  • Treat every percentage as a base rate. 131 out of 200 describes past breaks on this chart. It doesn’t say what this break will do.
  • Watch the run box after a break. A box that goes hollow is a break that came back, and the structure line shows where the next flip sits.
  • Tune the swings to your chart. Drop the swing setting to 1.0 ATR to see internal structure, or raise it to 2.0 on a choppy symbol so only real pullbacks count.

It pairs well with our other free TradingView indicators: the liquidity sweep indicator for TradingView for the stop runs this one doesn’t mark, and the FVG and order block indicator for TradingView for fair value gaps and order blocks.

Settings

The defaults are the ones on the publish chart.

  • Swing confirmation (x ATR): 1.5. How far a close has to move from the running extreme to confirm a swing.
  • ATR length: 14. The ruler for the swing setting, the far and snap-back lines, the block and run-box heights, and the quarter-ATR alert.
  • Follow-through distance (x ATR): 1.0. Where the far line and the snap-back line sit, the same distance either side of the level.
  • Outcome window (bars): 30. How long the race runs before a break is filed as neither.
  • Breaks kept per class: 200. The rolling window every count covers. Older breaks drop out, so the numbers describe recent behavior.
  • Minimum n before a percentage prints: 20.
  • Also adjustable: swing tags on or off and how many to keep (40), break lines to keep (20), run boxes on or off and how many to keep (4), minimum block height (0.75 ATR), how far the blocks project right (20 bars), dealing-range shading, the dashboard and its position (top right), and the colors.

It works on any symbol and timeframe. Distances print in pips on 5-digit and 3-digit forex pairs and in price units elsewhere. A chart with little history shows sample sizes below 20 until the counts fill in.

Alerts

  • Bullish BOS, bearish BOS, bullish CHoCH and bearish CHoCH, each on the closing candle
  • A wick-only break: price traded through a structure level for the first time and closed back inside
  • A break reached its follow-through distance
  • A break snapped back
  • Price within a quarter of an ATR of a live structure level

The indicator works on closed candles, so set alerts to fire once per bar close.

How to add it on TradingView

  1. Open its TradingView page: Market Structure BOS/CHoCH + Break Follow-Through [ForexCracked].
  2. Click Add to favorites, or click Use on chart to load it straight away.
  3. On your chart, open the Indicators menu, go to Favorites, and click Market Structure BOS/CHoCH + Break Follow-Through [ForexCracked].
  4. Scroll back to load plenty of history, so the counts have breaks to work with. A 1-hour or 4-hour chart is a good place to start.

Our step-by-step guide covers how to install TradingView custom scripts if it’s your first one.

Market Structure BOS/CHoCH + Break Follow-Through [ForexCracked]

by ForexCracked

Market Structure BOS/CHoCH + Break Follow-Through [ForexCracked]

A free, open-source market structure indicator for TradingView that marks HH, HL, LH and LL swings, BOS and CHoCH on closed breaks, and counts how often each kind of break reached 1 ATR beyond the level before snapping back.

Pros

  • Counts what happened after each break, by kind, with the sample size
  • Wick-only breaks measured as their own class
  • Labels frozen at the break, no hindsight figures
  • Swings confirmed by an ATR distance, so the setting scales with each symbol's volatility
  • Level blocks and run boxes show the counted run as prices on the chart

Cons

  • The close-break counts are partly tilted by where the candle closed, so they aren't an edge
  • Swing tags appear a few bars after the swing
  • No entries, stops, targets, order blocks or FVGs
  • Counts cover loaded history only and ignore costs

Summary

A structure label tells you a break happened. This market structure indicator for TradingView also tells you what breaks like it did next on your chart. It confirms swings with an ATR distance instead of a lookback, marks BOS and CHoCH only on a close, and runs the same follow-through race after every break, with wick-only breaks counted as their own class. Labels are frozen at the moment of the break and every count carries its sample size. Free and open-source.

Last tested by @Sam in Nov 2026 for ForexCracked Editorial.

What doesn’t it do?

It draws no entries, no stops, no targets and no arrows. It has no order blocks, no fair value gaps, no sessions and no higher-timeframe reading. It doesn’t map liquidity pools or equal highs and lows, and it doesn’t label sweeps: a first wick through a level only dashes that block’s border and goes into the wick-only count.

It also doesn’t tell you to trade a break. It’s the structure map with the follow-through counted, so you can see whether breaks on your symbol have tended to carry on or come back.

How we built and checked it

  • We wrote the indicator from scratch in Pine Script v6. No code was ported from other scripts.
  • Before publishing, it went through two rounds of code review, an audit and then a re-audit of the fixes. Among other things, they fixed how the typical run is measured, so it isn’t cut short at the finish line.
  • It was published open-source on September 9, 2026 under CC BY-NC-SA 4.0, so you can read every line on its TradingView page.
  • Every count and price in this article was read from the chart TradingView stored with the publication: EURUSD 4-hour, FXCM data, default settings.
  • What we didn’t test: whether trading these breaks makes money. The counts ignore spread and commission, and one chart on one symbol can’t tell you how another will behave.

Frequently Asked Questions

If you only need BOS and CHoCH labels, any of the popular free market structure scripts will do the job. If you want to know how breaks have played out on your own chart, use ours, Market Structure BOS/CHoCH + Break Follow-Through: we built it for that. When we checked TradingView’s top market structure scripts in September 2026, none of the others counted what happened after a break. Ours prints that count with its sample size, though it doesn’t make any break safer to trade.
Yes, many. Ours marks a BOS or CHoCH only when a candle closes through a swing, labels each break with the count for breaks like it, and is free and open-source.
Find the swing highs and lows and see which way they step. Higher highs and higher lows mean bullish structure, lower highs and lower lows mean bearish. A close through the last swing in the trend’s direction is a BOS; a close through the swing that flips it is a CHoCH. This indicator confirms the swings for you with an ATR distance, so the reading doesn’t depend on a lookback setting.
Yes, under the name CHoCH. Many traders call the first break against the trend a market structure shift (MSS), and that’s the break this indicator labels CHoCH. A break with the trend is a BOS. Our break of structure guide explains the difference with examples.
No tag, break line or break label moves once it prints; only the outcome is added to a label afterwards. Swing tags appear a few bars late because a swing has to be confirmed first, which is lag, not repainting. The level blocks and the panel are redrawn on every bar by design, so they always show the current levels.
Yes. The swing, follow-through and block-height settings are all in ATR, so they scale with each symbol’s volatility. Distances print in price units outside 5-digit and 3-digit forex pairs. A choppy symbol may still need the swing setting raised to 2.0.
Not of this indicator. For MetaTrader there’s a separate free BOS and CHoCH market structure indicator for MT4 and MT5 on our site, and a Market Structure Oscillator.
Yes. It’s open-source on TradingView, and you can add it to your charts on TradingView’s free plan.

What it’s good for

If you read structure by hand, this market structure indicator does the marking for you and adds the one thing a label can’t: what breaks like the one in front of you did next, on this chart, with the sample size beside it.

Use those counts to compare symbols and timeframes, not as a signal. When you set close breaks against wick-only breaks, remember that where the candle closed already tilts the race. It’s free on TradingView.

Add Market Structure BOS/CHoCH + Break Follow-Through on TradingView

Market Structure BOS/CHoCH + Break Follow-Through is free and open-source. Add it to your charts here: Market Structure BOS/CHoCH + Break Follow-Through on TradingView

Risk disclaimer: Market Structure BOS/CHoCH + Break Follow-Through marks market structure and counts what price did after past breaks on your chart. It doesn’t predict price and doesn’t place trades. Its counts ignore spread, commission and slippage. Results depend on market conditions, your settings, and your own execution and risk management. This is shared for educational purposes and is not financial advice.