# Gap Fill Breakouts

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

Tracks ATR-filtered fair value gaps as price works to fill them, shrinking each box to its unfilled remainder, and prints triangle signals when price breaks a structural pivot near an active gap. With breakout alerts built in, it suits traders who want imbalance and market structure aligned before acting on a break.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Jul 27, 2026.
- Access: free.
- Concepts: [Gap Fill](https://www.luxalgo.com/library/concept/gap-fill/) (primary), [Breakout](https://www.luxalgo.com/library/concept/breakout/)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=cmqbaqkkk000rjr04d9dspg6m
- Page: https://www.luxalgo.com/library/indicator/gap-fill-breakouts/

**Gap Fill Breakouts** trades the interaction between imbalances and structure. Fair value gaps that pass an ATR size filter are boxed on the chart, each box shrinks step by step as the [gap fill](https://www.luxalgo.com/library/concept/gap-fill/) progresses so only the unfilled remainder stays highlighted, and structural pivots are tracked nearby. When price clears one of those levels while a gap is still active, a signal prints.

## How to Trade the Gap Fill Breakouts?

- **Green upward triangle**: price has broken a resistance pivot that sits below an active bearish gap, a bullish [breakout](https://www.luxalgo.com/library/concept/breakout/) pointing into that unfilled imbalance.
- **Red downward triangle**: price has broken a support pivot tied to an active gap; the bearish mirror.
- **Shrinking boxes**: the adaptive stair-step mechanism shows exactly how much of each gap remains unfilled, keeping attention on the still-relevant portion of the zone.
- **No signals on stale gaps**: once a gap ages past the signal window, breaks around it stop producing arrows.

The logic is deliberately confluence-based: an arrow requires both a proven structural level and a nearby market imbalance, never either condition alone. Bullish and bearish breakout alerts trigger once the signal bar closes, each with its own toggle and both on by default, so the setups do not depend on watching the chart.

## Gap Fill Breakouts Settings

- **ATR Multiplier for FVG Size**: the minimum gap size in Average True Range multiples; raise it to keep only high-momentum gaps.
- **Pivot Length**: bars used to confirm structural pivots; higher values yield fewer but more significant levels.
- **Max Bars Back for Signal**: the maximum age of a gap, in bars, for its breakouts to still qualify.
- **Number of Gaps Shown**: caps how many of the most recent gaps, filled or still active, stay drawn on the chart.

## Frequently Asked Questions

### How does the adaptive mitigation work?

As price trades into a gap, the box boundary updates to exclude the filled portion, so the drawing always represents the remaining unfilled span. The zone stays honest instead of freezing at its original size.

### How is this different from session-based gap tools?

This indicator evaluates any fair value gap that passes its volatility filter, at any time of day. The [Session Gap Fill](https://www.luxalgo.com/library/indicator/session-gap-fill/) concentrates on session-opening gaps and their fill behavior, so the two cover different slices of the same phenomenon.

### How do I access Gap Fill Breakouts?

It is free for all users of the LuxAlgo Library. This page can also hand it to Quant, our coding agent, if you want to see how its breakout signals behaved on past data. You can also copy the source code from this page and run it anywhere Pine Script® runs.

## Related indicators

- [Session Gap Fill](https://www.luxalgo.com/library/indicator/session-gap-fill/) (Gap Fill): markdown at https://www.luxalgo.com/library/indicator/session-gap-fill.md
- [Rising & Falling Window Signals](https://www.luxalgo.com/library/indicator/rising-falling-window-signals/) (Gap Fill): markdown at https://www.luxalgo.com/library/indicator/rising-falling-window-signals.md
- [Breakouts with Tests & Retests](https://www.luxalgo.com/library/indicator/breakouts-with-tests-retests/) (Breakout): markdown at https://www.luxalgo.com/library/indicator/breakouts-with-tests-retests.md
- [Breakout Detector (Previous MTF High Low Levels)](https://www.luxalgo.com/library/indicator/breakout-detector-previous-mtf-high-low-levels/) (Breakout): markdown at https://www.luxalgo.com/library/indicator/breakout-detector-previous-mtf-high-low-levels.md
- [Breakaway Fair Value Gaps](https://www.luxalgo.com/library/indicator/breakaway-fair-value-gaps/) (Breakaway Gap): markdown at https://www.luxalgo.com/library/indicator/breakaway-fair-value-gaps.md
- [Exhaustion Gap](https://www.luxalgo.com/library/indicator/exhaustion-gap/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/exhaustion-gap.md
- [Runaway Gap](https://www.luxalgo.com/library/indicator/runaway-gap/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/runaway-gap.md
- [Ascending Base](https://www.luxalgo.com/library/indicator/ascending-base/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/ascending-base.md

---

Source: https://www.luxalgo.com/library/indicator/gap-fill-breakouts/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
