CustomTradingPlatform .com
Log in Get started free
Home / Technical Analysis / Chart patterns / Bull Flag

Chart pattern · Continuation · Bullish

Bull Flag

What is it, in one line

A sharp advance, the flagpole, followed by a brief, shallow, downward-drifting consolidation.

Bullish · Continuation · verdict: Traditional claim, not yet measured here

Bullish Continuation Traditional claim
Bull Flag — 60 closing prices ending on the bar where the Bull Flag confirms, marked with a dot. Confirmation lags the shape: the last swing it needs is only known once the bars that confirm it have printed.
Verified example · fires the Bull Flag rule, quality 1 · not a schematic

Formation rule

A sharp advance, the flagpole, followed by a brief, shallow, downward-drifting consolidation.

Method

Target and invalidation

Conventional target: A break above the flag projects a rise equal to the flagpole’s length.

Invalidated by: A retracement back to the flagpole’s start invalidates the pattern.

What the engine tests

A pole — the prior advance measured by trendSlope — followed by a consolidation whose swing highs and swing lows are both drifting DOWN, and whose depth is small against the pole.

Family
Chart formation
Lookback
120 bars
Direction
Bullish
Class
Continuation
Prior context
Uptrend

The traditional claim

Read as a bullish continuation, resolving upward out of the drift.

How this detection is wrong

The pole requirement is what makes this a flag rather than a downtrend. The drift must also stay shallow: a deep pullback is a reversal, not a flag.

The thresholds the detector uses

Published so the count can be reproduced. Every figure below is a parameter of the rule, not a preference: change one and the occurrence count changes with it.

Detection parameters for the Bull Flag
ParameterMeaningDefault
pivotLeftbars to the left of a swing3
pivotRightbars to the right before a swing is confirmed3
lookbackbars searched for the swings120
atrPeriodbars of ATR used to size everything below14
flatTolhow level two points must be0.02
minSepAtrseparation required between swings, in ATR1
poleBarsbars the pole may take to form20
minPoleSlopepole slope required2
maxFlagAtrflag drift permitted, in ATR6
strict
Tighter thresholds. Fewer detections, each a cleaner example.
flatTol 0.008 · minSepAtr 2 · pivotLeft 4 · pivotRight 4
loose
Wider thresholds. More detections, more marginal ones.
flatTol 0.05 · minSepAtr 0.3 · pivotLeft 2 · pivotRight 2

Easily mistaken for

These share enough geometry that a detector can return more than one of them on the same bar. The engine reports every match rather than picking a winner.

Every pair on the site that can be mistaken for another, and what separates each: the look-alikes index.

Common questions

What is a Bull Flag chart pattern?

A pole — the prior advance measured by trendSlope — followed by a consolidation whose swing highs and swing lows are both drifting DOWN, and whose depth is small against the pole. The detector also requires a prior uptrend, so the same shape in the wrong context is not counted.

Is the Bull Flag bullish or bearish?

It is read as bullish. Read as a bullish continuation, resolving upward out of the drift.

When is a Bull Flag not a Bull Flag?

The pole requirement is what makes this a flag rather than a downtrend. The drift must also stay shallow: a deep pullback is a reversal, not a flag.

How is a Bull Flag detected?

As an executable rule over open, high, low and close, with 9 named parameters — including bars to the left of a swing 3, bars to the right before a swing is confirmed 3, bars searched for the swings 120 — all published on this page so the count can be reproduced. Strict and loose variants are defined as well, so the sensitivity of the count to those thresholds is visible rather than assumed.

Measurement pending re-run

No hit rate is published here yet. The run that would supply one was computed on engine ca6d9e36c81c; the engine is now cfb08765de7c. Its candlestick rows included the still-forming bar, and it predates the chart formations entirely, so those figures have been withdrawn rather than published with a caveat. The definition above is unaffected: it is what the detector tests, and no re-run changes it.

Same shape, opposite reading

Bear Flag

The shapes are close, and the prior trend is what decides which one fired: this rule requires a preceding uptrend, its mirror a preceding downtrend.

Bear Flag: A sharp decline followed by a shallow drifting rally.

All 20 chart patterns →

Other continuation chart patterns

All 20 →
Bear Flag A sharp decline, the flagpole, followed by a brief, shallow, upward-drifting consolidation.
Pennant A sharp move, the pole, followed by a small symmetrical triangle before the move resumes.
Rectangle Price oscillates between two roughly parallel support and resistance lines before breaking out.
Bearish Pennant A sharp decline followed by a small converging consolidation.

Size a trade on this setup before you take it.