> For the complete documentation index, see [llms.txt](https://docs.ezalgo.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ezalgo.ai/education/technical-analysis/chart-patterns/continuation-patterns/flags.md).

# Flags

## Bullish Flag

This pattern forms during an uptrend. It begins with a strong upward movement (the "flagpole"), followed by a period of consolidation that slants slightly downwards forming a "flag". The consolidation is against the trend, but it's usually a pause before the uptrend resumes. A breakout above the top of the flag is typically seen as a continuation signal.

<figure><img src="/files/vFG1dkyCzMP0XxBzD2SX" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Z6VirqG6sRwWWleWX6AM" alt=""><figcaption></figcaption></figure>

## Bearish Flag

This is the inverse of a bullish flag and forms during a downtrend. It starts with a sharp downward move (the "flagpole"), followed by a slight upward consolidation period forming the "flag". This consolidation is against the trend and usually represents a brief pause before the downtrend resumes. A breakout below the bottom of the flag is generally seen as a continuation signal.

<figure><img src="/files/Mfw9ifgHibLZLmOK5PaQ" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/t5ZmaPbHQIpUjjkzdXLo" alt=""><figcaption></figcaption></figure>

In both patterns, the flagpole represents a strong, impulsive move, while the flag represents a pause or pullback in the price. The breakout, accompanied by an increase in volume, is a signal for traders that the original trend (bullish or bearish) is likely to resume.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ezalgo.ai/education/technical-analysis/chart-patterns/continuation-patterns/flags.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
