XRS FVG Auto MitigateXRS FVG Auto Mitigate is a Fair Value Gap tool designed to detect bullish and bearish FVGs and visually track how much of each gap has been mitigated.
The indicator marks new fair value gaps directly on the chart and displays a percentage label showing the current mitigation level. This makes it easier to see whether an FVG is untouched, partially filled, or mostly mitigated.
Features include:
• Bullish and bearish Fair Value Gap detection
• Fixed-width FVG boxes
• Halfway / 50% line inside each FVG
• Live mitigation percentage label
• Optional auto-removal when mitigation reaches a selected percentage
• Custom number of active FVGs to keep on chart
• Custom bullish and bearish fill/border colors
• Hardened delete and array-sync logic for more stable long-running use
This tool is useful for traders who use Fair Value Gaps, imbalances, mitigation, displacement, liquidity sweeps, and auction-market context. It can help identify potential reaction zones, partial fills, full mitigation areas, and areas where price may return to rebalance.
This indicator does not provide automatic buy or sell signals. It is intended as a discretionary charting and confluence tool.
Disclaimer: This script is for educational and informational purposes only and does not constitute financial advice. Trading involves risk. Use at your own discretion.
Indicateur Pine Script®






















