# High Tight Flag

High Tight Flag is an indicator on [Vela](https://vela.luxalgo.com/chart), our next-generation charting platform, written in Pine Script®.

Detects the strictest growth-stock continuation pattern: a pole that roughly doubles (90%+ by default) within 40 bars, then a 5 to 25 bar flag giving back no more than 25%. A close through the flag high on 1.4x average volume confirms, then a flag-height target, a stop at the flag low and a back-inside-the-flag failure rule manage the trade, with a dashboard grading pole, flag and volume.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Mar 13, 2026.
- Access: free.
- Concepts: [high tight flag](https://www.luxalgo.com/library/concept/high-tight-flag/) (primary)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=zdyt7bzto9nbbxkh61yq50rl
- Page: https://www.luxalgo.com/library/indicator/high-tight-flag/

**High Tight Flag** is an advanced technical analysis tool designed to identify explosive momentum patterns characterized by a rapid, near-doubling move followed by a brief, shallow consolidation. By isolating these high-velocity setups, the indicator helps traders detect potential continuation patterns where strong buying pressure takes a short pause before resuming its upward trend. It provides visual confirmations of the pole and flag structure, identifies precise breakout levels, and calculates trade management objectives to assist in systematic decision-making.

## How to Trade the High Tight Flag?

The primary objective when using this indicator is to identify high-momentum stocks or assets that are building energy after a sharp price increase. A valid setup consists of two distinct phases: the pole and the flag. The pole represents the initial surge, while the flag represents the consolidation phase.

Traders should monitor the indicator for a "Flag Forming" signal, which indicates that the price is consolidating within a defined range after the initial move. Once the flag is identified, look for a decisive breakout above the flag high. The indicator includes a specific pivot level that acts as the entry trigger; a strong close above this level, ideally accompanied by a significant expansion in volume, serves as the primary signal to consider a long position.

Risk management is built into the indicator through the "Flag Low" level, which acts as a stop-loss reference. If the price fails to sustain the momentum and closes below this support level, it typically signals that the pattern has broken down. For target setting, users can project the height of either the flag or the entire pole from the breakout point, allowing for objective-based profit taking. Always observe the "Failure Closes" setting, as it alerts you if the price reverts back into the flag range, which often invalidates the strength of the breakout.

## High Tight Flag Settings

### Pole
*   **Minimum Pole Gain (%)**: The percentage gain required from the lowest low of the pole window to the pole high.
*   **Maximum Pole Length (bars)**: The maximum number of bars allowed to complete the initial pole structure.

### Flag
*   **Flag Length (bars)**: The minimum and maximum number of bars the consolidation must last to be considered a valid flag.
*   **Maximum Flag Depth (%)**: The deepest allowed percentage correction from the pole high.
*   **Require Flag Volume Dry-up**: If enabled, this requires average flag volume to remain lower than average pole volume, signaling reduced selling pressure.

### Breakout
*   **Pivot Margin (%)**: A small buffer added above the flag high to ensure the breakout is decisive before triggering.
*   **Breakout Volume Confirmation**: Whether to require the breakout candle to have volume significantly higher than the average.
*   **Volume Average Length**: The number of bars used to calculate the average volume for comparison.
*   **Breakout Volume Multiplier**: The factor by which breakout volume must exceed the average volume.

### Trade Levels
*   **Measured Target**: Defines the objective projection, either based on the flag height or the full pole height. Select None to hide the target.
*   **Failure Closes Back Inside**: The number of consecutive closes back below the flag high that will cause the system to mark the trade as failed.
*   **Post-Breakout Watch (bars)**: The duration for which the indicator monitors the trade for a target, stop, or failure signal.

### Dashboard
*   **Show Dashboard**: Toggles the display of real-time statistics regarding the active or most recent flag pattern.
*   **Location/Size**: Configures the positioning and text scale of the dashboard overlay.

### Style
*   **Confirmed/Stop/Pending Colors**: Defines the visual color scheme for active, stopped, or pending pattern elements.
*   **Keep Voided Flags**: If enabled, keeps drawings of invalidated patterns on the chart in a dimmed state.

## Frequently Asked Questions

### What makes a pattern a "High Tight Flag"?
A high tight flag is defined by a rapid price appreciation of roughly 90 percent or more within a short timeframe (the pole), followed by a very shallow, brief consolidation (the flag) that typically lasts only a few weeks. This pattern indicates extreme relative strength and high investor interest.

### How does the indicator confirm a breakout?
The indicator monitors for a price close above the flag high combined with a specific volume expansion. If the breakout occurs with a volume surge exceeding the defined multiplier relative to the average volume, the indicator marks it as a confirmed breakout and initiates the trade monitoring process.

### When is a High Tight Flag considered invalidated?
A pattern is invalidated if the price correction during the flag phase exceeds the defined depth percentage, if the consolidation period runs for too long, or if the price fails to sustain the breakout and closes back below the flag high for a set number of bars.

## Related indicators

- [Channel Continuation](https://www.luxalgo.com/library/indicator/channel-continuation/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/channel-continuation.md
- [Bull/bear Flag](https://www.luxalgo.com/library/indicator/bull-bear-flag/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/bull-bear-flag.md
- [Rectangle](https://www.luxalgo.com/library/indicator/rectangle/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/rectangle.md
- [Wolfe Wave Detector](https://www.luxalgo.com/library/indicator/wolfe-wave-detector/) (Rising/falling Wedge): markdown at https://www.luxalgo.com/library/indicator/wolfe-wave-detector.md
- [Pennant](https://www.luxalgo.com/library/indicator/pennant/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/pennant.md
- [Half Cup](https://www.luxalgo.com/library/indicator/half-cup/) (Cup & Handle): markdown at https://www.luxalgo.com/library/indicator/half-cup.md
- [Scallop](https://www.luxalgo.com/library/indicator/scallop/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/scallop.md
- [Measured-move Up/down](https://www.luxalgo.com/library/indicator/measured-move-up-down/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/measured-move-up-down.md

---

Source: https://www.luxalgo.com/library/indicator/high-tight-flag/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
