# Inversion Fair Value Gaps (IFVG)

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

Plots inversion fair value gaps: zones where price closed through a gap against its bias, flipping broken bullish gaps into resistance and broken bearish gaps into support. Retest signals with alerts fire when the new role is confirmed, with wick or close preference and an ATR width filter. A real-time tool for traders working mitigated gap levels.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Feb 1, 2024.
- Access: free.
- Concepts: [Inversion FVG](https://www.luxalgo.com/library/concept/inversion-fvg/) (primary), [Fair Value Gap](https://www.luxalgo.com/library/concept/fair-value-gap/)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=cmpwn2pnw003rvhsg1f77gte3
- Page: https://www.luxalgo.com/library/indicator/inversion-fair-value-gaps-ifvg/

**Inversion Fair Value Gaps (IFVG)** marks the spots where a failed gap switches sides. An [inversion FVG](https://www.luxalgo.com/library/concept/inversion-fvg/) forms when price closes through an entire [fair value gap](https://www.luxalgo.com/library/concept/fair-value-gap/) against its original bias: the broken bullish gap becomes candidate resistance, the broken bearish gap candidate support. The indicator plots each inversion as it develops and signals the retests that confirm the new role.

## How to Trade the Inversion Fair Value Gaps (IFVG)?

- **Bullish signal**: price returns to a bullish inversion zone and exits through the top. The level held as support.
- **Bearish signal**: price revisits a bearish inversion zone and rejects it. Resistance confirmed.
- **Zone resets**: once an inversion zone is itself mitigated, its areas, lines, and signals are cleared so only live levels remain on the chart.
- **Alerts**: alert conditions cover both the bullish and bearish retest signals for hands-off monitoring.

The tool is deliberately oriented to live analysis. Because inversion zones reset dynamically as they are mitigated, historical bars cannot reproduce the state a trader actually faced at the time, so judge it forward on real-time markets rather than by scrolling back.

## Inversion Fair Value Gaps (IFVG) Settings

- **Show Last**: how many recent bullish/bearish inversion pairs stay visible, up to 100.
- **Signal Preference**: derive retest signals from wicks or from closing prices.
- **ATR Multiplier**: filters gaps by width, keeping only inversions wider than the ATR-scaled threshold.

## Frequently Asked Questions

### Why is it aimed at real-time use rather than backtesting?

Mitigations reset zones and signals as they occur, and that dynamic state is exactly what the method trades. Historical bars flatten it away, so past charts understate what the indicator was showing in the moment.

### How does it relate to other fair value gap tools?

Most gap tools follow open gaps and retire them once filled; this one begins precisely where those stop. For a study centered on the filling process itself, the [Fair Value Gaps Mitigation Oscillator](https://www.luxalgo.com/library/indicator/fair-value-gaps-mitigation-oscillator/) makes mitigation its whole subject.

### How do I access the Inversion Fair Value Gaps (IFVG) indicator?

Access is free through the LuxAlgo Library. Straight from this page you can also run it inside Quant, our coding agent, and watch inversion behavior on your preferred symbols. You can also copy the source code from this page and run it anywhere Pine Script® runs.

## Related indicators

- [Sweeps & IFVGs](https://www.luxalgo.com/library/indicator/sweeps-ifvgs/) (Inversion FVG): markdown at https://www.luxalgo.com/library/indicator/sweeps-ifvgs.md
- [Session Sweep & iFVG RR](https://www.luxalgo.com/library/indicator/session-sweep-ifvg-rr/) (Inversion FVG): markdown at https://www.luxalgo.com/library/indicator/session-sweep-ifvg-rr.md
- [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
- [Significant Breakout Levels (FVG)](https://www.luxalgo.com/library/indicator/significant-breakout-levels-fvg/) (Fair Value Gap): markdown at https://www.luxalgo.com/library/indicator/significant-breakout-levels-fvg.md
- [AMD FVG Trade Setup](https://www.luxalgo.com/library/indicator/amd-fvg-trade-setup/) (Fair Value Gap): markdown at https://www.luxalgo.com/library/indicator/amd-fvg-trade-setup.md
- [FVG + Liquidity Sweep + CISD](https://www.luxalgo.com/library/indicator/fvg-liquidity-sweep-cisd/) (Fair Value Gap): markdown at https://www.luxalgo.com/library/indicator/fvg-liquidity-sweep-cisd.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/inversion-fair-value-gaps-ifvg/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
