Part 3: Duration, prediction and strategies · Chapter 9 of 14 · 9 min

Breakouts in trend and in range

On the 240 breakout rules of book 12 (at least 15 trades), keeping only the signals in a trend regime according to efficiency takes the mean R from +0.09 to +0.22 (234 rules out of 240 improve) and keeping only those in range takes it to −0.09; random series give −0.00 and +0.05 (bands −0.14/+0.12 and −0.06/+0.17). The trend minus range difference is +0.31 against −0.05 (−0.24/+0.11): outside the band. The ADX makes +0.19 and +0.11, variance and Hurst stay inside. On the best rule the filter changes nothing (+0.74 without, +0.77 in the trend). The efficiency sign holds with other windows but leaves the band only with the 48-candle window.

The idea

«The breakout works in the trend, not in the range»: it is the classic advice. We put it to the test on book 12's grid of 480 rules. For each breakout rule (240 of the 480) we keep only the signals that arrive in a given regime, known at the close of the signal candle, and compare the mean R with that of the whole rule.

For each of the four measures, two filters:

  • trend only: the measure is above the median of the last 500 candles;
  • range only: it is below.

The rules have at least 15 trades each; everything is compared with 30 random series built on the same candles.

The result, measure by measure

Mean R over the 240 breakout rules (base +0.093; random series +0.013, band −0.05/+0.08):

MeasureTrend only (rules that improve; average trades)Range onlyTrend − range differenceChance band of the difference
Efficiency (48)+0.219 (234/240; 126)−0.089 (7/240; 87)+0.309−0.24 / +0.11
ADX (14)+0.187 (222/240; 111)+0.108 (97/240; 100)+0.079−0.16 / +0.15
Variance (96)+0.112 (166/240; 96)+0.144 (178/240; 116)−0.032−0.14 / +0.27
Hurst (240)+0.066 (104/240; 87)+0.080 (96/240; 104)−0.014−0.19 / +0.28

What random series do with the same filter: «trend only» gives on average −0.004 (efficiency), +0.011 (ADX), +0.049 (variance) and +0.018 (Hurst), with bands of ±0.13-0.18.

Figure 1. Cumulative R of the 20-candle breakout (1.5 ATR stop, 3 R target): all trades with a known regime (dashed grey, 160 trades, +16.7 R), trend regime only according to efficiency (pink, 94 trades, +35.3 R), range only (blue, 94 trades, −12.9 R).Data: gold, XAUUSDT perpetual future (real candles) · daily (D1) · from 15 Dec 2025 to 5 Oct 2026.
Read the chart in words

Daily gold chart with, below, three cumulative R curves: the pink one rises to +35, the dashed grey one to +17 and the blue one falls to −13.

Three readings.

  1. Efficiency: in the trend the breakout improves in 234 rules out of 240 and goes from +0.09 to +0.22; in the range it worsens in 233. The difference (+0.31) is outside the chance band. It is the only measure to give a clear effect, and on the side the classic advice predicts.
  2. ADX: in the trend +0.19, outside the band (−0.13/+0.13); but the range also does better than the base (+0.11): the difference between the two (+0.08) sits inside chance.
  3. Variance and Hurst: no effect. The range earns as much as, or more than, the trend, and everything sits inside the band.

The best rule

The 80-candle breakout (1.5 ATR stop, 3 R target, 48 candles, 79 trades, +0.74 ± 0.43) with the four filters:

MeasureTrend onlyRange only
Efficiency+0.77 ± 0.48 (62 trades)+0.74 ± 0.94 (17)
ADX+0.59 ± 0.52 (52)+0.92 ± 0.67 (34)
Variance+0.30 ± 0.56 (41)+0.95 ± 0.58 (45)
Hurst+0.47 ± 0.63 (34)+0.44 ± 0.58 (41)

On the example plan no filter improves it in a measurable way: with efficiency +0.77 in the trend against +0.74 without a filter, and +0.74 in the range (on 17 trades). The best rule already earns in both regimes. The average effect over the 240 rules is not found on the best one.

How solid it is

We repeat the efficiency «trend − range» difference changing window and data:

VariantTrend − range differenceChance band (5th-95th)
ER at 24 candles−0.02−0.26 / +0.19
ER at 48 candles (the book)+0.31−0.29 / +0.19
ER at 96 candles+0.15−0.21 / +0.16
ER at 168 candles+0.14−0.22 / +0.20
ER at 48, median of the last 250+0.30−0.22 / +0.15
ER at 48, median of the last 1,000+0.22−0.24 / +0.13
First half of the data (up to 11 May)+0.17−0.27 / +0.23
Second half+0.42−0.22 / +0.15

The sign is positive in seven variants out of eight and in both halves of the data. But the difference leaves the chance band only with the 48-candle window (with all three comparison medians) and in the second half of the data: with 96 and 168 candles it stays inside (barely at 96), with 24 it vanishes. When an effect shows at a precise point (48) and fades on either side, the suspicion is that the best parameter was picked.

Why it must be treated as a hypothesis

  • Efficiency includes the breakout. The measure is computed on the last 48 candles, and the last one is the signal's: a breakout that happens with a jump lifts the efficiency. The «trend» filter partly selects the more decisive breakouts, not only better regimes. (On random series the same mechanism does not help, but it is a kinship to keep in mind.)
  • Sixteen comparisons: four measures, two regimes, two modes (breakout and fade, chapter 10). With sixteen tests, one or two results at the edge are expected. Here two measures out of four leave the band.
  • The 240 rules are not independent tests: they share the same signals. The 234 out of 240 is an impressive number and says less than it seems.
  • Ten months of a single instrument, with an episode of wide moves between January and March.

What follows

  • The idea «the breakout earns more in the trend» has partial support: with 48-candle efficiency and with the ADX the mean R rises, and on the right side.
  • With variance and Hurst there is no effect, and on the best rule no filter changes anything.
  • The result sits at a single point of the parameter (window 48) and must be confirmed on new data.
  • Chance manages to imitate the signal only if the regime is looked at afterwards (chapter 8), not if it is known at the close.

What to do

  1. If you want to use a regime filter, write measure, window and threshold beforehand and test on data you did not use to choose them.
  2. Measure the effect on several rules, not only the best: on the best the filter changed nothing.
  3. Compare with random series and read the difference against the band, not against zero.
  4. Count the tests: sixteen comparisons make a gap at the edge normal.
  5. Test it forward (data after 6 October 2026) before risking money.

Procedure in four steps

  1. Choose measure, window and threshold before looking at the results.
  2. Filter the signals by regime known at the close and compare with the whole rule.
  3. Compare the gap with that of 30 random series and with variants of the parameters.
  4. Write how many variants you tried and what stays outside the band.

Exercises

Chapter exercises

1. With 48-candle efficiency, the «trend only» filter takes the breakouts' mean R from +0.09 to +0.22 and «range only» to −0.09. What does the chance band say?

2. On the best rule (80-candle breakout, +0.74 R) the efficiency filter gives +0.77 in the trend. What do you conclude?

3. Why distrust «234 rules out of 240 improve»?

4. The efficiency effect is +0.31 at 48 candles, +0.15 at 96 and −0.02 at 24. What do you suspect?

Have a question or want to share your exercise?

Post in the community, or join the free signals room on Telegram.

Educational content, not financial advice. Trading involves risk.