# Imbalance Detector

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

Detects three imbalance families in one tool (fair value gaps, opening gaps and volume imbalances) each with adjustable minimum-width filters and optional extension. A built-in dashboard tallies how often every imbalance type appears and the percentage that gets filled, giving price action traders measurable context for zone-based decisions.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Dec 20, 2022.
- Access: free.
- Concepts: [Fair Value Gap](https://www.luxalgo.com/library/concept/fair-value-gap/) (primary), [Volume Imbalance](https://www.luxalgo.com/library/concept/volume-imbalance/), [Opening Gap](https://www.luxalgo.com/library/concept/opening-gap/)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=cmpwn2ivz003hvhsgs4wagt64
- Page: https://www.luxalgo.com/library/indicator/imbalance-detector/

**Imbalance Detector** finds the three imbalance families price action traders watch, [fair value gaps](https://www.luxalgo.com/library/concept/fair-value-gap/), opening gaps and [volume imbalances](https://www.luxalgo.com/library/concept/volume-imbalance/), and then does something rarer: it counts them. A built-in dashboard reports how frequently each type appears on the current chart and what percentage ends up filled, turning zones that are usually eyeballed into measurable statistics. The highlighted areas double as support/resistance or trade targets, since price often gravitates back to rebalance them.

## How to Trade the Imbalance Detector?

- **Bullish FVG**: a three-candle formation whose current low sits above the high from two bars earlier, a footprint of buying momentum and a zone to watch for support on the return.
- **Bearish FVG**: the current high below the low from two bars back flags selling pressure and potential resistance overhead.
- **Opening gaps**: price ranges left untraded when a bar trades entirely beyond the prior bar's extreme; rarer in markets that trade continuously, and prioritized over FVGs when both occur together.
- **Volume imbalances**: a discontinuity between the open and preceding close without an empty range, a subtler momentum tell, with extra filtering to isolate the meaningful ones.

Check the dashboard's fill percentage before leaning on a zone type: it shows how the current symbol actually treats each imbalance. Alerts are available whenever a new imbalance appears.

## Imbalance Detector Settings

- **Fair Value Gaps (FVG)**, **Show Opening Gaps (OG)** and **Show Volume Imbalances (VI)**: enable or disable each imbalance type independently.
- **Min Width** (set per type, off by default): the minimum area size (in points, percentages or ATR multiples) that filters out insignificant zones.
- **Extend FVG / Extend OG / Extend VI**: pushes each type's detected areas a chosen number of bars to the right (0, 0 and 5 bars by default).
- **Show Dashboard** (off by default): shows or hides the statistics panel, with position and size options to fit your layout.

## Frequently Asked Questions

### Does it detect implied fair value gaps?
No. This build covers standard FVGs, opening gaps and volume imbalances. Wick-measured implied gaps have their own dedicated companion, the [ICT Implied Fair Value Gap (IFVG)](https://www.luxalgo.com/library/indicator/ict-implied-fair-value-gap-ifvg/), which derives zones from adjacent candle shadows.

### What does the dashboard actually measure?
Two things per imbalance type: how many have appeared and the percentage that were filled. Together they indicate whether the market you are trading respects a given zone type often enough to build decisions around it.

### How can I access the Imbalance Detector?
Free, through the LuxAlgo Library. No subscription required for this build. You can also copy the source code from this page and run it anywhere Pine Script® runs.

## Related indicators

- [Fair Value Gap Absorption Indicator](https://www.luxalgo.com/library/indicator/fair-value-gap-absorption-indicator/) (Fair Value Gap): markdown at https://www.luxalgo.com/library/indicator/fair-value-gap-absorption-indicator.md
- [Fair Value Gaps Mitigation Oscillator](https://www.luxalgo.com/library/indicator/fair-value-gaps-mitigation-oscillator/) (Fair Value Gap): markdown at https://www.luxalgo.com/library/indicator/fair-value-gaps-mitigation-oscillator.md
- [Breakaway Fair Value Gaps](https://www.luxalgo.com/library/indicator/breakaway-fair-value-gaps/) (Fair Value Gap): markdown at https://www.luxalgo.com/library/indicator/breakaway-fair-value-gaps.md
- [HTF Fair Value Gap](https://www.luxalgo.com/library/indicator/htf-fair-value-gap/) (Fair Value Gap): markdown at https://www.luxalgo.com/library/indicator/htf-fair-value-gap.md
- [Inversion Fair Value Gaps (IFVG)](https://www.luxalgo.com/library/indicator/inversion-fair-value-gaps-ifvg/) (Fair Value Gap): markdown at https://www.luxalgo.com/library/indicator/inversion-fair-value-gaps-ifvg.md
- [ICT Implied Fair Value Gap (IFVG)](https://www.luxalgo.com/library/indicator/ict-implied-fair-value-gap-ifvg/) (Fair Value Gap): markdown at https://www.luxalgo.com/library/indicator/ict-implied-fair-value-gap-ifvg.md
- [Liquidity Voids (FVG)](https://www.luxalgo.com/library/indicator/liquidity-voids-fvg/) (Fair Value Gap): markdown at https://www.luxalgo.com/library/indicator/liquidity-voids-fvg.md
- [FVG Channel](https://www.luxalgo.com/library/indicator/fvg-channel/) (Fair Value Gap): markdown at https://www.luxalgo.com/library/indicator/fvg-channel.md

---

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