Gaps + Imbalances + Wicks (MTF) - By Leviathan
Feb 10, 2023

The Gaps + Imbalances + Wicks (MTF) indicator identifies and visualizes key price action inefficiencies including gaps, fair value gaps, and candle wicks across multiple timeframes. This tool provides a comprehensive framework for identifying institutional liquidity zones and significant areas of interest with advanced filtering and customization options.
Usage
The Usage section describes how the script can be used to isolate specific price action structures. Users can toggle between three primary zone types to analyze different market behaviors:
- Imbalances (Fair Value Gaps): Identified using a three-candle sequence. When a sharp move occurs, the script plots a zone between the low of the first candle and the high of the third candle (for bearish moves) or vice-versa (for bullish moves).
- Gaps: Highlights areas where no trading activity occurred between the close of one candle and the open of the next.
- Wicks: Focuses on the upper and lower shadows of candles, representing price rejection.
Examples
- Multi-Timeframe Analysis: By setting the "Zone Type" timeframe higher than the current chart, users can view high-timeframe supply and demand zones on a lower-timeframe execution chart.
- Mitigation Tracking: Using the "Fill Condition" (Touch, Half Fill, or Full Fill), traders can monitor when a zone has been mitigated by price action, signaling a potential completion of an inefficiency retest.
- Volatility Filtering: By enabling the "Filter Type" (ATR or Percentage), the script can be configured to only show significant imbalances that exceed a certain size, reducing chart noise during low-volatility periods.
Details
The script utilizes request.security to fetch data for multi-timeframe analysis. It handles complex visualization through the use of arrays for boxes and lines, ensuring that objects are updated or deleted based on user-defined lookback periods and mitigation logic.
- Imbalance Calculation: Defined as $(Low_n - High_{n-2})$ for bullish or $(Low_{n-2} - High_n)$ for bearish structures.
- Wick Calculation: Upper wicks are calculated from the candle high to the maximum of the open/close; lower wicks from the candle low to the minimum of the open/close.
- Filtering Logic: The script calculates the distance of the zone and compares it against an ATR-based threshold or a fixed percentage of price to determine if the zone meets the visual criteria.
Settings
General Settings
- Zone Type: Selects between Imbalance, Gap, or Wick detection and sets the specific timeframe for calculation.
- Middle/Top/Bottom Line: Toggles the visibility of horizontal levels within the detected zones.
- UP/DOWN Zones: Enables or disables bullish/bearish zones and allows for independent color customization.
- Fill Condition: Determines the logic for when a zone stops extending (Touch, Full Fill, or Half Fill).
- Lookback (D): Limits the historical depth of the script to a specific number of days.
- Hide Filled Levels: Removes zones from the chart once the mitigation condition is met.
Filter Settings
- Filter Type: Choose between ATR, Percentage, or None to filter zones by size.
- ATR Length + Mult: Sets the lookback period and multiplier for ATR-based volatility filtering.
- Percentage + Mult: Sets the threshold for filtering zones based on a percentage of price movement.
Zone Labels
- Labels: Toggles the text display for zones.
- Text Type: Selects the data shown in labels (Type, Volume, or Timeframe).
- Position/Size: Customizes the alignment and font size of the zone labels.
Other Settings
- Stop/Delete Zone: Defines whether a zone should stop extending or be deleted entirely after a certain number of bars.
- Line Style: Customizes the appearance (Solid, Dashed, Dotted) of the zone boundaries.
- Max Zones: Sets the maximum number of boxes and lines allowed on the chart to maintain performance.
FAQ
How can I see only the largest imbalances? Set the "Filter Type" to ATR and increase the "Mult" value. This ensures only price movements that are significantly larger than the average volatility are plotted.
What is the difference between "Touch" and "Full Fill"? "Touch" considers a zone mitigated as soon as price enters any part of the box. "Full Fill" requires price to trade completely through the entire range of the zone before it is considered mitigated.
How do I access this indicator? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Unlock Unlimited Access to the LuxAlgo Library
Upgrade your plan to get all indicators, strategies, charts, and full access to Quant, our AI agent.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

