TradingLens
FeaturesHow it worksPricingBlog
Sign inGet Started For Free
TradingLens

AI-powered chart analysis for traders who demand structure.

Product

  • Features
  • How it works
  • Pricing
  • Blog

Account

  • Sign in
  • Get started
  • Dashboard

Resources

  • RSS Feed
  • AI Chart Analysis
  • AI Stock Analysis
  • Upload Chart for Analysis
  • Chart Screenshot Analyzer

Best Of

  • Best AI Trading Chart Analyzers
  • Best AI Trading Tools for Beginners
  • Best Crypto Chart Analysis Tools
  • All Best-Of Guides

Use Cases

  • AI Chart Analysis for Day Trading
  • Technical Analysis for Swing Trading
  • TradingView Screenshot Analysis
  • AI Support and Resistance Detection
  • Cryptocurrency Chart Analysis Online
  • All Use Cases

Calculators

  • Position Size Calculator — Free Online Tool
  • Stop Loss Calculator — Set Your Stop Level
  • Risk Reward Calculator — Find Your R:R Ratio
  • Take Profit Calculator — Lock in Gains
  • Leverage Calculator — Avoid Liquidation
  • Margin Calculator — Check Your Margin
  • Drawdown Calculator — Track Your Risk
  • Win Rate Calculator — Measure Your Edge
  • Crypto Position Size Calculator — BTC, ETH, Altcoins
  • Forex Position Size Calculator — Forex Pairs
  • Futures Position Size Calculator — ES, NQ, CL
  • All Trading Calculators & Tools

AI Analysis

  • AI Chart Analysis — Upload, Analyze, Trade
  • AI Stock Chart Analysis — AAPL, TSLA, NVDA
  • AI Crypto Chart Analysis — Bitcoin, Ethereum
  • AI Forex Chart Analysis — EUR/USD, GBP/USD
  • AI Technical Analysis — Indicators & Patterns
  • AI Candlestick Pattern Recognition — Doji, Engulfing
  • AI Support and Resistance Detection — Key Levels
  • Upload Trading Screenshot for AI Analysis
  • Chart Screenshot Analyzer — Instant AI Results

Learn

  • How to Calculate Position Size
  • How Much Should I Risk Per Trade
  • Best Risk Reward Ratio for Day Trading
  • Position Sizing for Beginners
  • Position Sizing for Futures
  • Position Sizing for Crypto
  • AI vs Manual Chart Analysis
  • Free AI Trading Analysis
  • Best Crypto Trading Tools
  • All Learning Guides

Legal

  • Terms of Service
  • Disclaimer
  • Legal Notices
  • Privacy Policy
  • Risk Disclosure

© 2026 TradingLens. All rights reserved.

TradingLens
FeaturesHow it worksPricingBlog
Sign inGet Started For Free
TradingLens

AI-powered chart analysis for traders who demand structure.

Product

  • Features
  • How it works
  • Pricing
  • Blog

Account

  • Sign in
  • Get started
  • Dashboard

Resources

  • RSS Feed
  • AI Chart Analysis
  • AI Stock Analysis
  • Upload Chart for Analysis
  • Chart Screenshot Analyzer

Best Of

  • Best AI Trading Chart Analyzers
  • Best AI Trading Tools for Beginners
  • Best Crypto Chart Analysis Tools
  • All Best-Of Guides

Use Cases

  • AI Chart Analysis for Day Trading
  • Technical Analysis for Swing Trading
  • TradingView Screenshot Analysis
  • AI Support and Resistance Detection
  • Cryptocurrency Chart Analysis Online
  • All Use Cases

Calculators

  • Position Size Calculator — Free Online Tool
  • Stop Loss Calculator — Set Your Stop Level
  • Risk Reward Calculator — Find Your R:R Ratio
  • Take Profit Calculator — Lock in Gains
  • Leverage Calculator — Avoid Liquidation
  • Margin Calculator — Check Your Margin
  • Drawdown Calculator — Track Your Risk
  • Win Rate Calculator — Measure Your Edge
  • Crypto Position Size Calculator — BTC, ETH, Altcoins
  • Forex Position Size Calculator — Forex Pairs
  • Futures Position Size Calculator — ES, NQ, CL
  • All Trading Calculators & Tools

AI Analysis

  • AI Chart Analysis — Upload, Analyze, Trade
  • AI Stock Chart Analysis — AAPL, TSLA, NVDA
  • AI Crypto Chart Analysis — Bitcoin, Ethereum
  • AI Forex Chart Analysis — EUR/USD, GBP/USD
  • AI Technical Analysis — Indicators & Patterns
  • AI Candlestick Pattern Recognition — Doji, Engulfing
  • AI Support and Resistance Detection — Key Levels
  • Upload Trading Screenshot for AI Analysis
  • Chart Screenshot Analyzer — Instant AI Results

Learn

  • How to Calculate Position Size
  • How Much Should I Risk Per Trade
  • Best Risk Reward Ratio for Day Trading
  • Position Sizing for Beginners
  • Position Sizing for Futures
  • Position Sizing for Crypto
  • AI vs Manual Chart Analysis
  • Free AI Trading Analysis
  • Best Crypto Trading Tools
  • All Learning Guides

Legal

  • Terms of Service
  • Disclaimer
  • Legal Notices
  • Privacy Policy
  • Risk Disclosure

© 2026 TradingLens. All rights reserved.

TradingLens
FeaturesHow it worksPricingBlog
Sign inGet Started For Free
AITechnical AnalysisChart Analysis

Flags, Pennants, and Wedges with AI: Detection, Targets, and Trade Rules

11 min read

Flags, Pennants, and Wedges with AI: Detection, Targets, and Trade Rules#

Flags, pennants, and wedges show up on every timeframe from the 5-minute to the weekly. They are the market taking a breath before the next leg. The problem is not spotting them visually. Most traders can identify a flag after someone draws it. The problem is knowing whether the pattern is valid, measuring the target correctly, and deciding when the setup is not worth taking.

AI analysis changes this. Upload a chart and get structured output: pattern classification, volume context, measured move targets, and entry/stop levels based on actual structure. This guide covers the five patterns in this family, the exact rules for trading each one, and how AI detection handles the nuances that trip up discretionary traders.

For a broader overview of what AI can and cannot detect on charts, see our guide on AI chart pattern recognition.

Why These Patterns Share a Family#

Flags, pennants, and wedges all share one structural requirement: a strong preceding move. Without a pole (for flags and pennants) or a clear directional trend (for wedges), these patterns are just random consolidation. This is the single biggest reason traders lose on these setups. They see a flag shape forming and enter without confirming the pole exists.

Here is the canonical definition for each:

  • Bull flag: A sharp upward move (the pole) followed by a downward-sloping parallel consolidation channel. The flag should not retrace more than 50% of the pole.
  • Bear flag: A sharp downward move followed by an upward-sloping parallel consolidation channel. Same 50% retracement rule.
  • Pennant: A sharp move followed by a small symmetrical triangle (converging trendlines). Think of it as a flag with converging instead of parallel lines.
  • Rising wedge: Two converging trendlines, both sloping upward. The lower support line rises faster than the upper resistance. In an uptrend, this is a bearish reversal pattern. In a downtrend, a rising wedge is typically a bullish reversal of the correction, not a continuation signal.
  • Falling wedge: Two converging trendlines, both sloping downward. The upper resistance line falls faster than the lower support. In a downtrend, this is a bullish reversal pattern. In an uptrend, a falling wedge acts as a bullish continuation.

The critical distinction most traders get wrong: a rising wedge in an uptrend is bearish. It is not a bullish continuation. The converging lines with the lower line rising faster tells you buyers are losing momentum even though price is making higher highs. When this pattern appears after an extended rally, it is a reversal warning. If your analysis tool tells you a rising wedge in an uptrend is bullish, find a better tool.

For how support and resistance levels interact with these patterns, see our guide on AI support and resistance detection.

The Pole Requirement: Why Flags Fail Without It#

A flag without a pole is just a channel. A pennant without a pole is just a triangle. The pole is what gives the pattern its predictive power.

What Counts as a Valid Pole#

A valid pole for a bull flag requires:

  1. A minimum 15% to 20% price move in the direction of the trend (for stocks and ETFs). For crypto, anchor to ATR: the pole should be at least 2 ATR, which typically translates to roughly 15% to 25% for BTC and ETH, higher for more volatile altcoins.
  2. The move should occur over 3 to 10 bars on the timeframe you are trading.
  3. Volume should expand during the pole formation. A pole on declining volume is suspect.

For a bear flag, the same rules apply in reverse. The downward pole should be sharp, fast, and volume-backed.

How AI Checks the Pole#

When you upload a chart to TradingLens, the AI measures the pole automatically. It checks price magnitude relative to ATR (a move of less than 2 ATR is not reliable), volume trend (expanding = valid, flat or declining = weak), and duration (too long becomes a trend, not a pole). If the AI output says the pole does not meet the quality threshold, the pattern is not tradeable.

Volume Confirmation: The Non-Negotiable Filter#

Every pattern in this family has the same volume requirement: volume must decline during consolidation and expand on the breakout. This is not optional. A breakout on thin volume is a trap.

Volume Rules by Pattern#

Pattern Pre-pattern Volume Consolidation Volume Breakout Volume
Bull flag Expanding Declining (typically 50-70% of pole-period average) Surge above 1.5x average
Bear flag Expanding (selling) May hold steady (typically 70-100% of pole-period average, sellers hedge on each up-bar) Surge on breakdown
Pennant Expanding Declining to low Large spike on breakout
Rising wedge Varies (pre-pattern trend) Declining as wedge matures Surge on downside break
Falling wedge Varies (pre-pattern trend) Declining as wedge matures Surge on upside break

A flag or pennant with increasing volume during consolidation is not a clean continuation setup. Skip it.

For a deeper dive on reading volume in context, see our guide on volume analysis with AI.

Entry Rules: Close, Not Wick#

The entry rule for all five patterns is the same: wait for a candle to close beyond the pattern boundary. Not a wick. Not a touch. A close.

Bull flag: A candle closes above the upper trendline of the flag. The body should be more than 50% above the line for strong conviction.

Bear flag: A candle closes below the lower trendline of the flag.

Pennant: Wait for a close above the upper trendline (bullish) or below the lower trendline (bearish). The pennant itself is neutral until breakout.

Rising wedge (bearish in uptrend): A candle closes below the lower support line. Do not enter short just because the wedge is forming. Wait for the break.

Falling wedge (bullish): A candle closes above the upper resistance line.

AI analysis at TradingLens identifies the exact price level for a confirming close. Set your alert there.

Stop-Loss Rules: Structure, Not Percentage#

Your stop goes at a structural level, not an arbitrary percentage. The specific location depends on the pattern.

Pattern Stop Location Example
Bull flag Below the lowest point of the flag Flag low at $48, stop at $47.80
Bear flag Above the highest point of the flag Flag high at $62, stop at $62.20
Pennant Beyond the opposite side of breakout Bullish breakout, stop below pennant low
Rising wedge Above most recent swing high in wedge Last higher high at $155, stop at $155.30
Falling wedge Below most recent swing low in wedge Last lower low at $88, stop at $87.70

The stop goes at the structural point that would invalidate the pattern if hit. If price takes out the flag low on a bull flag, the flag is dead.

The 2:1 R:R Floor#

This pattern family is only tradeable if the measured move target gives you at least a 2:1 reward-to-risk ratio. If the math does not work, the trade does not work.

Risk = |Entry price minus stop loss| Reward = |Target price minus entry price| R:R = Reward / Risk

If R:R is less than 2:1, skip the trade. The AI output from TradingLens calculates this automatically.

Target Measurement: The Measured Move#

Each pattern has a specific formula for calculating the price target.

Bull Flag and Bear Flag Targets#

The measured move target for a bull flag is the pole height projected from the breakout point. The flag channel height is not the measured move. It is the retest of the prior swing high, which is useful as a first partial profit level, but it is not the target.

Primary target: Height of the pole added to the breakout point.

First partial profit (optional): The prior swing high or the flag channel retest, for scaling out of a portion of the position.

Example: A stock rallies from $40 to $65 (pole = $25). Flag consolidates between $58 and $52 (flag height = $6). Breakout at $58.

  • Primary measured move target: $58 + $25 = $83
  • First partial profit level: $64 (prior swing high / flag channel retest, for scaling out)

The primary target is the pole projection. The prior swing high is where you might take a partial profit and trail a stop, but it is not the "conservative measured move" because the measured move is defined by the pole, not the flag.

Pennant Targets#

Target = Height of the pole added to the breakout point.

Example: Stock moves from $100 to $120 (pole = $20). Pennant forms. Breakout at $118. Target: $118 + $20 = $138.

Wedge Targets#

Measure the height of the wedge at its widest point (distance from the first high to the first low within the wedge) and project that distance from the breakout.

Example: Rising wedge between $150 (first high) and $140 (first low). Wedge height = $10. Breakdown at $143. Target: $143 minus $10 = $133.

AI analysis calculates these targets automatically. It measures the pole, the flag height, and the wedge dimensions, then projects the target and calculates the R:R for you.

For a walkthrough of how to read AI analysis output, see our guide on how to read AI trading analysis output.

When NOT to Take the Trade#

Knowing when to skip is more valuable than knowing when to enter.

Skip the trade if:

  1. The pole is weak (less than 2 ATR of preceding move). The pattern has no directional foundation.
  2. Volume is not declining during consolidation. Rising volume means the pattern is not a clean continuation.
  3. A major news event is imminent (earnings, Fed, CPI). The pattern will not matter if the headline moves price 5%.
  4. The R:R is below 2:1. The math does not work.
  5. The pattern has been forming too long. A flag that takes more than 15 to 20 bars on the daily chart is no longer a flag.
  6. The breakout occurs on a gap. Treat gap-through-trendline breakouts as suspect unless accompanied by volume greater than or equal to 1.5 times average and follow-through within 1 to 2 bars.

Reclassifying Counter-Trend Flags#

A bullish flag setup (upward pole, downward-sloping channel) only counts as a bull flag when the higher timeframe trend is up. If the higher timeframe is down, the same geometry is a bear flag, not a bull flag. Reclassify and trade it as continuation short. Always check the higher timeframe before committing to a direction.

Asset Class Considerations#

  • Stocks and ETFs: All five patterns apply cleanly. Standard pole thresholds (15% to 20%) work.
  • Crypto (24/7): Patterns form faster. Anchor the pole to ATR rather than a fixed percentage: the pole should clear 2 ATR, which typically lands around 15% to 25% for BTC and ETH, higher for more volatile altcoins.
  • Forex: Flags and pennants work well on major pairs during London and New York sessions. Be cautious with Sunday open gaps. Wedges are less reliable on forex due to range-bound currency behavior.

AI Detection: What the Algorithm Checks#

When you upload a chart to TradingLens, the AI evaluates seven things: pole presence and quality (ATR threshold, volume expanding), consolidation structure (parallel for flags, converging for pennants, converging same-direction for wedges), volume behavior during consolidation and on the breakout bar, retracement depth (flags must retrace less than 50% of the pole), target projection, R:R calculation (must be at least 2:1), and trend context (is the pattern aligned with the higher timeframe).

The AI does not just label the pattern. It qualifies it. A flag that fails the volume check or the retracement depth check gets flagged as low quality. This is the difference between pattern recognition and pattern analysis.

For how this fits into a multi-timeframe workflow, see our guide on multi-timeframe AI analysis.

Sample Walkthrough: Bull Flag with AI Analysis#

Setup: NVDA daily chart. Stock rallied from $100 to $135 over 8 days (pole = $35, roughly 3.5 ATR). Volume expanded during the rally. The stock then consolidated between $128 and $122 over 6 days, forming a downward-sloping channel.

AI output from TradingLens:

  • Pattern: Bull flag (high quality)
  • Pole: $100 to $135, 3.5 ATR, volume expanding. Valid.
  • Flag: $128 to $122, 6 days, volume declining. Valid.
  • Retracement: 17% of pole (within 50% limit)
  • Breakout level: Close above $128
  • Stop: Below $122 (flag low), at $121.80
  • Risk: $128 minus $121.80 = $6.20
  • Measured move target: $128 + $35 (pole height) = $163
  • First partial profit level: $134 (prior swing high / flag channel retest)
  • R:R (to measured move target): 5.65:1, above threshold, tradeable with confirmation

Enter on a close above $128 with a stop at $121.80, target $163, but only if breakout volume confirms (relative volume greater than 1.5x on the breakout bar). You might scale out of a portion at $134 (the prior swing high), but the trade is sized to the pole projection target, not the channel retest.

Without AI analysis, a trader might enter on a wick pierce at $128.50 with no volume filter, a mental stop somewhere around $120 (round number, not structural), and a vague target at $150. That gives R:R of about 2.3:1 on the target, but the round-number stop widens risk and the entry on a wick means the breakout may not confirm. The AI-driven approach gives you the structural stop, the calculated target, and the R:R check before you risk a penny.

Summary Reference Table#

Pattern Direction Pole Required? Consolidation Volume Entry Trigger Stop Location Target Formula R:R Floor Invalidation
Bull flag Bullish continuation Yes (upward) Declining Close above upper flag line Below flag low Pole height added to breakout 2:1 Close below flag low
Bear flag Bearish continuation Yes (downward) May hold steady Close below lower flag line Above flag high Pole height subtracted from breakout 2:1 Close above flag high
Pennant Neutral until breakout Yes (either) Declining Close beyond trendline Opposite side Pole height added/subtracted from breakout 2:1 Close beyond opposite trendline
Rising wedge Bearish reversal (uptrend), bullish reversal of correction (downtrend) No pole Declining Close below lower support Above recent swing high Wedge height subtracted from breakdown 2:1 Close above upper resistance
Falling wedge Bullish reversal (downtrend), bullish continuation (uptrend) No pole Declining Close above upper resistance Below recent swing low Wedge height added to breakout 2:1 Close below lower support

The Bottom Line#

Flags, pennants, and wedges are not complicated patterns. The geometry is simple. The volume rules are straightforward. The target formulas are basic arithmetic. What makes them hard is discipline. Skipping the weak poles. Waiting for the close instead of chasing the wick. Walking away when the R:R does not work. That is where most traders fail, and it is exactly where AI analysis adds value.

Upload your chart to TradingLens. Let the AI check the pole quality, measure the consolidation, project the target, and calculate the R:R. If the setup passes all checks, take the trade with a structural stop and a defined target. If it fails any check, move on. The next flag is always forming somewhere.

TradingLens is an analysis tool, not a broker. AI-detected patterns are based on chart structure and historical probability. Always apply your own risk management and verify against live price action. Past pattern performance does not guarantee future results.

On this page

  • Why These Patterns Share a Family
  • The Pole Requirement: Why Flags Fail Without It
  • What Counts as a Valid Pole
  • How AI Checks the Pole
  • Volume Confirmation: The Non-Negotiable Filter
  • Volume Rules by Pattern
  • Entry Rules: Close, Not Wick
  • Stop-Loss Rules: Structure, Not Percentage
  • The 2:1 R:R Floor
  • Target Measurement: The Measured Move
  • Bull Flag and Bear Flag Targets
  • Pennant Targets
  • Wedge Targets
  • When NOT to Take the Trade
  • Reclassifying Counter-Trend Flags
  • Asset Class Considerations
  • AI Detection: What the Algorithm Checks
  • Sample Walkthrough: Bull Flag with AI Analysis
  • Summary Reference Table
  • The Bottom Line
On this page
  • Why These Patterns Share a Family
  • The Pole Requirement: Why Flags Fail Without It
  • What Counts as a Valid Pole
  • How AI Checks the Pole
  • Volume Confirmation: The Non-Negotiable Filter
  • Volume Rules by Pattern
  • Entry Rules: Close, Not Wick
  • Stop-Loss Rules: Structure, Not Percentage
  • The 2:1 R:R Floor
  • Target Measurement: The Measured Move
  • Bull Flag and Bear Flag Targets
  • Pennant Targets
  • Wedge Targets
  • When NOT to Take the Trade
  • Reclassifying Counter-Trend Flags
  • Asset Class Considerations
  • AI Detection: What the Algorithm Checks
  • Sample Walkthrough: Bull Flag with AI Analysis
  • Summary Reference Table
  • The Bottom Line

Related posts

AI

AI Chart Analysis for Day Trading — Faster Intraday Decisions

AIAITechnical Analysis

Day trading is a game of microseconds. Every minute you spend manually drawing trend lines, checking RSI divergence, or hunting for support levels is a minute of opportunity tha...

10 min read
AI

Technical Analysis for Swing Trading — A Structured Approach

AITechnical AnalysisAI

Swing trading occupies a sweet spot in the trading landscape. You're not glued to a screen scalping 1-minute candles, and you're not waiting weeks for a position to develop on t...

11 min read
AI

AI Chart Analysis: What It Can and Cannot Tell You

AIChart AnalysisTechnical Analysis

AI chart analysis tools are everywhere. Every trading platform, every newsletter, every YouTube ad promises "AI-powered signals" that will revolutionise your trading. But what c...

10 min read
TradingLens

AI-powered chart analysis for traders who demand structure.

Product

  • Features
  • How it works
  • Pricing
  • Blog

Account

  • Sign in
  • Get started
  • Dashboard

Resources

  • RSS Feed
  • AI Chart Analysis
  • AI Stock Analysis
  • Upload Chart for Analysis
  • Chart Screenshot Analyzer

Best Of

  • Best AI Trading Chart Analyzers
  • Best AI Trading Tools for Beginners
  • Best Crypto Chart Analysis Tools
  • All Best-Of Guides

Use Cases

  • AI Chart Analysis for Day Trading
  • Technical Analysis for Swing Trading
  • TradingView Screenshot Analysis
  • AI Support and Resistance Detection
  • Cryptocurrency Chart Analysis Online
  • All Use Cases

Calculators

  • Position Size Calculator — Free Online Tool
  • Stop Loss Calculator — Set Your Stop Level
  • Risk Reward Calculator — Find Your R:R Ratio
  • Take Profit Calculator — Lock in Gains
  • Leverage Calculator — Avoid Liquidation
  • Margin Calculator — Check Your Margin
  • Drawdown Calculator — Track Your Risk
  • Win Rate Calculator — Measure Your Edge
  • Crypto Position Size Calculator — BTC, ETH, Altcoins
  • Forex Position Size Calculator — Forex Pairs
  • Futures Position Size Calculator — ES, NQ, CL
  • All Trading Calculators & Tools

AI Analysis

  • AI Chart Analysis — Upload, Analyze, Trade
  • AI Stock Chart Analysis — AAPL, TSLA, NVDA
  • AI Crypto Chart Analysis — Bitcoin, Ethereum
  • AI Forex Chart Analysis — EUR/USD, GBP/USD
  • AI Technical Analysis — Indicators & Patterns
  • AI Candlestick Pattern Recognition — Doji, Engulfing
  • AI Support and Resistance Detection — Key Levels
  • Upload Trading Screenshot for AI Analysis
  • Chart Screenshot Analyzer — Instant AI Results

Learn

  • How to Calculate Position Size
  • How Much Should I Risk Per Trade
  • Best Risk Reward Ratio for Day Trading
  • Position Sizing for Beginners
  • Position Sizing for Futures
  • Position Sizing for Crypto
  • AI vs Manual Chart Analysis
  • Free AI Trading Analysis
  • Best Crypto Trading Tools
  • All Learning Guides

Legal

  • Terms of Service
  • Disclaimer
  • Legal Notices
  • Privacy Policy
  • Risk Disclosure

© 2026 TradingLens. All rights reserved.