OPEN-SOURCE SCRIPT
Updated

AncientNeros Gap Suite (Mitigated)

134
[h2]AncientNeros Gap Suite (Mitigated) - Official Description[/h2]

[h3]Overview[/h3] AncientNeros Gap Suite (Mitigated) is a professional-grade liquidity monitoring tool designed for TradingView. Unlike static gap indicators, this script implements a dynamic mathematical reduction logic that tracks real-time liquidity mitigation. It identifies institutional imbalances and visualizes them as "Live Liquidity Boxes" that shrink as the price retests and fills the imbalance.

Licensed to: AncientNero

[h3]Core Logic & Definitions[/h3]

The indicator monitors two distinct types of price gaps to provide a comprehensive view of market imbalances:

  • [] Candle Gap (CG): The "Classic" gap. Created when there is no price action overlap between the wicks of two consecutive candles (Wick-to-Wick). [] Body Gap (BG): A broader liquidity void. Detected when the current price opens and stays beyond the previous candle's body (Open/Close range), even if the wicks overlap.


[h3]The Power of Mitigation (Live Shrinking)[/h3]

The standout feature of this suite is its Live Mitigation Engine. Instead of remaining static until fully filled, the boxes react dynamically to price movement:

  • [] Bullish Gaps (Support Boxes): When the low of a new candle penetrates the box from above, the top of the box is moved down to that low. [] Bearish Gaps (Resistance Boxes): When the high of a new candle penetrates the box from below, the bottom of the box is moved up to that high.
  • Auto-Deletion: Once a gap is 100% mitigated (Top matches Bottom), the box is automatically removed, ensuring Clean Charts and focusing only on untestet liquidity.


[h3]Key Benefits for Traders[/h3]

  • [] Precision: You see exactly which part of a gap remains untested. Price often reacts strongly to the final 10-20% of a remaining box. [] Clean Interface: Automated deletion of filled gaps prevents chart clutter. [] Institutional Insight: Monitor where the market "left money on the table" and see in real-time as that liquidity is harvested. [] Optimized Performance: Coded in Pine Script v6 with a configurable lookback period to ensure smooth performance even on high-volatility charts.


[h3]Settings & Customization[/h3]

  • [] Lookback Period: Define how many historical bars the indicator should scan for active gaps (Default: 5000). [] Styling: Independent color controls for Bullish/Bearish Body Gaps and Candle Gaps.
  • Auto-Extension: Active boxes automatically extend to the right of the chart until they are fully mitigated.


[h3]How to use[/h3]
  • [] Bullish Entry Interest: Look for price tests of the remaining area of a Bullish CG/BG. [] Bearish Entry Interest: Watch for price rejections at the remaining area of a Bearish CG/BG.
  • Targeting: Use unmitigated boxes as high-probability targets for profit taking.


Disclaimer: Trading involves risk. This indicator is a visualization tool and does not constitute financial advice.
Release Notes
UPDATE

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.