Strategies we backtested break and retest strategy

Tested by BacktestingMax

Break and retest strategy backtest

Does the break and retest strategy work?

Mostly no: 9 of the 30 backtests made money after trading costs, and all 10 on 15-minute charts lost money. Break and retest trades a breakout of a support or resistance zone: a price area where price turned at least twice before. When a candle closes beyond the zone (the break), you wait for price to come back to the zone and close beyond it again (the retest). Then you trade in the direction of the break. We tested one set of standard rules from 2020 to 2025. We used 4 currency pairs, gold, silver and 4 stock indices, each on 15-minute, 1-hour and 4-hour charts. On 4-hour charts, 5 of the 10 markets made money, 4 of them in both 2020–2023 and 2024–2025. These results leave out overnight (swap) fees, which would matter most on 4-hour charts. Overall, 32.9% of the trades reached the take-profit (the profit target), set at twice the risk. To break even before costs, about 1 trade in 3 must reach it. Waiting for the retest made money in more tests than entering at the break: 9 against 4. But waiting did not give a better entry price. It helped because it skipped the breaks that failed, where price closed back through the whole zone before any retest.

30 backtests 2020–2025 Trading costs included Tested 16 November 2026

Where it worked 30 backtests
Made money
9
of 30 tests, with the standard rules
Made money in both periods
7
2020–2023 and again 2024–2025
Best backtest
+67%
Nasdaq 100, 1-hour chart: account growth 2020–2025
With strong break candles only
3
tests made money in both periods, compared with 7 with the standard rules

Made money in both periods

  • GBP/USD, 4-hour
  • USD/JPY, 1-hour
  • USD/JPY, 4-hour
  • Gold, 1-hour
  • Nasdaq 100, 1-hour
  • S&P 500, 4-hour
  • Dow Jones, 4-hour

Lost money on every market

  • 15-minute charts

The results

Results on every market

Each box shows one backtest of the break and retest strategy with the standard rules, from 2020 to 2025, after trading costs: the % result, and a small chart of the account balance. The solid line is the account balance and the dashed line is the starting balance. Green results made money; red results lost money. Under each result: whether it made money in both 2020–2023 and 2024–2025, or passed all four of our checks (see "How a test passes" further down).

Market 15-minute 1-hour 4-hour
EUR/USD −94% Lost money. Account down 90% by Jul 2024 −63% Lost money −5% Lost money
GBP/USD −95% Lost money. Account down 90% by Oct 2024 −10% Lost money +29% Made money in both periods
USD/JPY −22% Lost money +24% Made money in both periods +49% Passed all four checks
AUD/USD −98% Lost money. Account down 90% by May 2023 −37% Lost money −10% Lost money
Gold −88% Lost money +23% Made money in both periods −9% Lost money
Silver −98% Lost money. Account down 90% by Dec 2021 −67% Lost money −23% Lost money
Nasdaq 100 −67% Lost money +67% Made money in both periods +0.4% Made money overall, lost in one period
S&P 500 −94% Lost money. Account down 90% by Dec 2022 +14% Made money overall, lost in one period +18% Passed all four checks
Dow Jones −68% Lost money −53% Lost money +36% Passed all four checks
DAX −48% Lost money −24% Lost money −2% Lost money
All the numbers, test by test
Market Chart Trades Win rate Profit factor Result Max drawdown 2020–2023 2024–2025 Monte Carlo drawdown Trading costs
EUR/USD 15-minute 2,741 32.2% 0.86 −93.8% −94.3% −82.9% −63.8% −95.7% $5,738
EUR/USD 1-hour 750 30.3% 0.84 −63.2% −67.6% −32.8% −45.3% −72.0% $1,586
EUR/USD 4-hour 194 33.5% 0.97 −4.5% −16.7% +0.7% −5.1% −28.1% $255
GBP/USD 15-minute 2,792 32.3% 0.89 −94.7% −95.7% −81.3% −71.5% −96.4% $7,876
GBP/USD 1-hour 769 34.2% 0.98 −10.2% −36.3% −1.8% −8.5% −48.6% $2,382
GBP/USD 4-hour 194 39.2% 1.22 +29.4% −7.9% +22.6% +5.5% −19.2% $325
USD/JPY 15-minute 2,887 35.2% 0.99 −22.2% −62.3% −4.7% −18.4% −75.7% $12,566
USD/JPY 1-hour 723 35.4% 1.05 +24.0% −25.0% +9.6% +13.1% −40.8% $1,813
USD/JPY 4-hour 189 41.8% 1.40 +49.2% −20.7% +18.5% +25.9% −16.2% $238
AUD/USD 15-minute 2,995 31.6% 0.83 −98.4% −98.4% −93.3% −75.5% −98.8% $5,799
AUD/USD 1-hour 795 33.1% 0.91 −37.0% −49.5% −22.1% −19.1% −58.9% $2,237
AUD/USD 4-hour 232 32.8% 0.94 −9.5% −24.0% −7.8% −1.9% −32.1% $398
Gold 15-minute 2,601 32.8% 0.83 −87.9% −90.0% −85.7% −15.1% −91.9% $4,327
Gold 1-hour 722 35.7% 1.04 +22.8% −20.3% +17.5% +4.5% −39.2% $2,136
Gold 4-hour 198 32.8% 0.93 −8.5% −20.6% −3.4% −5.3% −27.7% $237
Silver 15-minute 1,327 29.2% 0.66 −97.5% −97.6% −97.2% −9.0% −97.8% $6,045
Silver 1-hour 699 30.2% 0.78 −67.3% −71.7% −50.0% −34.6% −73.1% $3,177
Silver 4-hour 188 29.8% 0.79 −22.6% −25.7% −10.1% −13.9% −33.8% $529
Nasdaq 100 15-minute 2,592 33.3% 0.93 −66.6% −71.1% −61.0% −14.3% −82.9% $4,766
Nasdaq 100 1-hour 747 36.5% 1.11 +66.9% −23.8% +27.3% +31.0% −34.7% $1,380
Nasdaq 100 4-hour 183 33.9% 1.00 +0.4% −16.5% +2.9% −2.4% −23.5% $118
S&P 500 15-minute 2,611 31.3% 0.83 −93.7% −95.3% −91.5% −26.2% −95.6% $2,992
S&P 500 1-hour 746 35% 1.03 +13.8% −38.7% −14.1% +32.4% −44.4% $1,392
S&P 500 4-hour 216 37% 1.12 +17.6% −10.0% +5.7% +11.3% −22.3% $183
Dow Jones 15-minute 2,565 32.8% 0.94 −67.6% −78.9% −55.4% −27.4% −82.3% $4,284
Dow Jones 1-hour 750 30.1% 0.84 −52.5% −58.3% −44.9% −13.9% −64.0% $575
Dow Jones 4-hour 198 39.4% 1.31 +36.2% −8.6% +20.6% +12.9% −15.6% $107
DAX 15-minute 2,721 33.9% 0.95 −47.5% −72.6% −68.4% +66.1% −78.1% $3,015
DAX 1-hour 757 32.9% 0.94 −23.5% −44.8% −36.4% +20.2% −51.7% $613
DAX 4-hour 194 34% 0.98 −2.4% −21.1% −14.1% +13.6% −24.9% $86

Profit factor is the money won divided by the money lost. Above 1 means the test made money. Max drawdown is the biggest fall from the highest balance. 2020–2023 and 2024–2025 show the result in each period on its own. Monte Carlo drawdown: we shuffled the trades into a random order 1,000 times; in 95% of those runs, the worst drawdown was this number or less. Result is the change in the account, with the risk of each trade set to 1% of the account at that time.

The account balance

The best test and the middle test

Best test Nasdaq 100, 1-hour chart +66.9% from 2020 to 2025
Middle test (median): half of the 30 did better, half did worse USD/JPY, 15-minute chart −22.2% from 2020 to 2025

What we found

What the 30 backtests show

  1. With the standard rules, 9 of the 30 tests made money from 2020 to 2025, all on 1-hour and 4-hour charts. Of these 9, 7 made money in both 2020–2023 and 2024–2025. These 7 were USD/JPY, gold and the Nasdaq 100 on 1-hour charts, and GBP/USD, USD/JPY, the S&P 500 and the Dow Jones on 4-hour charts. The best of the 30 was the Nasdaq 100 on the 1-hour chart: the account grew 66.9% in 747 trades. EUR/USD, AUD/USD, silver and the DAX lost money on all three charts. Without some wrong prices in our DAX data, the DAX's 4-hour test would have made 2.6% (see 'Wrong prices in our data').

  2. On 15-minute charts, all 10 tests lost money, and 8 of them lost more than 60% of the account. R is 1% of the account at the time of the trade: the amount each trade is sized to risk. We measure results in R. Across the 10 markets, the average 15-minute trade lost 0.020R even before trading costs. The spread (the gap between the buy and the sell price) took 0.054R more. On 4-hour charts, the average trade made 0.052R before costs and 0.040R after them.

  3. After 6 out of 10 breaks, price came back for a retest within the next 10 candles: 99,051 out of 163,075 breaks. 46.5% of these retests came on the candle right after the break. 21.3% of the breaks failed before any retest. After the other 17.9%, price made neither a retest nor a failure within 10 candles. On each market, 59.2% to 63.3% of the breaks were retested.

  4. Waiting for the retest helped because it skipped the breaks that failed. To check this, we also ran a version of the rules that enters at every break at once. We sorted its trades into groups by what price did after each break (see 'After the break' below). Trades on breaks that failed lost 0.891R each on average. Trades on breaks with neither a retest nor a failure made 0.717R each on average. Waiting for the retest skips both groups. The failed breaks were the bigger group, and they lost more per trade: in total, they lost more than the breaks with neither a retest nor a failure made. So skipping both groups helped.

  5. Waiting for the retest did not give a better price. In 21,076 breaks, both versions made a trade: at the break in one version, and at the retest in the other. The other trades came from breaks that only one of the two versions traded, for example because the other version already had a trade open. The retest entry was the better price for only 44.6% of the 21,076 breaks. The retest version's stop-loss was further from its entry for 54.2% of them. On these breaks, entering at the break made 0.008R per trade on average, and waiting for the retest lost 0.061R (see 'The same breaks' below).

After the break

Waiting for the retest skips the failed breaks

We followed every break in the 30 tests for 10 candles, including the breaks that came while a trade was open: 163,075 breaks. We grouped them by what price did first. To see what each group was worth, we also ran the 30 tests with a version that enters at every break at once. Then we put each trade of that version in the group of the break it was made on. 'Reached the take-profit' is the share of trades that reached the take-profit before the stop-loss. 'Average trade' is the average result in R, after trading costs.

What price did in the 10 candles after the break Breaks Trades entered at the break Reached the take-profit Average trade
Came back to the zone and closed beyond it again: a retest 99,051 (60.7%) 28,314 34.9% 0.000R
Closed back through the whole zone first: a failed break 34,802 (21.3%) 10,201 3.4% −0.891R
Neither: no retest, and no close back through the zone 29,198 (17.9%) 8,236 60.3% +0.717R
All breaks 163,075 46,758 32.5% −0.068R

The standard rules trade only the retest group (the first row), and they enter at the retest instead of at the break. They traded 35,276 out of the 99,051 retests. They take one trade at a time and follow only the newest break, so many retests came while a trade was open or after a newer break. 3,780 more retests were skipped because of the smallest trade size (see 'Trade size limits'). 32.9% of the 35,276 trades reached the take-profit, and the average trade lost 0.058R. 24 breaks were still being followed when the tests ended, so the rows add up to 163,051 breaks and 46,751 trades. The shares hardly changed from chart to chart: 61.0% of the breaks were retested on 15-minute charts, 59.9% on 1-hour charts and 59.9% on 4-hour charts.

The same breaks

On the same breaks, entering at the break made more per trade

In 21,076 breaks, both versions made a trade: at the break in one, and at the retest in the other. These cards compare the two trades of each break, after trading costs.

Waiting for the retest
−0.061R
average trade. 32.7% reached the take-profit: 6,901 out of 21,076
Entering at the break
+0.008R
average trade. 35.1% reached the take-profit: 7,401 out of 21,076
Retest entry at a better price
44.6%
of the 21,076 breaks. A better price is a lower one for a buy, and a higher one for a sell

On these breaks, on 15-minute charts, waiting lost 0.075R per trade, and entering at the break lost 0.004R (15,281 breaks). On 1-hour charts, waiting lost 0.032R, and entering at the break made 0.036R (4,617 breaks). On 4-hour charts, waiting made 0.009R, and entering at the break made 0.046R (1,178 breaks).

Daily charts

On daily charts, waiting for the retest gave only about 5 or 6 trades a year

Daily charts give few breaks, so we used more years: 2007 to 2025 for the currency pairs, gold and silver, and 2014 to 2025 for the stock indices. These 10 tests are not part of the 30 tests above. Each cell shows the total change in the account over those years, after trading costs, and the number of trades.

Market Years Waiting for the retest Entering at the break
EUR/USD 2007–2025 +0.6% (114 trades) +8.7% (158 trades)
GBP/USD 2007–2025 +3.4% (120 trades) −3.3% (143 trades)
USD/JPY 2007–2025 −3.9% (114 trades) −0.9% (130 trades)
AUD/USD 2007–2025 +11.3% (103 trades) −8.4% (149 trades)
Gold 2007–2025 +13.5% (98 trades) +22.4% (128 trades)
Silver 2007–2025 +8.5% (104 trades) +1.3% (144 trades)
Nasdaq 100 2014–2025 +0.5% (62 trades) +5.5% (89 trades)
S&P 500 2014–2025 −1.6% (67 trades) +15.0% (79 trades)
Dow Jones 2014–2025 −15.5% (55 trades) +8.5% (84 trades)
DAX 2014–2025 −1.4% (75 trades) −4.0% (98 trades)

Waiting for the retest made money in 6 of the 10 daily tests, and so did entering at the break. The best total result, +22.4% for gold when entering at the break, is about 1.1% a year. With 55 to 158 trades in each test, results this small could easily be luck. On daily charts too, about 6 breaks in 10 were retested within 10 candles. The daily tests also cover earlier years, when our data has more wrong prices: on the Nasdaq 100, the S&P 500, the DAX, gold and silver. Without them, no daily result changed from a gain to a loss, or from a loss to a gain. The biggest change was the Nasdaq 100 when entering at the break: +10.4% without them, against +5.5% in the table.

The strategy

What the break and retest strategy is

Break and retest is a way to trade a breakout of a support or resistance zone. A support zone is where falling prices stopped and turned up before. A resistance zone is where rising prices stopped and turned down. When a candle closes above a resistance zone, many traders don't buy at once. They wait for price to come back to the zone and turn up from it, as if the old resistance had become support. If price touches the zone and closes above it again, they buy, with the stop-loss below the zone. After a close below a support zone, they do the opposite and sell. Traders give three reasons to wait for the retest. First, it filters out false breakouts, where price closes beyond a zone and then falls back. This page calls them failed breaks. Second, it gives a better price. Third, it allows a stop-loss closer to the entry price. The findings above test all three reasons. Many trading videos and courses teach this strategy. Our rules measure distances with the ATR (average true range): an indicator of how far price moves in an average candle, over the last 14 candles.

Retest window
Up to 10 candles after the break candle
Entry
A market order at the open of the candle after the retest candle
Stop-loss
0.5 ATR beyond the far side of the zone, with the ATR of the retest candle
Take-profit
Twice as far from the retest candle's close as the stop-loss (2R), as a limit order
Risk per trade
1% of the account balance at the time of the trade. The account started at $10,000
Spreads
Currency pairs: 0.8 pips on EUR/USD, 1.2 on GBP/USD, 0.9 on USD/JPY and 1.0 on AUD/USD. A pip is 0.0001, or 0.01 on USD/JPY. Metals: $0.30 on gold and $0.020 on silver. Stock indices: 1.5 points on the Nasdaq 100, 0.4 on the S&P 500, 2.0 on the Dow Jones and 1.0 on the DAX. For silver, the Nasdaq 100, the Dow Jones and the DAX, we used wider spreads than our backtest engine's default spreads, to match a typical retail broker. Our spreads stay the same at all times, but real spreads widen around news and at the end of the trading day. We charged no commission. On average, the spread cost 0.054R per trade on 15-minute charts, 0.027R on 1-hour charts and 0.012R on 4-hour charts
How orders pay the spread
The entry is a market order, so it pays half the spread. A trade that closes at its stop-loss pays the other half. The take-profit is a limit order: it pays no spread, but it fills only when price trades through the limit. Our charts show the sell price (the bid), and the buy price (the ask) is one spread higher. A sell trade's take-profit is a buy order, so it fills only when the chart price goes one spread below it
Trade size limits
Each market has a smallest trade size: 1,000 units of a currency pair, 1 ounce of gold, 50 ounces of silver, or 0.1 of an index contract. Sizes go up in steps of that size. The test rounds each size down to a step, so some trades risked less than 1%. With the standard rules, 2,058 out of 35,276 trades risked less than 0.8% of the account instead of 1%. 1,515 of them came after the account had fallen below $5,000, which made each step a bigger part of a trade. When even the smallest size risked more than 1%, the test skipped the trade: 3,780 out of 39,056 trade signals. 3,359 of them were on silver's 15-minute chart, after the silver account had fallen to about $1,550 in August 2021. 332 were on gold's 15-minute chart, after the gold account had fallen to about $1,375 in January 2024. Both accounts had already lost more than 80% by then. Our backtest engine also limits the size of a trade to what the account's margin allows: 33 trades on 15-minute charts were made smaller for this
Order of events inside a candle
We use 1-minute data to see which price came first. If the stop-loss and the take-profit are both reached in the same minute, the test counts the trade as a loss. If price jumps past the stop-loss, for example over a weekend, the trade closes at the first price after the jump and loses more than planned. With the standard rules, 77 out of 23,648 trades that hit their stop-loss lost more than 1.5R. 23 of them were on the DAX, many because of wrong prices in our data (see 'Wrong prices in our data'). The worst trade on any other market lost 6.8R: USD/JPY on the 15-minute chart, over the weekend of 19 and 20 July 2025
Overnight (swap) fees
They are not included. Brokers charge (or sometimes pay) a fee for each night a trade stays open. Half of the trades closed within 2.7 hours on 15-minute charts, 13 hours on 1-hour charts and 2.4 days on 4-hour charts. 70.8% of the 4-hour trades stayed open longer than a day, so these fees would change the 4-hour results the most
Price data
CFD prices: the prices a broker quotes for a CFD (contract for difference), the product most brokers outside the US offer for trading these markets. The 30 tests use 2020 to 2025. The daily tests use 2007 to 2025 for the currency pairs, gold and silver, and 2014 to 2025 for the stock indices. The rules skip flat candles (high equal to low, as on some market holidays). They also skip the few minutes of prices after the weekly close on Fridays, which make a tiny extra candle in some of our data. In any test, the skipped candles are at most 0.53% of all candles. Skipped candles never count as a pivot, a break or a retest, or in the ATR and the 200 EMA
Wrong prices in our data
Our data has some minutes with prices far from where the market really traded. We counted a minute as wrong when it had no trading volume and its price was more than 0.75% away from the last traded close. From 2020 to 2025, the DAX has 967 such minutes on 40 days, 888 of them in the late evening, from 20:15 UTC. Silver has 7, all on 1 June 2023. The other 8 markets have none in these years. The results on this page include these prices, as our data shows them, so that the same backtest in our app gives the same result. We also ran every DAX and silver test again without them. Silver's results changed by 0.2 percentage points at most. The DAX's results changed a lot. With the standard rules, the DAX's 4-hour test made 2.6% without them, instead of the 2.4% loss shown on this page. Its 15-minute test lost 30.7% without them, instead of 47.5%. Entering at the break on the DAX's 15-minute chart made 53.3% without them, instead of losing 23.0%. With strong break candles only, the DAX's 4-hour test lost 3.9% without them, instead of making 3.1%. The DAX's biggest losing trade, 6.9R on 23 October 2020, was stopped out by one of these prices

The rules we tested

  1. Find the turning points. A pivot high is a candle whose high is higher than the highs of the 3 candles before it and the 3 candles after it. A pivot low is a candle whose low is lower than the lows of the 3 candles on each side. A pivot is only known 3 candles later, so the test only uses it from then on.
  2. Draw the zones. A resistance zone is a group of 2 or more pivot highs from the last 100 candles at about the same price. Sorted by price, each one is less than 0.5 ATR from the next. The zone runs from 0.25 ATR below the lowest of these pivot highs to 0.25 ATR above the highest. A support zone is made the same way from pivot lows. The zones are drawn again at every candle, with that candle's ATR. These are the same zones as on our support and resistance breakout page (see 'Related strategies we tested').
  3. Wait for a break. A break of resistance is a candle that closes above the top of a resistance zone, when the candle before it closed at or below that top. If one candle closes past more than one zone, use the zone nearest to the close.
  4. Wait up to 10 candles for the retest. A retest is a candle whose low comes back down to the top of the zone, or below it, and that closes above the top again. Buy at the open of the candle after the retest. If a candle closes below the bottom of the zone first, the break has failed, and there is no trade. If no retest comes within 10 candles, there is no trade either.
  5. Put the stop-loss 0.5 ATR below the bottom of the zone, with the ATR of the retest candle. Put the take-profit twice as far from the retest candle's close as the stop-loss, so a trade that reaches it makes 2R before costs. Size the trade so that a loss at the stop-loss costs 1% of the account.
  6. For a break of support, do the opposite. Wait for a close below the bottom of a support zone. Then wait for a candle whose high comes back up to the bottom of the zone, and that closes below it again. Sell (go short) at the open of the next candle, with the stop-loss 0.5 ATR above the top of the zone.
  7. Only one trade is open at a time. The test follows only the newest break: a new break replaces the one it was waiting on. A break that comes while a trade is open is skipped.

The method

How we tested it

The test

Markets
EUR/USD, GBP/USD, USD/JPY, AUD/USD, Gold, Silver, Nasdaq 100, S&P 500, Dow Jones and DAX
Charts
15-minute, 1-hour and 4-hour candles
Dates
January 2020 to December 2025
Account
$10,000, risking 1% of the account on each trade
Trading costs
Included. Every trade pays that market's normal trading cost: the spread, which is the gap between the buy price and the sell price.

How a test passes

We call a test passed only if it meets all four checks. A strategy can make money in one backtest and still fail one of these checks.

  • At least 100 trades. With fewer trades, a good result could be luck.
  • It made money from 2020 to 2023 and again from 2024 to 2025. This shows whether the strategy kept working in the newer years, not only in the older ones.
  • A profit factor (the money won divided by the money lost) of at least 1.2 from 2024 to 2025, after trading costs.
  • In 95% of 1,000 random shuffles of the trades, the account must not fall more than 30% from its highest point.

Improvements

Can the break and retest strategy be improved?

We tried three changes that traders often make, one at a time, on the same 30 tests. The first one skips the retest and enters at the break. The second one only trades breaks in the direction of the 200 EMA trend. The third one only trades breaks made by a big candle. The table explains each one and counts the tests that made money in each period.

Version Made money 2020–2023years used to pick the best version Made money 2024–2025years not used to pick it Made money in both periods Passed all four checks
Standard rules: wait for the retest The rules listed under 'The rules we tested'. Wait up to 10 candles for a retest of the zone, then trade. The stop-loss goes 0.5 ATR beyond the zone, and the take-profit twice as far from the entry as the stop-loss. 9 of 30middle test −14.1% 11 of 30middle test −6.9% 7 3
Enter at the break, no retest Don't wait for a retest. Buy at the open of the next candle right after a close above a resistance zone, or sell right after a close below a support zone. The stop-loss is the same as in the standard rules, 0.5 ATR beyond the zone, with the ATR of the break candle. The take-profit is twice as far from the close of the break candle as the stop-loss. This is the plain breakout that the retest is meant to improve. 5 of 30middle test −33.8% 8 of 30middle test −14.3% 2 0
With the 200 EMA trend only Only buy a break of resistance if the break candle closes above the 200 EMA. Only sell a break of support if the break candle closes below the 200 EMA. The 200 EMA (exponential moving average) is an average of the last 200 closing prices that gives more weight to recent prices. Many traders only trade breaks in the direction of the bigger trend. 9 of 30middle test −15.9% 18 of 30middle test +1.2% 8 3
With strong break candles onlyBest on 2020–2023 Only trade a break if the body of the break candle, from its open to its close, is at least 1 ATR long, in the direction of the break. Many traders say that a big break candle shows a real break, and that a small break candle shows a weak break that may fail. 11 of 30middle test −10.8% 9 of 30middle test −5.5% 3 1

None of the three changes clearly improved the strategy. We picked the best change using 2020–2023 only, and then checked it on 2024–2025. Taking only strong break candles made money in the most tests in 2020–2023: 11 of the 30, against 9 with the standard rules. But in 2024–2025, it made money in only 9 tests, against 11 with the standard rules. Only 3 tests made money in both periods with strong break candles, against 7 with the standard rules. One of these 3, the DAX on the 4-hour chart, lost 3.9% without the wrong prices in our data. So without them, only 2 tests would have made money in both periods. Trading only with the 200 EMA trend made money in 9 tests in 2020–2023, the same as the standard rules, and in 18 tests in 2024–2025. 8 tests made money in both periods with it, against 7 with the standard rules, and 6 of the 8 were on 4-hour charts. Entering at the break, without waiting for a retest, made money in 4 of the 30 tests from 2020 to 2025, and in 2 of them in both periods.

Passed all four checks with strong break candles only

  • GBP/USD, 4-hour

Questions

Questions traders ask

Is it better to wait for the retest or to enter on the breakout?

In our test, waiting made money in more tests, but it did not give a better price. With the retest, 9 of the 30 tests made money from 2020 to 2025, against 4 when entering at the break. Waiting helped because it skipped the breaks that failed. Trades entered at those failed breaks lost 0.891R each on average. On the 21,076 breaks that both entries traded, entering at the break did better: +0.008R per trade, against −0.061R for the retest entry. On our support and resistance breakout page, waiting for a retest did not help. That page put the stop-loss 1 ATR below the top of the zone. This is usually closer to the entry than the stop-loss on this page, 0.5 ATR below the bottom of the zone. That page also used other markets and years: 2014 to 2025, on 1-hour, 4-hour and daily charts. We ran this page's 30 tests again with that page's stop-loss. Waiting still made money in more tests than entering at the break: 8 against 5. Waiting and entering at the break each made money in both periods in 4 tests. So the answer depends on the markets, years and charts you test.

How long should you wait for a retest?

We only tested a window of 10 candles, so we can't say which window is best. Most retests came fast. Of the 99,051 breaks that were retested within 10 candles, 46.5% were retested on the candle right after the break, and 89.6% within 5 candles. Retests on candles 6 to 10 did a little worse than retests on candles 1 and 2. On all charts together, trades after a retest on the first candle lost 0.049R on average (17,653 trades), and after a retest on the second candle 0.050R (7,302 trades). Trades after a retest on candles 6 to 10 lost 0.084R (2,811 trades).

What is the best timeframe for break and retest?

In our test, the 4-hour chart did best. There, 5 of the 10 tests made money from 2020 to 2025, and 4 of them in both periods. On 1-hour charts, 4 of the 10 made money, and on 15-minute charts, none did. The average trade made 0.040R on 4-hour charts, and lost 0.026R on 1-hour charts and 0.074R on 15-minute charts. These results leave out overnight (swap) fees, which would change the 4-hour results the most: 70.8% of the 4-hour trades stayed open longer than a day. On daily charts, waiting for the retest gave only about 5 or 6 trades a year. With the standard rules, 6 of the 10 daily tests made money, but the best one, gold, made only 13.5% from 2007 to 2025.

Should you only trade breaks in the direction of the trend?

Not clearly. Trading only with the 200 EMA trend made money in more tests in 2024–2025, but not in 2020–2023. With the 200 EMA filter, 18 of the 30 tests made money in 2024–2025, against 11 with the standard rules. In 2020–2023, 9 tests made money with it, the same as with the standard rules. 8 tests made money in both periods with it, against 7 with the standard rules, and 6 of the 8 were on 4-hour charts. It made fewer trades: 29,242, against 35,276 with the standard rules.

Keep exploring

Related strategies we tested

Support & resistance Support and resistance breakout strategy backtest Made money in 10 of 30 tests, 5 of them in both periods. Best: GBP/JPY, 4-hour, +93% Supply Demand Supply and demand zone strategy backtest Made money in 1 of 30 tests, 0 of them in both periods. Best: Gold, 4-hour, +0.8% Pivot points Pivot point bounce strategy backtest on forex, gold and indices Made money in 3 of 27 tests, 3 of them in both periods. Best: Nasdaq 100, 5-minute, +245%
The strategy code we ran

This is the exact code from the BacktestingMax strategy engine. Paste it into the strategy editor in the app to run it on any market.

class BreakAndRetest(Strategy):
    """Break and retest of a support or resistance zone, as most traders learn it, plus three
    changes traders make.
    Zones (the same zones as our support and resistance breakout page). A pivot high is a
    candle whose high is higher than the highs of the 3 candles before it and the 3 candles
    after it, so it is known 3 candles later. A pivot low is the mirror image. On every
    candle, take the pivot highs of the last 100 candles and sort them by price. Pivot highs
    less than 0.5 ATR(14) apart belong to the same zone (each one within 0.5 ATR of the next).
    A zone needs 2 or more of them (2 touches), and it runs from 0.25 ATR below its lowest
    pivot high to 0.25 ATR above its highest one: a band of 0.25 ATR either side of each pivot.
    Support zones are made the same way from pivot lows.
    Standard (all switches off):
      1. The break: a candle closes above the top of a resistance zone, and the candle before
         it closed at or below that top. If one candle breaks several zones, the zone nearest
         the close counts.
      2. The retest: within the next 10 candles, the first candle whose low comes back to the
         zone (at or below its top) and that closes above the top again. Buy at the next
         candle's open. A close below the bottom of the zone first cancels the setup (the
         break failed). If neither happens within 10 candles, there is no trade.
      3. Stop-loss 0.5 ATR below the bottom of the zone. Take-profit 2R: twice the distance
         from the retest candle's close to the stop-loss. Size so the stop costs 1% of the
         account.
      Sells mirror this: a close below a support zone, then a candle whose high comes back to
      the zone (at or above its bottom) and that closes below the bottom again; stop-loss 0.5
      ATR above the top of the zone.
      One trade at a time. Only the newest break is watched: a new break replaces the one
      being watched, and a break while a trade is open is skipped.
    Skipped candles: flat candles (high = low: no price moved) and candles that open on a
    Friday at 17:00 New York time or later (a few minutes of prices after the weekly close in
    some data). They are never pivots, breaks or retests, and they don't count in the ATR, the
    EMA or any candle count. That is why the ATR, the pivots and the EMA are worked out here
    instead of with the built-in indicators.
    The changes, one at a time:
      breakout = 1   no retest: buy at the next candle's open right after the break. Same
                     stop-loss (0.5 ATR below the bottom of the zone), take-profit 2R from the
                     break candle's close.
      trend    = 1   only buy a break above resistance when the break candle closes above the
                     200 EMA; only sell a break below support when it closes below the 200 EMA
      strong   = 1   only strong breaks: the break candle's body (open to close) is at least
                     1 ATR, in the direction of the break
    """
    params = {"pivot_bars": Param(type=int, default=3, min=1, max=20),
              "zone_lookback": Param(type=int, default=100, min=20, max=1000),
              "zone_atr": Param(type=float, default=0.25, min=0.05, max=2.0),
              "min_touches": Param(type=int, default=2, min=2, max=10),
              "retest_bars": Param(type=int, default=10, min=1, max=50),
              "stop_atr": Param(type=float, default=0.5, min=0.0, max=5.0),
              "target_r": Param(type=float, default=2.0, min=0.5, max=10.0),
              "breakout": Param(type=int, default=0, min=0, max=1),
              "trend": Param(type=int, default=0, min=0, max=1),
              "strong": Param(type=int, default=0, min=0, max=1)}
    lookback = 2
    def init(self, ctx):
        self.ny = ctx.clock("America/New_York")
        self.n = 0              # candles used so far (skipped candles are not counted)
        self.recent = []        # (candle number, high, low) of the last 7 candles used
        self.highs = []         # (candle number, price) of each pivot high in the last 100 candles
        self.lows = []          # the same for pivot lows
        self.prev_close = None  # close of the previous candle used
        self.atr = None         # Wilder's average of the true range over 14 candles, as the built-in ATR
        self.atr_count = 0
        self.ema = None         # 200 EMA of the closes
        self.ema_count = 0
        self.setup = None       # the break being watched: (side, zone top, zone bottom, last candle)
    def zones(self, pivots, half, min_touches):
        """Pivots less than 2 x half apart, merged into zones: (bottom, top, touches)."""
        out = []
        group = []
        for price in sorted(x[1] for x in pivots):
            if group and price - group[-1] >= 2 * half:
                if len(group) >= min_touches:
                    out.append((group[0] - half, group[-1] + half, len(group)))
                group = []
            group.append(price)
        if len(group) >= min_touches:
            out.append((group[0] - half, group[-1] + half, len(group)))
        return out
    def enter(self, ctx, side, stop, tag):
        entry = ctx.close[0]
        risk = (entry - stop) * side
        if risk <= 0:
            return None
        size = ctx.size_by_risk_pct(0.01, stop=stop, entry=entry)
        target = entry + side * ctx.params.target_r * risk
        if side > 0:
            return ctx.buy(size=size, sl=stop, tp=target, tag=tag)
        return ctx.sell(size=size, sl=stop, tp=target, tag=tag)
    def on_bar(self, ctx):
        high, low, close = ctx.high[0], ctx.low[0], ctx.close[0]
        # A skipped candle (see above): ignore it completely.
        if high <= low or (self.ny.weekday == 4 and self.ny.hour >= 17):
            return
        p = ctx.params
        self.n += 1
        n = self.n
        prev_close, self.prev_close = self.prev_close, close
        # ATR(14), Wilder's smoothing, and the 200 EMA, on the candles used.
        if prev_close is None:
            true_range = high - low
        else:
            true_range = max(high - low, abs(high - prev_close), abs(low - prev_close))
        self.atr = true_range if self.atr is None else self.atr + (true_range - self.atr) / 14
        self.atr_count += 1
        self.ema = close if self.ema is None else self.ema + (close - self.ema) * 2 / 201
        self.ema_count += 1
        # Pivots: the middle one of the last 7 candles, if its high (low) is the only highest
        # (lowest) of the 7. Keep the pivots of the last 100 candles.
        k = p.pivot_bars
        self.recent.append((n, high, low))
        del self.recent[:-(2 * k + 1)]
        if len(self.recent) == 2 * k + 1:
            mid = self.recent[k]
            highs = [x[1] for x in self.recent]
            lows = [x[2] for x in self.recent]
            if mid[1] == max(highs) and highs.count(mid[1]) == 1:
                self.highs.append((mid[0], mid[1]))
            if mid[2] == min(lows) and lows.count(mid[2]) == 1:
                self.lows.append((mid[0], mid[2]))
        oldest = n - p.zone_lookback
        self.highs = [x for x in self.highs if x[0] > oldest]
        self.lows = [x for x in self.lows if x[0] > oldest]
        if self.atr_count < 14 or prev_close is None:
            return
        a = self.atr
        if ctx.position is not None:
            self.setup = None
            return
        # 2. The retest of the break being watched.
        if self.setup is not None:
            side, top, bottom, last = self.setup
            if n > last:
                self.setup = None  # no retest within 10 candles
            elif (side > 0 and close < bottom) or (side < 0 and close > top):
                self.setup = None  # price closed back through the whole zone: the break failed
            elif side > 0 and low <= top < close:
                self.setup = None
                self.enter(ctx, 1, bottom - p.stop_atr * a, "retest_buy")
                return
            elif side < 0 and high >= bottom > close:
                self.setup = None
                self.enter(ctx, -1, top + p.stop_atr * a, "retest_sell")
                return
        # 1. A new break.
        half = p.zone_atr * a
        up = [z for z in self.zones(self.highs, half, p.min_touches) if prev_close <= z[1] < close]
        down = [z for z in self.zones(self.lows, half, p.min_touches) if prev_close >= z[0] > close]
        if not ctx.gate("close_breaks_zone", len(up) > 0 or len(down) > 0):
            return
        side = 1 if len(up) > 0 else -1
        if side > 0:
            bottom, top, _ = max(up, key=lambda z: z[1])
        else:
            bottom, top, _ = min(down, key=lambda z: z[0])
        with_trend = self.ema_count >= 200 and (close - self.ema) * side > 0
        if not ctx.gate("trend_filter", p.trend == 0 or with_trend):
            return
        strong = (close - ctx.open[0]) * side >= a
        if not ctx.gate("strong_break", p.strong == 0 or strong):
            return
        if p.breakout == 1:
            self.setup = None
            if side > 0:
                self.enter(ctx, 1, bottom - p.stop_atr * a, "breakout_buy")
            else:
                self.enter(ctx, -1, top + p.stop_atr * a, "breakout_sell")
            return
        self.setup = (side, top, bottom, n + p.retest_bars)

Your turn

Test the break and retest strategy yourself

Change the settings, the market or the stop-loss and see the result in seconds. Ask the BacktestingMax AI: Backtest a break and retest strategy on USD/JPY, 4-hour chart: resistance zones from 2 or more pivot highs (3 candles on each side) of the last 100 candles, each within 0.5 ATR(14) of the next, widened by 0.25 ATR on each side; after a close above a zone, wait up to 10 candles for a candle whose low touches the zone top and that closes above it, then buy at the next open; no trade if a candle closes below the zone first; stop-loss 0.5 ATR below the zone, take-profit 2R; mirror for support zones.

Try it free in BacktestingMax

Free account. No credit card needed.

See every strategy we tested Browse strategies shared by traders

Backtest on historical data with trading costs, run by BacktestingMax. Past results do not guarantee future results, and nothing here is financial advice. Updated 16 November 2026.