OPEN-SOURCE SCRIPT
VG 1.0

This script is an enhanced version of SMC Structures and FVG with an advanced JSON-based alert system designed for seamless integration with webhooks and external applications (such as a Swift iOS app).
What it does
It detects and plots on the chart:
Fair Value Gaps (FVG) — bullish and bearish.
Break of Structure (BOS) and Change of Character (CHOCH).
Key Fibonacci levels (0.786, 0.705, 0.618, 0.5, 0.382) based on the current structure.
Additionally, it generates custom alerts:
FVG Alerts:
When a new FVG is created (bullish or bearish).
When an existing FVG gets mitigated.
BOS & CHOCH Alerts:
Includes breakout direction (bullish or bearish).
Fibonacci Alerts:
When price touches a configured level, with adjustable tick tolerance.
Alerts can be:
Declarative (alertcondition) for manual setup inside TradingView.
Programmatic (alert() JSON) for automated webhook delivery to your system or mobile app.
Key Features
Optional close confirmation to filter out false signals.
Standardized JSON format for direct API or mobile app integration.
Webhook-ready for automated push notifications.
Full visual control with lines, boxes, and labels.
Configurable tick tolerance for Fibonacci “touch” detection.
What it does
It detects and plots on the chart:
Fair Value Gaps (FVG) — bullish and bearish.
Break of Structure (BOS) and Change of Character (CHOCH).
Key Fibonacci levels (0.786, 0.705, 0.618, 0.5, 0.382) based on the current structure.
Additionally, it generates custom alerts:
FVG Alerts:
When a new FVG is created (bullish or bearish).
When an existing FVG gets mitigated.
BOS & CHOCH Alerts:
Includes breakout direction (bullish or bearish).
Fibonacci Alerts:
When price touches a configured level, with adjustable tick tolerance.
Alerts can be:
Declarative (alertcondition) for manual setup inside TradingView.
Programmatic (alert() JSON) for automated webhook delivery to your system or mobile app.
Key Features
Optional close confirmation to filter out false signals.
Standardized JSON format for direct API or mobile app integration.
Webhook-ready for automated push notifications.
Full visual control with lines, boxes, and labels.
Configurable tick tolerance for Fibonacci “touch” detection.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.