Skip to content
Research methods 9 min read

Breakouts and pullbacks: entries, retests and failures

Define a stock breakout as a close above a level set in advance, judge retests and pullbacks in an uptrend, and recognize a failed breakout early.

Write and combine price, volume, and indicator rules in the CleverScan editor.

A breakout is a close above a level you wrote down before the session, and a pullback is a pause that leaves the higher-low structure intact. Decide the level, the confirmation and the invalidation first, then judge each chart against them.

Define a breakout before it happens

A breakout is a daily close above a price level that you defined before the session, such as the highest high of a base or a prior swing high. Writing the level down first keeps the reading honest, because a level drawn after the move can always be placed just below the close. Trading above the level during the session does not count by this definition; the close decides. Many researchers also want volume above its recent average on the breakout session, as a sign of wider participation.

Hypothetical candlestick chart: a flat-topped base below 50.00 with rising lows, a high-volume close above 50.00, a pullback that holds at the level, and a continued advance above a rising 20-session average.BaseLevel 50.00SMA 20BreakoutRetestVolume
A hypothetical breakout, not market data. The 50.00 level is the highest high of the shaded base and is known before session 32. Sessions are counted from the left edge.
The breakout and retest sessions in the figure
SessionClose ($)Low ($)Close vs 50.00 (%)Volume ratio
3250.9049.481.802.72
3351.6050.563.201.70
3452.3051.454.601.28
3750.6550.151.300.90
3951.5550.773.100.66

Volume ratio is the session’s volume divided by its average over the last 20 sessions, the current one included, the same definition as the CleverScan field volumeRatio. Session 32 closes 1.80% above the level on 2.72 times average volume. The retest in session 37 trades down to 50.15 and closes above the level on lighter volume.

securityType = "Stock" and hi50FromHighPct >= -1 and volumeRatio >= 1.5

Finds stocks closing within 1% of their highest high of the last 50 sessions on at least 1.5 times average volume. The 50-session window includes the current session, so hi50FromHighPct is never above zero; it is zero only when a session closes at its own high and that high is the highest of the window. Check each result on the chart to confirm that the high it cleared was a level you had marked.

Price compression before a breakout

Compression is a base in which the swings get smaller: lows rise toward a flat top, daily ranges narrow and volume tends to fade. In the figure the base lows rise from 46.20 to 47.30 to 48.40 while the highs stay between 49.90 and 50.00. Compression describes a narrowing range, not a direction, and the same tightening can resolve with a close below the lows.

  • The height of the last 20 sessions’ range as a percent of its low, compared with earlier bases of the same stock.
  • Average true range as a percent of the close, atrPct14, compared with its own recent readings.
  • Swing lows that rise while swing highs stay level, the outline of an ascending triangle.
  • Volume below its 20-session average on most sessions of the base.
  • Narrowing Bollinger Bands, which measure the same contraction from closes.
securityType = "Stock" and hi20FromHighPct >= -3 and hi20FromLowPct <= 8 and atrPct14 <= 3

Keeps stocks whose close is within 3% of the 20-session high and within 8% of the 20-session low, which caps the 20-session span at about 11.3% of the low, with an average true range of no more than 3% of the close.

Counter-example: a stock that drifts lower in a narrowing range for weeks is compressing too. A narrow range near the bottom of a decline answers a different question from a narrow range below a flat top in an uptrend, so read the structure around the base before reading the compression as strength.

How to wait for a breakout retest

A retest is a return toward the broken level after a breakout. If the level now acts as support, sessions close above it, or within a small tolerance of it, and the next swing low forms there. Waiting for a retest means writing three things in advance: the zone you expect price to revisit, the pattern that confirms the hold, and the close that cancels the idea.

  1. Set the retest zone, for example from the level down to 1% below it: 50.00 to 49.50 in the figure.
  2. Judge closes, not intraday lows: a dip into the zone that closes back above the level counts as a hold.
  3. Ask for confirmation, such as a close above the high of the retest session. That high is 51.23 in the figure, and session 39 closes above it at 51.55.
  4. Cancel the idea on a close below the zone, which turns the breakout into a failed one.
  5. Set a time limit in sessions, and record it when a breakout never offers a retest.

Not every breakout returns to its level. Waiting gives up the moves that never look back in exchange for a closer invalidation point, which is the trade-off the next section measures.

Breakout entry vs pullback entry

A breakout entry acts on the breakout close itself; a pullback entry waits for the retest and its confirmation. The breakout entry takes part in every follow-through but usually needs a wider invalidation, often below the last higher low of the base. The pullback entry can place its invalidation just below the retest low, and it misses the moves that never pull back.

Two entry rules applied to the hypothetical breakout
Entry ruleEntry close ($)Invalidation ($)Risk per share ($)Risk (% of entry)
Breakout close, session 3250.9048.402.504.91
Pullback confirmation, session 3951.5550.151.402.72

Here the pullback entry pays $0.65 more per share and risks $1.10 less. The comparison belongs to one hypothetical chart. How often breakouts offer a retest differs between stocks and periods, so measure it on your own sample before preferring either rule, and carry the risk per share into position sizing.

How to recognize a failed breakout

A failed breakout closes above the level and then closes back below it within a few sessions. The warning signs often appear together: a small margin above the level, ordinary volume, a long upper wick on the breakout session and a quick close back inside the base. The failure is confirmed when price also closes below the last higher low of the base, because the structure that supported the breakout is gone.

Hypothetical candlestick chart: a base below 50.00, one session that closes just above 50.00 on ordinary volume with a long upper wick, then closes back below 50.00 and later below the base low of 47.60.Level 50.00Low 47.60Close aboveBelow lowVolume
A hypothetical failed breakout, not market data. Sessions are counted from the left edge.
The failed breakout session by session
SessionClose ($)Close vs 50.00 (%)Volume ratioReading
2350.350.701.09Close above the level on ordinary volume
2449.70−0.600.95Back below the level
2548.90−2.201.19Deeper inside the base
2647.35−5.301.69Below the last higher low of 47.60

Counter-example: a single close back below the level is not always a failure. Some breakouts dip back into the base for a session and recover inside the retest zone, which is why the definition above waits for a close below the last higher low before calling the breakout failed.

How to confirm a pullback in an uptrend

A pullback is a decline inside an uptrend that leaves the higher-low structure intact. Before treating a decline as a pullback, confirm the trend: a series of higher highs and higher lows, a close above a rising 50-session average, and the 50-session average above the 200-session average. Then measure how much of the last advance the decline gave back, and wait for the stock to show that it has stopped falling.

Retracement (%) = (swing high − pullback low) ÷ (swing high − swing low) × 100
swing low
the low where the last advance started
swing high
the high where the advance ended; it must be above the swing low, otherwise there is no advance to retrace
pullback low
the lowest low of the decline so far
Two hypothetical pullbacks of the same advance
CaseSwing low ($)Swing high ($)Pullback low ($)Retracement (%)
Shallow pullback40.0050.0046.2038.00
Deep pullback40.0050.0041.5085.00

The shallow case gives back 38% of the advance and holds well above the 40.00 swing low. The deep case gives back 85%: the structure is not broken yet, but it is close enough to the prior low that the next sessions decide whether the uptrend survives. Confirmation comes from price, such as a close above the prior session’s high, or a new higher low followed by a close above the last minor swing high.

securityType = "Stock" and close > sma200 and sma50 > sma200 and sma50 > Ago(1, SMA(close, 50)) and distSma50Pct >= -2 and distSma50Pct <= 2

Lists stocks above their 200-session average whose 50-session average is above the 200-session one and higher than a session earlier, closing within 2% of that 50-session average. It finds candidates near a common pullback area; whether the swing structure is intact still has to be read on the chart.

Pullback or reversal?

A pullback and the start of a reversal look alike for the first few sessions. The difference shows in structure and participation: a pullback holds above the last higher low, while a reversal closes below it and then fails to make a new high. No single session settles the question, so compare the evidence side by side.

Evidence that separates a pullback from a reversal
EvidencePullbackReversal
Last higher lowHolds on a closing basisCloses below it
Next rallyMakes a higher highStops below the prior high, a lower high
VolumeLighter on down sessions than on the advanceHeavier on down sessions than on up sessions
DepthSimilar to or shallower than earlier pullbacksDeeper than any pullback of the trend
50-session averageStill risingFlattening or turning down, with closes below it

Counter-example: a decline that stops at the 50-session average is not automatically a pullback. If it already closed below the last higher low on the way down, the average is the first support of a possible downtrend, not evidence that the uptrend continues.

Bullish divergence without a price reversal

A bullish divergence appears when price makes a lower low but a momentum oscillator such as RSI or MACD makes a higher low. It says that the decline lost speed between the two lows. It does not say that the decline is over: price can keep falling while the oscillator keeps rising, sometimes producing two or three divergences in a row.

  • Price confirmation: a close above the last lower high, which ends the lower-high sequence.
  • Structure confirmation: a higher low after the divergence low.
  • Participation: volume that expands on up sessions after the low.
  • Horizon: a divergence on a daily chart speaks to daily swings, not to a trend of several months.

Divergence is computed from the oscillator rather than from the swing structure, which is why it can persist through a downtrend. Read it on the chart: Stock Charts in TradeClever plots RSI and MACD in panes below the candles. CleverScan reads the current rsi14 value but does not compare two swing lows, so a divergence is something you mark in your notes, not a scan condition.

A research checklist for breakouts and pullbacks

Run the same steps on every candidate so that results from different charts can be compared. The list starts from a scan and ends with a written plan; it does not choose trades for you. Save the scan you use and keep a note of each rule’s version.

  1. Run a breakout or pullback rule in CleverScan and save it.
  2. Open each match in Stock Charts on a 1Y range and confirm the trend structure.
  3. Mark the level the breakout cleared and confirm that it existed before the breakout session.
  4. Measure the base: its height in percent, its length in sessions and whether its lows were rising.
  5. Check the breakout close: its margin above the level and its volume ratio.
  6. For a pullback, measure the retracement and locate the last higher low.
  7. Write the entry rule, the invalidation level and the time limit before the next session.
  8. Review the setup later with the same rule, whatever the outcome.
Read the CleverScan syntax reference

Read our data and methodology notes for calculation context. This guide explains research tools and observations. It does not recommend a trade or investment.

Follow your curiosity

One good question leads to another.

All guides
Make room for better research

Put your curiosity to work.

Build a scan with filters or CleverScan rules. Explore the results. Find your next idea.

Write a CleverScan rule