PROTECTED SOURCE SCRIPT
FVG Pro: Custom Style & Alerts

Introduction The FVG Pro is an advanced Smart Money Concepts (SMC) tool designed to detect Fair Value Gaps (Imbalance) with precision. Unlike standard indicators that clutter your chart with invalid zones, this script features a "Smart Clean" logic that automatically removes zones once they are invalidated by a confirmed Candle Close.
Why Use This Indicator? Many FVG indicators fail to distinguish between a "wick test" and a true "breakout." This script solves that problem. It keeps the FVG box active if price only wicks through it, respecting the zone as a valid support/resistance until a candle body explicitly closes beyond the gap.
Key Features:
Body Break Logic: The FVG box is ONLY removed if a candle Closes beyond the zone. Wicks (tails) that pierce the zone will not delete the box, allowing you to catch precise rejections.
Auto-Extend & Clean: Boxes automatically extend to the right to follow price action and vanish instantly upon invalidation to keep your chart clean.
Smart Coloring:
Yellow Candle: Indicates a Bullish (Buy) Gap formation.
Purple Candle: Indicates a Bearish (Sell) Gap formation.
Customizable Visuals:
Includes a Middle Line (Consequent Encroachment - CE) with customizable styles (Solid/Dash/Dot).
Ghost-box transparency to ensure price action remains visible.
Advanced Alerts: Integrated alert() function triggers ONLY on bar close, ensuring zero false signals while you are away from the screen.
Settings Guide:
Mode Panjang Box: Choose "Auto Extend" to track live zones or "Fixed" for backtesting history.
Minimal Gap Size: Filter out small/insignificant gaps to reduce noise on lower timeframes.
Midline Style: Customize the 50% equilibrium line to fit your chart theme.
Disclaimer: This tool is for educational purposes and to assist in technical analysis. Always manage your risk properly.
Why Use This Indicator? Many FVG indicators fail to distinguish between a "wick test" and a true "breakout." This script solves that problem. It keeps the FVG box active if price only wicks through it, respecting the zone as a valid support/resistance until a candle body explicitly closes beyond the gap.
Key Features:
Body Break Logic: The FVG box is ONLY removed if a candle Closes beyond the zone. Wicks (tails) that pierce the zone will not delete the box, allowing you to catch precise rejections.
Auto-Extend & Clean: Boxes automatically extend to the right to follow price action and vanish instantly upon invalidation to keep your chart clean.
Smart Coloring:
Yellow Candle: Indicates a Bullish (Buy) Gap formation.
Purple Candle: Indicates a Bearish (Sell) Gap formation.
Customizable Visuals:
Includes a Middle Line (Consequent Encroachment - CE) with customizable styles (Solid/Dash/Dot).
Ghost-box transparency to ensure price action remains visible.
Advanced Alerts: Integrated alert() function triggers ONLY on bar close, ensuring zero false signals while you are away from the screen.
Settings Guide:
Mode Panjang Box: Choose "Auto Extend" to track live zones or "Fixed" for backtesting history.
Minimal Gap Size: Filter out small/insignificant gaps to reduce noise on lower timeframes.
Midline Style: Customize the 50% equilibrium line to fit your chart theme.
Disclaimer: This tool is for educational purposes and to assist in technical analysis. Always manage your risk properly.
Script protégé
Ce script est publié en source fermée. Cependant, vous pouvez l'utiliser librement et sans aucune restriction – pour en savoir plus, cliquez ici.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script protégé
Ce script est publié en source fermée. Cependant, vous pouvez l'utiliser librement et sans aucune restriction – pour en savoir plus, cliquez ici.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.