Most structure breaks are noise. What I learned testing BOS and CHoCH on gold

3 December 2026, 11:39
Andrii Lysenko
0
26

Break of structure (BOS) and change of character (CHoCH) are everywhere now. Every second chart on social media has swing points and "BOS" labels on it. The idea is simple: when price closes beyond the last swing high, buyers have taken control; beyond the last swing low, sellers have.

I wanted to know how much of that holds up in numbers. So I tested plain structure breaks on XAUUSD, on minute data from 2023 to 2026, with spreads and swaps included, and compared every variant with random entries. This post is a short summary of what I found. It is not a trading recommendation, just the results of one study on one instrument.

The rules I tested

  • A swing high is a bar whose high is higher than the 3 bars on the left and not lower than the 3 bars on the right (mirror for swing lows).
  • A break is a bar CLOSE beyond the last unbroken swing. A wick through the level does not count.
  • BOS = break in the direction of the previous break. CHoCH = break in the opposite direction.
  • Entry at the close of the break bar, stop behind the opposite swing.

Structure Break Trend Filter on XAUUSD H1

Finding 1. On low timeframes, breaks are mostly noise

On M15 every variant I tried lost money after costs. On M5 the picture was the same unless I added several filters. The reason is visible on any chart: on low timeframes a "swing" is often just two or three candles of spread and random ticks, and the stop behind it is so close that costs eat a large part of each trade.

On H1 and H4 the same rules were positive in most variants. Fewer signals, wider stops, and the costs become small relative to the stop.

Finding 2. Direction matters more than the break itself

Almost all of the profit on gold came from long trades. Shorts were around zero or negative. That is not a property of structure breaks, it is the property of gold over these years.

So I added the simplest possible trend filter: take a break only in the direction of the H4 trend (EMA 50 above EMA 200 for longs, below for shorts). With the filter, shorts went from negative to around zero and the average result per trade improved.

But here is the honest part: when I compared with random entries that used the SAME filter, a large part of the improvement was the trend itself, not the break. The break added something on top (roughly +0.1 to +0.2 R per trade on H1 over random entries with the same filter, the same stop distance and the same exit), but it was smaller than the charts on social media suggest.

Lesson: if you test a filter, compare it with random entries that pass the same filter. Otherwise you measure the trend, not your signal.

Finding 3. A young trend is a bad trend

I looked at the worst losing periods. Most of them were sideways markets where the H4 trend flipped back and forth every few days. Breaks taken right after a fresh EMA cross were close to zero on average (about +0.03 R per trade), breaks in a trend that had lasted more than about 30 H4 bars did much better (about +0.22 R).

This was found by studying losing periods, so it is not a clean experiment. But a threshold between 30 and 45 bars worked better in both halves of the data (2023–2024 and 2025–2026), not only in the one where I found it.

Finding 4. The higher timeframe must be read without looking ahead

This is a common mistake in indicators and in backtests. On an H1 chart at 10:00, the H4 bar that started at 08:00 is NOT closed yet. If you take its EMA value, you use information from the future. On history the indicator looks great; live it behaves differently.

The correct way: for each lower-timeframe bar, take the last higher-timeframe bar that closed strictly before the lower bar ends. In MQL5 that means you cannot simply use iBarShift on the bar time; you need the end time of the bar minus the higher-timeframe period.

The free indicator HTF EMA No Lookahead in CodeBase shows how to do it, with a check against an independent calculation.

Finding 5. A stop that is too close is not a stop

Sometimes the opposite swing is only a few points away. Such trades look like perfect risk-reward on paper, but in reality the spread and normal noise take them out. Skipping signals where the stop is closer than 0.3 ATR removed many of the worst trades without hurting the rest.

What did not work

To save you time:

  • M15 and M30 breaks without a volatility filter (positive only in 2025–2026, when gold moved a lot).
  • The same rules on EURUSD, Brent, silver and stock indices: negative or unstable. Stops measured in spreads are much shorter there, and costs are heavier.
  • ADX and "choppiness" filters: they changed which trades were taken but did not reduce drawdowns in both halves of the data.
  • Smart exits with breakeven at 1R: they protected small gains but cut the big moves that pay for everything else.

Using the rules in your own Expert Advisor

I put these rules into an indicator, so they can be read from an EA through iCustom. One detail cost me an hour: in MQL5, input group headers are counted as input parameters. If the indicator has groups, you must pass a string for each group header, otherwise iCustom returns "invalid inputs" or shifts all parameters.

int h = iCustom(_Symbol, PERIOD_H1, "Market\\Structure Break Trend Filter",
                "Structure", 3,                               // swing length
                "Trend filter", 0, PERIOD_H4, 50, 200, 30,    // EMA cross, TF, fast, slow, min age
                "Signal", 0.3,                                // min stop in ATR
                "Drawing", true, true, 5000, clrDodgerBlue, clrOrangeRed,
                "Alerts", false, false, false, false, "alert.wav");

double buy[1], sell[1], stop[1];
// buffer 0 = buy arrow, 1 = sell arrow, 2 = suggested stop; bar 1 = last closed bar
if(CopyBuffer(h, 0, 1, 1, buy) == 1 && buy[0] != EMPTY_VALUE && buy[0] != 0)
  {
   CopyBuffer(h, 2, 1, 1, stop);
   // your entry logic here, stop = stop[0]
  }

Always read bar 1 (the last closed bar), not bar 0. A break is confirmed only by a close.

Summary

  • Structure breaks on their own are weak, especially on low timeframes.
  • The higher-timeframe trend explains a large part of the result; test against random entries with the same filter.
  • Skip breaks in a young trend and breaks with a stop that is too close.
  • Read the higher timeframe only from bars that are already closed.

The indicator I built from this study is Structure Break Trend Filter for MetaTrader 5. It draws swings, BOS and CHoCH lines, shows an arrow only for breaks in the direction of a mature higher-timeframe trend and marks the suggested stop. You can run it in the Strategy Tester before buying.

Structure Break Trend Filter on EURUSD H1

All numbers above are from historical tests on one broker's data. Past results do not guarantee future results. Questions and criticism are welcome in the comments.