Chart pattern · Bullish continuation

Bull Flag pattern

By the PatternX team · Published

Type
Bullish continuation
PatternX trades it
Long (buy) on the breakout
Also called
bullish flag, flag pattern
Detected on
8 timeframes, 1-minute to daily — crypto, stocks, ETFs and FX

Short answer

A bull flag is a bullish continuation pattern: a sharp rally (the pole) followed by a short, orderly pullback or sideways drift (the flag), which completes when price breaks above the flag and the advance resumes. Traders commonly project the pole's height from the breakout as a target.

Bull flag pattern diagram.Price jumps in a steep pole, then drifts lower in a narrow, parallel channel that gives back less than half of the pole. Price breaks above the highest point of the flag; the stop sits at the flag’s low and the target one pole height above the breakout.Flag highPoleFlagTargetStopBreakout
A bull flag: a sharp pole and a pullback in a downward-sloping channel, with a long when price breaks above the flag’s high, a stop at the flag’s low and a target one pole height above the entry.

What is a Bull Flag?

A bull flag is one of the most widely traded continuation patterns. It has two parts: a fast, steep advance called the flagpole, and a compact consolidation that drifts sideways or slightly lower, often in a narrow channel that looks like a flag on a pole. The pattern completes when price breaks out above the flag, signaling that the uptrend has resumed.

The psychology is a pause, not a reversal. The pole is driven by aggressive buying: news, a breakout from a larger base, or a squeeze. Early buyers then take partial profits and late buyers hesitate to chase, so price rests. What makes it a flag is the character of that rest. It is shallow, orderly and usually quieter than the pole, which shows that profit-taking is not turning into real selling. When fresh buyers return, they meet little overhead supply and the breakout can be quick. If the pullback turns deep or disorderly instead, the pole's buyers may be heading for the exit, and the pattern no longer applies.

Anatomy of the Bull Flag

ComponentTypical appearanceWhy it matters
PoleA steep, near-vertical advance over a handful of barsShows the strength the flag is pausing from
FlagA tight range drifting sideways or down, often between two parallel linesShows sellers cannot undo the move
RetracementUsually well under half of the poleA shallow pullback keeps the trend intact
BreakoutA close above the flagSignals buyers have taken control again
TargetPole height added to the breakout priceThe conventional measured move

The pole defines the pattern. Without a sharp, recent advance, a sideways drift is just a range; compare the slower, box-shaped bullish rectangle. The flag's boundaries are usually drawn as two parallel trendlines through its highs and lows. When they converge instead, the pattern is a bullish pennant. And a small pullback that follows a rounded base rather than a sharp pole is more likely the handle of a cup and handle.

How to identify a Bull Flag

  1. Find the pole. Look for a sharp advance over a few bars, ideally on rising volume, that stands out from the price action before it.
  2. Check that the pause starts at the top. The flag should begin where the pole ends.
  3. Measure the pullback. A shallow retracement, often less than half of the pole, is typical. A pullback that erases most of the pole is not a flag.
  4. Check the slope. The flag usually drifts sideways or gently down. A consolidation that keeps climbing steeply is still the rally, not a pause.
  5. Check the duration. Flags are brief compared with the trend. If the consolidation drags on much longer than the pole took to form, it is a range or a base.
  6. Watch volume. Activity usually fades during the flag.
  7. Mark the breakout level: a trendline across the flag's highs, or the flag's highest high.
  8. Plan the trade first: a stop below the flag's low, a target one pole height above the breakout, and a check that the reward:risk is worth taking.

PatternX's exact tolerances for each check are in the detection section further down this page.

Confirmation

Two breakout definitions are in common use. The aggressive one is a close above a down-sloping trendline drawn across the flag's highs. The conservative one is a close above the flag's highest high. The trendline break comes earlier but is easier to fake; the high break comes later, after price has cleared every high in the flag. PatternX uses the conservative version: the latest bar must close above the flag's high.

Other signs traders weigh:

  • a wide breakout bar that finishes near its high;
  • volume clearly above its recent average;
  • the index or sector moving the same way.

PatternX evaluates the latest bar, which may still be forming, so a bar that is above the flag's high when evaluated can still fade back into the flag before it finishes.

Invalidation

The bull flag thesis is broken when:

  • price closes below the flag's low, the level that defines the pullback;
  • the pullback retraces more than about half of the pole, a sign that the pole's buyers are leaving;
  • the flag runs on so long that the pole's momentum is gone.

PatternX applies the retracement test at detection: a flag that gives back more than 50% of the pole is never reported. After a signal is issued or a trade opens, there is no further invalidation logic. The flag's low (or your tighter stop-loss setting) becomes the stop-loss, and no later change in the pattern closes the trade. If you use break-even or a trailing stop, those are managed by PatternX's software loop rather than placed at the venue.

Volume

A textbook bull flag has three volume phases: heavy volume on the pole as buyers rush in, lighter volume through the flag as the market pauses, and a renewed surge on the breakout. Light flag volume is read as a lack of selling pressure. Heavy volume on down bars inside the flag is a warning that holders are distributing.

PatternX does not check this profile. It has no flag-specific volume rule: no test of pole volume and none for a quiet flag. The only requirement is the universal one, that the breakout bar's volume is at least 1.2× its 20-bar average, and the size of that surge then feeds the score's volume factor. If the volume story matters to you, check it on the chart before approving a signal, for example with relative volume.

Common false signals

Common bull flag traps:

  • Weak poles. A slow, grinding advance followed by a pause is a staircase, not a flag. The pole should stand out.
  • Exhaustion flags. After a long, extended rally, a "flag" can be the first pause of a top. Flags early in a move are generally treated as more trustworthy.
  • Deep pullbacks. The deeper the flag, the more of the pole's buyers have already left.
  • Single-headline poles. A pole built on one news item can lack follow-through once the news is priced in.
  • Breakouts into resistance. A flag that breaks out just below a prior high or a round number has little room before the next seller.
  • Breakouts that fade intrabar. The latest bar may still be forming, and a breakout can reverse before it finishes.

A failed bull flag often turns into a range or a deeper pullback, so size positions for that outcome.

Market context

Bull flags belong in rising markets. They are generally more convincing when the index or sector is advancing, price is above rising moving averages on both the flag's timeframe and the one above, and the pole broke through a meaningful level rather than bouncing inside a range. That is why flags are central to many momentum trading strategies, which buy strength after a pause rather than weakness after a fall. In choppy, range-bound markets, flags appear constantly and fail readily, because there is no underlying trend to continue. Note that PatternX's flag detector does not look at the trend before the pole; the pole is its only trend requirement, and the wider trend enters through the score's trend-alignment and higher-timeframe factors.

In crypto markets

Crypto produces bull flags on every timeframe, and poles on smaller coins can be large: a double-digit percentage move in a few hours is not unusual. Large poles interact with your settings, because a pole-height target beyond your take-profit (10% by default) is replaced by the nearer take-profit. The 24/7 market has no session gaps, but liquidity thins at weekends and off-peak hours, which can make a flag look tidier than the order book behind it, and low-cap tokens are prone to pump-and-fade moves whose "flags" are simply distribution. PatternX scans the coins you track (the crypto picker offers the top 20 by 24-hour volume on each exchange), and coins with less than $3M of 24-hour volume are filtered out. More in crypto chart pattern recognition.

In stocks, ETFs and FX

In US stocks, bull flags are a staple of day trading, often after a gap up on news or earnings. Session structure matters: a flag that forms late in the day carries overnight gap risk, and on a 5-minute chart a flag that spans the open can be distorted by the opening auction. In FX, a 3% move is large for a major pair, so on intraday charts PatternX's minimum pole will rarely be met; daily charts and the more volatile pairs and metals are likelier candidates. PatternX trades stocks, ETFs and FX through your own broker, and its pattern-day-trader guard, on by default, blocks a fourth same-day round trip within five business days for live trades on US margin accounts under $25,000. See stock chart pattern recognition.

Timeframes

PatternX looks for bull flags on all eight of its timeframes (1m, 3m, 5m, 15m, 30m, 1h, 4h and 1d), and the whole pattern has to fit in roughly the last 41 bars: a 5–15-bar pole, a 6–25-bar flag and the breakout bar.

TimeframeLongest pole plus flag PatternX can see
5mabout 3.5 hours
1habout 1.7 days
4habout a week of 24/7 trading
1dabout 8 weeks of trading days

A flag that takes months to form on a weekly chart is outside its reach. On 1-minute charts, remember the scan cadence: plans rescan every 10 to 120 seconds, and the breakout must be on the latest bar when the scan runs.

Example: the logic step by step

For example, with hypothetical numbers: a stock trading near 48.00 rallies to a 50.40 close over 10 bars on the 5-minute chart, a pole of 2.40 (5%). Over the next 14 bars it drifts lower in a tight channel. The flag's highest high is 50.55 and its lowest low 49.50, so it gives back 0.90 of the pole, about 38%. A new bar then pushes to 50.70 and is at 50.62 when evaluated, above the flag's high, on 1.5× its 20-bar average volume.

  • Entry: about 50.62.
  • Stop: the flag's low, 49.50, a risk of 1.12 (2.2%).
  • Target: 50.62 + 2.40 = 53.02, a reward of 2.40 (4.7%).
  • Reward:risk: about 2.1.

With the default 10% take-profit and 5% stop-loss, both pattern levels are nearer than your limits, so they are used. PatternX places the stop 0.2% beyond the flag's low, near 49.40, which trims reward:risk to about 2. If price later slips back into the flag, PatternX takes no action on pattern grounds; the stop remains the downside exit.

How PatternX detects the Bull Flag

PatternX's bull flag detector is a fixed rule set, identical in Classic and AI mode:

  1. Flag: the 6 to 25 bars before the breakout bar. Lengths are tried from the shortest up, the first that passes is used, and the detector reports at most one flag per chart per scan.
  2. Pole: the strongest close-to-close advance over 5 to 15 bars ending where the flag starts. It must be at least 3%.
  3. Slope: the flag may lean upward, in the pole's direction, by at most 0.15% per bar. Flat or downward-drifting flags pass this test.
  4. Retracement: the flag may give back no more than 50% of the pole.
  5. Breakout: the latest bar's close is above the flag's high.
  6. Levels: stop = the flag's low; target = entry + pole height.

Every signal then passes the universal filters: the breakout bar must close in the direction of the trade, with volume at least 1.2× its 20-bar average; ATR at least 0.05% of price; liquidity score at least 30; spread at most 0.25%; order-book imbalance against the trade no worse than −0.5; and, for crypto, at least $3M of 24-hour volume. More in how PatternX detects patterns.

How PatternX Classic evaluates it

PatternX Classic turns a detected bull flag into a signal in four steps. First, the 13-factor PatternX Score rates it from 0 to 100. The flag's geometry score (capped at 85) and a fixed prior carry 24% of the weight together. The rest is market context, and for a continuation pattern several of the heavier factors are especially relevant: breakout strength (the breakout bar's body relative to its range), the volume surge, trend alignment on the 20- and 50-period EMAs, and agreement from the next timeframe up. Second, the score becomes the signal's confidence, graded Elite (80+), High (65+), Medium (50+) or Weak (below 50), and it must meet your minimum (default 65). Third, the stop and target are merged with your stop-loss and take-profit settings, and anything under 1:1 reward:risk is dropped. Fourth, the risk engine checks the order. In manual mode, the signal waits up to 15 minutes for your approval.

What PatternX AI adds

PatternX AI, on Pro and Elite, adds a fixed 8-factor context check after Classic has detected and accepted a bull flag. It does not detect flags or move stops and targets. For a continuation pattern, two factors carry much of the story: trend strength (EMA12 versus EMA26) asks whether there is still an uptrend to continue, and volume quality compares the last bar's volume with its 20-bar average. Momentum (RSI(14) pointing the trade's way), market structure and confluence, which counts how many of those signals agree, complete the picture. If the context score is below 48, or market structure scores below 35 while momentum is below 40, the setup is vetoed; otherwise the confidence you see is re-weighted. See the AI context layer.

Frequently asked questions

What is the difference between a bull flag and a bullish pennant?

Both follow a sharp pole and signal continuation; the difference is the shape of the pause. A flag is a small channel, often sloping against the trend, while a pennant's highs and lows converge into a tiny triangle. PatternX reflects this: its pennant detector requires the second half of the consolidation to be narrower than and inside the first, while its flag detector does not check for narrowing at all.

How long should a bull flag last?

Generally a short time compared with the trend it interrupts; a flag that lasts far longer than its pole is usually reclassified as a range or a base. PatternX accepts flags of 6 to 25 bars after a 5–15-bar pole and tests the shortest flag first.

Can a bull flag slope upward?

Textbook flags move sideways or against the trend, but a slight upward drift is common in strong markets. PatternX lets the flag lean upward by at most 0.15% per bar; a steeper climb does not qualify as a flag.

Where should the stop-loss go on a bull flag?

The usual choice is just below the flag's low, since a break of that level means the pullback has become something bigger. PatternX uses the flag's low with a 0.2% buffer unless your own stop-loss setting is tighter, in which case your setting is used.

Why didn't PatternX report a bull flag I can see on my chart?

Typical reasons: the strongest 5–15-bar advance before the flag was under 3%, the flag gave back more than half the pole, the breakout was not on the latest bar, or the breakout bar's volume was under 1.2× its 20-bar average. Market filters (liquidity, spread, order-book imbalance and, for crypto, 24-hour volume) can also remove a setup, and a valid flag can still fall short of your minimum confidence.

Related patterns

Key terms

How PatternX handles it

Educational content, not financial advice. Chart patterns describe probabilities, not certainties; trading — especially with leverage or outside regular hours — can lose money, including more than you expect. See the risk disclaimer.