PATTERNSMART · SIERRA CHART INDICATORS
Bring automated bull flag and bear flag recognition to your Sierra Chart workspace. The Chart Pattern Flag Indicator identifies flag-shaped price structures and draws their upper and lower boundaries directly on the main price chart, reducing the need to draw each consolidation channel by hand.
Review potential trend-continuation setups with three selectable pattern sizes, configurable line extensions, color-coded pattern-found markers and built-in detection alerts. Focus on bullish flags, bearish flags or both, and choose whether to retain historical pattern drawings or emphasize the latest examples.
Bull & Bear Flags · Three Pattern Sizes · Pattern Alerts
Bullish flag · green pattern-found marker
Bearish flag · cyan pattern-found marker
Hypothetical educational illustrations of the chart display. Not actual indicator screenshots, detection tests, backtests or trading results. Chart annotations and example prices are illustrative.
A flag is a technical analysis chart pattern commonly associated with a pause in an existing directional price move. In classical chart analysis, the initial move is called the flagpole, while the following consolidation is the flag. A flag may suggest continuation, but the market can also reverse, move sideways or produce a false breakout.
A bullish flag typically appears after an upward price move, followed by a downward-sloping consolidation. The upper boundary provides a reference for observing a possible upside breakout. A recognized bull flag is not, by itself, proof that the uptrend will resume.
A bearish flag typically follows a downward price move, with an upward-sloping consolidation. The lower boundary provides a reference for observing a possible downside breakout. A recognized bear flag does not guarantee a further decline.
Pattern detection is not breakout confirmation. The study identifies flag structures; it does not provide a separate breakout confirmation signal or execute trades.

Locate bullish and bearish flag structures on the price chart without manually drawing every pattern.
View two solid trendlines defining the identified consolidation area, providing a clear visual framework for price-action analysis.
Extend both boundaries beyond their original endpoints to maintain a visual reference as later price action develops.
A green bullish point or cyan bearish point identifies a new pattern-found event at the corresponding bar’s closing-price level.
Enable bullish patterns, bearish patterns or both according to the type of chart analysis you want to perform.
Enable Small, Medium and Large pattern categories separately or combine them to broaden the range of structures reviewed.
Retain historical flag drawings by default or use the latest-pattern drawing option for a less crowded chart.
Receive a Sierra Chart alert when a new bullish or bearish flag is identified, with an input to disable alerts if preferred.
The indicator provides three independently selectable pattern-size categories. All three are enabled by default. These categories describe relative pattern scale rather than fixed chart intervals or prescribed holding periods.
Focus on smaller-scale flag structures within the selected chart.
Include intermediate-scale consolidations in your review.
Include larger-scale flag structures for broader chart context.
With Show Last Pattern Only set to No (default), the study retains historical pattern drawings. With it set to Yes, the drawing mode retains the latest bullish and latest bearish flag lines separately when those directions are enabled. Earlier pattern-found markers may remain on the chart.
Direction and size settings can be combined. For example, a bullish-only review can include Medium and Large patterns while excluding Small patterns.

The study overlays its drawings on the main price chart rather than requiring a separate indicator panel for its flag boundaries. The following legend describes the default appearance for the two pattern directions.
Orange — solid upper flag trendline.
Lime green — solid lower flag trendline.
Gray — solid continuation of each boundary.
Lime green — point at the detection bar’s closing-price level.
Cyan — point at the detection bar’s closing-price level.
Boundary extensions are visual references, not price targets, stop-loss levels or forecasts. Marker placement identifies a detection event, not an entry or exit order. The chart examples above use the study’s default boundary and marker colors; candlestick colors depend on the chart appearance.
Once the custom study is available in your Sierra Chart installation, use the normal chart study interface to configure it.

Customize the chart display and pattern selection with the following study inputs. The default settings enable both directions, all three pattern sizes and detection alerts.
| Input Name | Default Value | Description |
|---|---|---|
| Show Bullish Flag | Yes | Enable bullish flag recognition and associated chart output. |
| Show Bearish Flag | Yes | Enable bearish flag recognition and associated chart output. |
| Enable Small Pattern | Yes | Include the Small pattern-size category. |
| Enable Medium Pattern | Yes | Include the Medium pattern-size category. |
| Enable Large Pattern | Yes | Include the Large pattern-size category. |
| Show Last Pattern Only | No | When enabled, retain the latest flag line drawings for each enabled direction rather than historical drawings. |
| Enable Alert | Yes | Enable the study’s pattern-found alerts. |
| Extension Bars | 20 | Length of the boundary extensions in chart bars. Set to 0 to omit extensions. |
| Upper Line Color | Orange (#FFA500) | Color of the upper flag boundary. |
| Lower Line Color | Lime green (#00FF00) | Color of the lower flag boundary. |
| Extension Line Color | Gray (#808080) | Color shared by both boundary extensions. |
| Line Width | 1 | Line width for the main flag boundaries and their extensions. |
The indicator can issue an alert when a newly identified flag pattern appears. Both directions use Sierra Chart Alert Number 1, with different message text to identify the event.
BullishFlag pattern found
A bullish flag detection event, accompanied by a green Bullish Found point.
BearishFlag pattern found
A bearish flag detection event, accompanied by a cyan Bearish Found point.
Use Enable Alert to turn the study’s alert calls on or off. Alerts are intended for new pattern detections rather than a separate breakout event. Actual alert behavior depends on Sierra Chart’s alert configuration. The study does not require a bar to have closed before evaluating a pattern; a detection point should not be treated as a closed-bar breakout confirmation.
Use recognized flags to organize a review of consolidation structures in the context of the preceding price move.
Use the drawn lines and their extensions as visual references for reviewing whether later price action remains inside or moves outside the flag.
Keep historical drawings visible to compare different flag structures, including examples that fail to continue in the expected direction.
Evaluate flags alongside your own support and resistance, trend, volume or other technical analysis tools. These are complementary methods, not additional built-in features.
The study is designed for chart analysis and discretionary review. It does not supply an automated trading system, entry orders, exits or position sizing.
Designed for Sierra Chart as an ACSIL custom study named Chart Pattern Flag.
Requires chart price data and sufficient historical bars. Pattern availability depends on the chart data and selected settings.
The proprietary source code is not included with the product. Customers receive access to the indicator, not its underlying implementation.
It identifies bullish and bearish flag patterns. It is a dedicated flag pattern indicator, not a general detector for every chart pattern.
Yes. Show Bullish Flag and Show Bearish Flag can be enabled or disabled independently.
Yes. Small, Medium and Large can be enabled individually or together. All three are enabled by default.
No. This setting controls the latest flag line drawings for each direction. Historical detection points may remain.
Yes. The upper, lower and extension line colors, line width and extension length are configurable.
Yes. Set Extension Bars to 0 to omit the gray boundary extensions.
The built-in alerts are flag detection alerts, not separate breakout alerts. You can monitor subsequent price action against the drawn boundaries.
No. It is a chart study for pattern recognition and analysis, not an order execution strategy.
No. The proprietary source code and internal detection implementation are not included.
The PatternSmart Chart Pattern Flag Indicator for Sierra Chart combines bullish and bearish flag recognition, three pattern-size categories, configurable boundary drawings and detection alerts in one chart study. Its visual output helps organize flag pattern research while leaving breakout assessment and trading decisions to the user.
Sierra Chart · Bull & Bear Flag Recognition · Customizable Chart Display
Copyright @ 2026 Patternsmart - All rights reserved
This website is for educational and informational
purposes only and should not be considered a solicitation to buy or sell a
futures contract or make any other type of investment decision. It's not recommended to use any single indicator as sole evaluation criteria. The companies
and services listed on this website are not to be considered a recommendation
and it is the reader's responsibility to evaluate any product, service, or
company. patternsmart is not responsible for the accuracy or content of any
product, service or company linked to on this website.
Futures trading
contains substantial risk and is not for every investor.Please read the following risk disclosure before considering the
trading of this product:
Futures Risk Disclosure. An investor could
potentially lose all or more than the initial investment. Risk capital is money
that can be lost without jeopardizing ones financial security or life style.
Only risk capital should be used for trading and only those with sufficient risk
capital should consider trading. Past performance is not necessarily indicative
of future results.
Trading stocks, options, futures and forex involves
speculation, and the risk of loss can be substantial.Investor must consider all
relevant risk factors, including their own personal financial situation, before
trading. Trading foreign exchange on margin carries a high level of risk, as
well as its own unique risk factors. Forex investments are subject to
counter-party risk, as there is no central clearing organization for these
transactions. Please read the following risk disclosure before considering the
trading of this product:
Forex Risk Disclosure. Spreads, Straddles, and other multiple-leg option
strategies can entail substantial transaction costs, including multiple
commissions, which may impact any potential return. Options are not suitable for
all investors as the special risks inherent to options trading may expose
investors to potentially rapid and substantial losses. Prior to trading options,
you should carefully read
Characteristics and Risks of Standardized Options.
patternsmart.com
will not be held liable for the loss of money or any damage caused from relying
on the information on this site. Any investment decision you make in your account is solely your responsibility.
TESTIMONIAL DISCLOSURE: TESTIMONIALS APPEARING ON OUR SITE MAY NOT BE REPRESENTATIVE OF THE EXPERIENCE OF OTHER CLIENTS OR CUSTOMERS AND IS NOT A GUARANTEE OF FUTURE PERFORMANCE OR SUCCESS.