# Internal & External Range Liquidity

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

Maps a dealing range from the latest major swings: its high and low hold the external liquidity, unfilled fair value gaps inside it are the internal liquidity. A raid of one extreme turns the draw to the nearest internal gap; once that is taken, the draw rotates to the untouched extreme. Raids, runs and fills are labeled, the next draw is plotted, and a dashboard tracks the state.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Feb 24, 2026.
- Access: free.
- Concepts: [internal vs external range liquidity](https://www.luxalgo.com/library/concept/internal-vs-external-range-liquidity/) (primary)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=rgsnp836zv2x4qipqo6pwzha
- Page: https://www.luxalgo.com/library/indicator/internal-vs-external-range-liquidity/

**Internal & External Range Liquidity** provides a framework for tracking price behavior relative to major dealing ranges by identifying key liquidity levels and internal inefficiencies. It helps traders visualize market structure by distinguishing between External Range Liquidity (ERL), located at the extremes of a swing, and Internal Range Liquidity (IRL), which consists of fair value gaps within that range. By monitoring how price interacts with these levels, the indicator highlights potential rotations, breakouts, and target zones, offering a systematic approach to anticipating where the market may gravitate next.

## How to Trade the Internal & External Range Liquidity?

To trade effectively with this indicator, observe the rotation cycle between the range extremes and internal gaps. A raid at an ERL, where price sweeps the high or low but closes back inside the range, often signals a rejection that encourages a move toward the nearest internal liquidity. Once that IRL is captured, the market frequently rotates back toward the opposite ERL.

Monitor the "Next Draw" indicator to identify the current objective of price action. If the market is in a raid scenario, the draw will point toward the nearest valid fair value gap. If an IRL has already been captured, the draw typically shifts toward the opposite ERL. Use the dashboard to determine if price is in a premium or discount zone, which helps refine your bias toward long or short positions. A "run" or breakout, indicated when price sustains closes outside the range, suggests the market is moving into a new phase rather than rotating, which may indicate a trend continuation.

## Internal & External Range Liquidity Settings

### Dealing Range (ERL)
*   **Range Swing Length**: Defines the number of bars on each side required for a swing to anchor the dealing range.
*   **Acceptance Closes**: Sets the number of bars that must close beyond a range extreme to confirm a breakout, as opposed to a rejection or raid.
*   **Equilibrium**: Toggles the visibility of the 50 percent midpoint line, helping you visualize premium versus discount zones.

### Internal Liquidity (IRL)
*   **Minimum Gap Size**: Sets a threshold for fair value gaps based on a multiple of the Average True Range. Gaps smaller than this are ignored.
*   **Fill Rule**: Determines when a gap is considered captured: by simple touch, consequent encroachment (50 percent), or full trade through.
*   **Max Tracked Gaps**: Limits the number of open gaps held in the system.
*   **Keep Filled Gaps**: Determines how many previously filled gaps remain visible on the chart for review.

### Rotation, Dashboard, and Style
*   **Show Next Draw**: Enables a line that visually indicates the current liquidity objective.
*   **Event Labels**: Displays labels on the chart when specific events occur, such as ERL raids or IRL captures.
*   **Show Dashboard**: Toggles a small summary table displaying current range status, percentage level, and next draw objectives.
*   **Style Inputs**: Allows you to adjust the colors for Buy-side ERL, Sell-side ERL, IRL, and the Equilibrium line.

## Frequently Asked Questions

### What is the difference between ERL and IRL?
ERL stands for External Range Liquidity, which is the pool of buy or sell stop orders resting just beyond the established swing highs and lows, whereas IRL stands for Internal Range Liquidity, consisting of fair value gaps trapped within those range bounds.

### How does the indicator distinguish a raid from a breakout?
A raid occurs when price pierces a range extreme but fails to sustain the move, closing back inside the range within the specified acceptance window; a breakout, or run, occurs when price closes beyond the extreme for a sustained number of bars.

### Can this indicator be used on any timeframe?
Yes, the indicator is designed to be versatile; by adjusting the range swing length, you can calibrate the tool to analyze market structure on any timeframe that aligns with your specific trading strategy.

## Related indicators

- [Ultimate AMD Indicator](https://www.luxalgo.com/library/indicator/ultimate-amd-indicator/) (Judas Swing): markdown at https://www.luxalgo.com/library/indicator/ultimate-amd-indicator.md
- [Sweeps & IFVGs](https://www.luxalgo.com/library/indicator/sweeps-ifvgs/) (Liquidity Sweep): markdown at https://www.luxalgo.com/library/indicator/sweeps-ifvgs.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
- [CRT Sweep & Setup Highlighter](https://www.luxalgo.com/library/indicator/crt-sweep-setup-highlighter/) (Liquidity Sweep): markdown at https://www.luxalgo.com/library/indicator/crt-sweep-setup-highlighter.md
- [MSS Sweep Fib Retrace](https://www.luxalgo.com/library/indicator/mss-sweep-fib-retrace/) (Liquidity Sweep): markdown at https://www.luxalgo.com/library/indicator/mss-sweep-fib-retrace.md
- [Price Action Concepts](https://www.luxalgo.com/library/indicator/luxalgo-price-action-concepts/) (Liquidity Sweep): markdown at https://www.luxalgo.com/library/indicator/luxalgo-price-action-concepts.md
- [Session Sweep & iFVG RR](https://www.luxalgo.com/library/indicator/session-sweep-ifvg-rr/) (Session Liquidity): markdown at https://www.luxalgo.com/library/indicator/session-sweep-ifvg-rr.md
- [Liquidity Sweeps](https://www.luxalgo.com/library/indicator/liquidity-sweeps/) (Liquidity Pool): markdown at https://www.luxalgo.com/library/indicator/liquidity-sweeps.md

---

Source: https://www.luxalgo.com/library/indicator/internal-vs-external-range-liquidity/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
