Blog/AI & Technology
AI & TechnologyJun 15, 202610 min read

How AI Grades Flag Patterns: Bull Flags, Bear Flags, and Pennants

A flag pattern is a tight consolidation after a strong pole that continues the trend. Learn how AI flag pattern detection reads the pole, the flag, and the breakout volume to grade bull flags, bear flags, and pennants before you enter.

BL
Benjamin Loh
Founder of SnapPChart · trader and dev

A stock rips straight up on volume, then goes quiet. The candles get small, the range tightens, and the move that was a screamer a minute ago looks like it is stalling out. New traders either chase the top of the run or bail in the pause. That tight little pause after a sharp move is one of the cleaner setups on the chart, because it is often a flag, a continuation pattern that pauses to catch its breath before the trend resumes. The trick is not spotting the flag, half the chart is flags if you squint. The trick is grading whether this one continues or fails, and that is what reading the pole, the tightness, and the breakout volume is for. That grade is the whole post.

Quick Answer

In one paragraph

A flag pattern is a tight consolidation that forms after a sharp, high-momentum move called the pole, then breaks out in the direction of that move. A bull flag follows an up-pole and breaks up; a bear flag follows a down-pole and breaks down; a pennant is the same idea but the consolidation is a small converging triangle instead of a parallel channel. A flag is tradeable when three things line up: a strong pole, a tight low-volume consolidation, and a breakout with a clear volume expansion. Most flags fail because one of those is missing, no real pole, a flag that is too deep or sloppy, or a breakout on no volume. AI flag pattern detection reads all three off your chart screenshot and grades whether the continuation is an A-grade setup or a likely trap, before you enter.

What Is a Flag Pattern in Trading?

A flag has two parts, and both have to be there. The first is the pole, sometimes called the flagpole, a sharp, near-vertical price move driven by real momentum and volume. The second is the flag itself, a short consolidation where price drifts sideways or slightly against the move in a tight range. Put them together and it looks like a flag flying on a pole, which is the whole reason for the name. Investopedia's breakdown of the flag pattern frames it the same way: a strong move, a brief pause, then a continuation in the original direction.

The logic that makes a flag worth trading is conviction plus rest. The pole tells you one side has taken control hard. The flag tells you the move is pausing, not reversing, because price is holding most of the pole's gain instead of giving it all back. A flag is a continuation pattern, so the expectation is that the trend resumes once price breaks out of the consolidation. This is the same skill set as reading any continuation structure, just applied to one specific shape, which is why it sits inside the broader stock chart patterns guide alongside triangles, double tops, and the rest.

Flags are not the same thing as candlestick patterns, and it is worth keeping them straight. A hammer or an engulfing candle is one or two bars. A flag is a multi-bar chart structure, the pole and the consolidation together can span dozens of candles. If you want the single and dual-candle formations, that is the territory of the AI candlestick pattern detector. This post is the flag-family deep dive that sits under the broader AI chart pattern detection pillar, narrowed to the bigger multi-bar shape and how to grade it.

Bull Flag, Bear Flag, or Pennant?

The flag family has three members that trade almost identically but look slightly different. The split that trips people up is flag versus pennant, and it comes down to one thing: the shape of the consolidation. A flag consolidates inside a parallel channel, two roughly parallel lines, usually tilted gently against the trend. A pennant consolidates inside a small converging triangle, where the highs come down and the lows come up toward an apex. Bull versus bear is just direction: a bull flag follows an up-pole and breaks up, a bear flag follows a down-pole and breaks down.

The flag family at a glance
same logic, different consolidation
PatternConsolidation shapeDirectionWhat an A-grade needs
Bull flagParallel channel sloping slightly downUp-pole, breaks upPole steep, flag tight and shallow, breakout on rising volume
Bear flagParallel channel sloping slightly upDown-pole, breaks downSharp sell-off pole, weak counter-trend drift, breakdown on volume
Bullish pennantSmall converging triangle to an apexUp-pole, breaks upStrong pole, tighter and shorter coil than a flag, volume break
Bearish pennantSmall converging triangle to an apexDown-pole, breaks downSteep down-pole, quick symmetric coil, breakdown on volume

For grading and execution, the differences barely matter. Whether it is a flag or a pennant, a bull or a bear, the four checks are the same: a strong pole, a tight low-volume consolidation, a breakout in the pole's direction, and a volume expansion on the break. The pennant just tends to be tighter and shorter. StockCharts' reference on flags and pennants treats them together for exactly this reason, they are two flavors of the same continuation idea.

What Makes a Flag Tradeable?

A flag is only worth trading when the anatomy holds together. The diagram shows the shape: a steep pole, a tight consolidation that holds most of the gain, and a breakout that resumes the move on a volume push. Read each part in order and you can tell an A-grade flag from a shape that just happens to look like one.

AI Flag Pattern Detection: Pole, Tight Flag, Then Breakout

A bull flag: a steep pole, a tight downward-sloping flag, then a breakout on volumeA price line that runs sharply up to form the pole, drifts gently down inside a tight parallel channel to form the flag, then breaks out the top of the channel and continues higher on a volume expansion.poleflagbreakoutpoletight flagbreak + volumetrend resumes
  • 1. A strong pole
    The move into the flag should be steep and on heavy relative volume. The pole is the conviction. A weak, grinding run-up is not a pole, and a flag without a real pole has nothing to continue.
  • 2. A tight, shallow flag
    The consolidation should hold most of the pole's gain. Small overlapping candles in an orderly range or coil are what you want. A deep flag that gives back most of the pole is closer to a reversal.
  • 3. Volume drying up in the flag
    Through the consolidation, volume should fade. That falling participation sets up a clean contrast against the breakout, and it tells you the pullback is profit-taking, not a wave of sellers taking over.
  • 4. A breakout with volume
    The break out of the channel or coil has to come on a clear volume expansion. A break on a thin, weak candle is the one that fails. No volume on the break, no trade.
  • 5. The right location
    A flag breaking with the higher-timeframe trend, or through a level, is stronger than one forming into obvious resistance or against the bigger move. Context decides whether the continuation has room to run.

This is where the flag plugs straight into a momentum trading strategy: the pole is the momentum, the flag is the precise entry trigger with a tight stop, and the volume on the break is the confirmation. The single bull flag itself, how to draw the channel, set the entry, and place the stop, is covered end to end in the bull flag pattern deep dive, so I will not re-teach the drawing here. The point of this post is the grade on top of the shape.

Flag checkpoint

Watching a stock pause into a tight flag right now?

SnapPChart reads the pole strength, the flag tightness, and the volume on the breakout candle off your screenshot, then grades whether the continuation is an A-grade setup or a trap forming.

Grade the flag

Why Do Most Flags Fail?

A flag-shaped consolidation is everywhere on a chart. A flag that actually continues is much rarer, and the gap between the two is where accounts get hurt. Failed flags almost always trip on one of three faults, and they are the exact inverse of the tradeable criteria.

First, there is no real pole. The move before the flag was choppy or weak, so there is no stored momentum to continue, and what looks like a flag is just price drifting in a range. Second, the flag is too deep or too sloppy. A consolidation that retraces most of the pole, or wanders in a wide expanding range with no clean channel, is behaving like a reversal, not a pause. Third, the breakout fires on no volume. A break on a thin, weak candle gets sold straight back into the range, and the trapped breakout buyers become the next wave of sellers. There is a fourth, quieter failure too: the flag breaks the wrong way, down through the bottom of a bull flag, which usually means the pole was exhaustion rather than strength.

The flag-failure rule

If the pole is weak, the flag is deep, or the breakout has no volume, it is not a tradeable flag, it is a shape. The cheapest filter is the breakout candle: a break that does not close out of the consolidation on above-average volume has not earned your entry yet. Grading the pole, the tightness, and the volume catches most failures before you commit.

Stop placement is the other half of surviving a failed flag. The consolidation hands you an obvious invalidation level, the opposite side of the channel or the low of the flag, so you do not have to guess where the trade is wrong. That is the same structure-based logic behind AI stop loss placement, anchoring the stop to the pattern rather than to a round number. And reading where the flag sits relative to support and the trend is the same core skill as reading a stock chart in the first place, just pointed at one specific continuation shape.

How Does AI Detect a Flag Pattern?

A flag is a geometry problem with a volume overlay, and that combination is exactly what AI-powered analysis is built to read off an image. It does not get a raw price feed; it reads the chart screenshot the way your eye does. There are four things it judges on a flag chart, and they map directly onto the tradeable criteria above.

  • The pole
    It finds the steep, high-momentum run that precedes the consolidation and judges whether it is a real pole or a weak grind. No pole, no flag, regardless of what the consolidation looks like.
  • The flag geometry
    It measures how tight, how deep, and how steeply sloped the consolidation is, and whether it is a parallel channel (a flag) or a converging triangle (a pennant). Tight and shallow grades up; deep and sloppy grades down.
  • The volume
    It reads the volume fading through the flag and, critically, the volume on the breakout candle. The volume contrast is the single strongest signal separating a real break from a head-fake.
  • The location
    It checks where the structure sits relative to the trend and nearby levels, so a flag breaking with the bigger move scores higher than one forming into resistance.

When you upload a chart for AI chart analysis, those four reads get pulled together into one verdict instead of four things you eyeball separately while the setup is moving. It is the same detection idea behind AI breakout detection, applied to the specific case where the breakout comes out of a flag or pennant after a pole. The honest part of the pitch: the AI is not inventing a secret flag formula. The pole, the channel, and the volume are the same for everyone. What it removes is the two ways traders blow the read in real time, chasing a thin-volume break because the candle looked exciting, and missing that the flag was too deep to be a continuation in the first place.

Why Grading the Flag Beats Spotting It

Spotting a flag is easy and nearly worthless on its own. A scanner that just flags every flag-shaped consolidation will bury you in shapes, most of which fail. The value is in the grade, the difference between "there is a flag here" and "this is an A-grade bull flag with a steep pole, a tight shallow consolidation, fading volume, and a breakout that just confirmed on a volume push." One is a label. The other is a decision.

A-grade flag vs failed flag
read all seven, not one
FactorA-grade flagFailed flag
The poleSteep, near-vertical run on heavy relative volumeWeak, choppy, or grinding move with no urgency
Flag depthShallow, gives back a small fraction of the poleDeep, retraces most of the pole (closer to a reversal)
Flag tightnessTight, orderly range with small overlapping candlesWide, sloppy, expanding range with no clear channel
Flag slopeDrifts gently against the trend, controlledSlopes hard against the trend or rolls over
Volume in the flagVolume dries up through the consolidationVolume stays high or rises into the flag
Breakout volumeClear volume expansion on the break candleThin, weak break candle on no participation
LocationBreaks at or through a level, with the trendForms into resistance or against the higher-timeframe trend

Read the table top to bottom and the edge becomes obvious: a flag does not have to fail on all seven factors to be a bad trade, it usually only takes one or two. A perfect-looking flag with a weak pole is a pass. A textbook pole with a sloppy, deep flag is a pass. Grading forces you to check every factor instead of falling in love with the one part that looks great, which is the exact bias that gets momentum traders into the flags that fail. The same discipline shows up in the broader VWAP momentum trading strategy playbook, where a clean structure still has to be confirmed by participation before it earns an entry.

Where this still breaks is where every chart read breaks. A flag ahead of a scheduled catalyst can gap through the whole structure regardless of how clean it graded. An illiquid name can print a tidy flag that breaks into a vacuum and slips your fill. And no grade promises the move continues after the break confirms; it only tells you the break is the higher-probability one to take. The grade gives you the timing, the level, and an honest read on quality. The fill and the follow-through are still the market's to give.

The point of grading the flag

You are not predicting the move, you are refusing the version of it that does not confirm. Find the pole, mark the flag, wait for a breakout out of the consolidation on real volume, and stop back inside. Let the pole strength, the tightness, and the breakout volume filter the flags that fail, so a C-grade shape never makes it into your account.

Frequently Asked Questions

What is a flag pattern in trading?

A flag pattern is a short consolidation that forms after a sharp, near-vertical price move called the pole or flagpole. After the pole, price drifts sideways or slightly against the move in a tight range, then breaks out in the original direction. The shape resembles a flag on a pole, which is where the name comes from. It is a continuation pattern, meaning the expectation is that the prior trend resumes once price breaks out of the flag. A bull flag forms after an up-move and breaks up; a bear flag forms after a down-move and breaks down. The pattern is tradeable because the pole shows strong directional conviction and the tight flag shows that the move is pausing, not reversing.

How does AI detect flag patterns from a chart screenshot?

AI uses computer vision to read the chart image the way a trader's eye does, not a raw data feed. It locates the steep, high-momentum run that forms the pole, measures how tight and how steeply sloped the consolidation that follows is, reads the volume behavior into the flag and on the breakout candle, and checks where the whole structure sits relative to the trend and key levels. Then it scores those pieces together. Instead of just labeling 'flag detected,' it grades whether the pole is strong enough, whether the flag is tight enough, and whether the volume confirms, so you get a quality read rather than a yes or no.

Is a pennant the same as a flag?

They are close cousins and trade almost identically, but the consolidation shape is different. A flag consolidates inside a parallel channel, two roughly parallel trendlines, usually sloping slightly against the trend. A pennant consolidates inside a small converging triangle, where the highs come down and the lows come up toward an apex. Both follow a strong pole, both are continuation patterns, and both break out in the direction of the pole on a volume expansion. The pennant tends to be tighter and shorter than a flag. For grading purposes the criteria are the same: strong pole, tight low-volume consolidation, breakout with volume.

Why do most flag patterns fail?

Most failed flags share three faults. First, there is no real pole, the run-up before the flag was weak or choppy, so there is no momentum to continue. Second, the flag is too deep or too sloppy, a consolidation that gives back most of the pole or wanders in a wide, messy range is closer to a reversal than a pause. Third, the breakout happens on no volume, a break that fires on a thin, weak candle gets sold back into the range. A flag that breaks down through the bottom of the channel instead of continuing is also a failure, often a sign the pole was exhaustion rather than strength. Grading the pole, the tightness, and the breakout volume catches most of these before you enter.

Can AI grade a bull flag before I enter the trade?

Yes, and that is the point of grading over spotting. You screenshot the chart while the flag is forming or right as it breaks, upload it, and the AI reads the pole strength, the flag tightness and slope, the volume on the breakout, and the location in the trend, then returns a grade with an entry, a stop, and targets. The grade tells you whether the continuation is the high-probability A-grade version or a marginal setup you should pass on. Spotting a flag tells you a pattern exists; grading it tells you whether it is worth your risk, which is the part that actually protects your account.

Disclaimer

This article is for educational and informational purposes only and does not constitute financial advice. The pole, flag, and breakout examples are illustrative and are not trade recommendations or records of actual trades. Day trading carries a substantial risk of loss and is not suitable for every investor. AI analysis evaluates chart structure, pattern geometry, and volume; it does not guarantee trade outcomes or fills. Always do your own research and never trade with money you cannot afford to lose.

BL
Benjamin Loh
Founder of SnapPChart · trader and dev

Writes about AI-assisted day trading, technical analysis, and the systems traders actually use to stay disciplined.

Stop guessing if the flag is real.

Upload a chart with a flag forming and SnapPChart reads the pole strength, the flag tightness, and the volume on the breakout candle, then grades whether the continuation is an A-grade setup or a trap. No card required.

Read your flag setupNo card required