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.
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.