# Sweeps & IFVGs

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

Marks liquidity sweeps of prior swing highs and lows alongside inverse fair value gaps: failed gaps that flip into opposite support or resistance. Sweep areas can extend across the chart, an ATR-based filter admits only meaningful gaps, and alerts cover both event types. A focused reversal toolkit for price action traders.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Jun 4, 2026.
- Access: free.
- Concepts: [Liquidity Sweep](https://www.luxalgo.com/library/concept/liquidity-sweep/) (primary), [Inversion FVG](https://www.luxalgo.com/library/concept/inversion-fvg/), [Fair Value Gap](https://www.luxalgo.com/library/concept/fair-value-gap/)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=cmq014oka002xgy049id5z3iy
- Page: https://www.luxalgo.com/library/indicator/sweeps-ifvgs/

**Sweeps & IFVGs** watches the two reversal events price action traders prize most. It flags every [liquidity sweep](https://www.luxalgo.com/library/concept/liquidity-sweep/) (price pushing past a prior swing high or low before turning back) and tracks fair value gaps until one fails, at which point it becomes an [inverse fair value gap](https://www.luxalgo.com/library/concept/inversion-fvg/): a zone now watched for the opposite role. Sweep areas can extend across the chart, an ATR-scaled filter admits only meaningful gaps, and alerts fire on both event types.

## How to Trade the Sweeps & IFVGs?

- **Sweep zones**: a marked sweep shows where stops were likely collected; the highlighted area can extend rightward as a reference for later reactions.
- **IFVG retests**: once a close through the gap confirms the inversion, watch for a reaction when price returns. Support-side interest becomes resistance-side interest, and vice versa.
- **Choose your sweep definition**: focus strictly on wicks, include break-and-retrace cases, or take both, via the Sweep Options input.
- **Size matters**: only gaps exceeding the volatility filter, a multiple of ATR, are processed. Minor gaps never reach the chart.

A cap on displayed IFVGs keeps the workspace clean even on gap-prone markets.

## Sweeps & IFVGs Settings

- **Swings**: lookback for the swing highs and lows used in sweep detection.
- **Sweep Options**: wicks only, outbreaks and retests, or both, with bullish and bearish sweep colors.
- **Extend Sweep Areas / Max Bars to Extend**: project sweep zones to the right and cap how long they persist.
- **Show Inverse FVGs / Volatility Filter Multiplier / Max Displayed IFVGs**: toggle IFVG zones, set the ATR-based size filter, and limit active boxes.
- **Alert on Liquidity Sweeps / Alert on IFVG Inversions**: notifications for each event type.

## Frequently Asked Questions

### When does a fair value gap become inverted here?

Only when the closing price breaches the gap, which the script treats as a shift in the sentiment that created it. From then on the zone is highlighted as a potential reaction area playing the opposite role.

### Can I measure the volume inside a sweep?

Not with this tool: it marks the events themselves. [Sweep Volume Index](https://www.luxalgo.com/library/indicator/sweep-volume-index/) fills that need by counting intrabar volume traded beyond the swept level, making the pair a complete sweep workflow.

### How is the indicator accessed?

Through the LuxAlgo Library, free of charge. This page can also launch it inside Quant, our coding agent, if you'd like to explore sweep and inversion behavior across history.

## Related indicators

- [Liquidity Sweeps](https://www.luxalgo.com/library/indicator/liquidity-sweeps/) (Liquidity Sweep): markdown at https://www.luxalgo.com/library/indicator/liquidity-sweeps.md
- [FVG + Liquidity Sweep + CISD](https://www.luxalgo.com/library/indicator/fvg-liquidity-sweep-cisd/) (Liquidity Sweep): markdown at https://www.luxalgo.com/library/indicator/fvg-liquidity-sweep-cisd.md
- [Pure Price Action Liquidity Sweeps](https://www.luxalgo.com/library/indicator/pure-price-action-liquidity-sweeps/) (Liquidity Sweep): markdown at https://www.luxalgo.com/library/indicator/pure-price-action-liquidity-sweeps.md
- [Session Sweeps](https://www.luxalgo.com/library/indicator/session-sweeps/) (Liquidity Sweep): markdown at https://www.luxalgo.com/library/indicator/session-sweeps.md
- [ICT Concepts](https://www.luxalgo.com/library/indicator/ict-concepts/) (Liquidity Sweep): markdown at https://www.luxalgo.com/library/indicator/ict-concepts.md
- [HTF Sweep Signals](https://www.luxalgo.com/library/indicator/htf-sweep-signals/) (Liquidity Sweep): markdown at https://www.luxalgo.com/library/indicator/htf-sweep-signals.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
- [Inversion Fair Value Gaps (IFVG)](https://www.luxalgo.com/library/indicator/inversion-fair-value-gaps-ifvg/) (Inversion FVG): markdown at https://www.luxalgo.com/library/indicator/inversion-fair-value-gaps-ifvg.md

---

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