OPEN-SOURCE SCRIPT
Cập nhật IS Ghostbusters - Visual Session Levels & Auto-Hedge Logic

Ghostbusters is a visual execution tool designed for traders who operate based on fixed intraday levels and seek disciplined risk management. The script does more than just project entry, stop loss, and take profit levels; it acts as a real-time session monitor, validating executions and automatically managing hedge operations.
+1
Key Features:
Precision "Touch" Detection: Unlike standard indicators that wait for a candle to close, Ghostbusters uses intrabar prices (High/Low) to detect the exact moment price touches a level, ensuring surgical precision for entries and exits.
"One-Shot" Logic: To prevent overtrading, the script validates only the first outcome of the day. Once a TP or SL is hit, the indicator locks until the next configured session.
+1
Automatic Hedge System: If the initial trade hits the Stop Loss, the script automatically activates a violet-colored hedge radar. It calculates a new entry at the failure point, sets the Stop Loss at the original entry price, and calculates a reduced Take Profit (50% of the original range) to seek a quick technical recovery.
+1
Adaptable Professional UI:
Smart Contrast: Labels automatically change color based on your chart background (light or dark) to ensure total readability.
Level Table: Includes a dynamic table in the bottom corner that organizes SELL, BUY, and Hedge values.
Synchronized Infinite Lines: Uses line objects that span the entire chart, maintaining perfect synchronization with the price scale when zooming or scrolling.
How to Use It:
Configure Levels: Manually enter your Entry, SL, and TP levels for both BUY and SELL scenarios.
Session Control: Define your session start time. The script will ignore any prior movement and place a yellow "START" circle on the starting candle.
+1
Execution: Monitor the visual signals:
▲/▼ OPEN: Confirmed Entry.
✔️ TP: Target Reached.
X SL: Stop Loss Hit.
🟣 OPEN HEDGE: Hedge activation after an initial SL.
Technical Notes:
Written in Pine Script v6.
Optimized to keep the chart clean by avoiding unnecessary data points, maintaining a professional aesthetic.
Disclaimer: This script is a visualization and manual trading aid. It does not constitute financial advice or guarantee profits. Use at your own risk.
+1
Key Features:
Precision "Touch" Detection: Unlike standard indicators that wait for a candle to close, Ghostbusters uses intrabar prices (High/Low) to detect the exact moment price touches a level, ensuring surgical precision for entries and exits.
"One-Shot" Logic: To prevent overtrading, the script validates only the first outcome of the day. Once a TP or SL is hit, the indicator locks until the next configured session.
+1
Automatic Hedge System: If the initial trade hits the Stop Loss, the script automatically activates a violet-colored hedge radar. It calculates a new entry at the failure point, sets the Stop Loss at the original entry price, and calculates a reduced Take Profit (50% of the original range) to seek a quick technical recovery.
+1
Adaptable Professional UI:
Smart Contrast: Labels automatically change color based on your chart background (light or dark) to ensure total readability.
Level Table: Includes a dynamic table in the bottom corner that organizes SELL, BUY, and Hedge values.
Synchronized Infinite Lines: Uses line objects that span the entire chart, maintaining perfect synchronization with the price scale when zooming or scrolling.
How to Use It:
Configure Levels: Manually enter your Entry, SL, and TP levels for both BUY and SELL scenarios.
Session Control: Define your session start time. The script will ignore any prior movement and place a yellow "START" circle on the starting candle.
+1
Execution: Monitor the visual signals:
▲/▼ OPEN: Confirmed Entry.
✔️ TP: Target Reached.
X SL: Stop Loss Hit.
🟣 OPEN HEDGE: Hedge activation after an initial SL.
Technical Notes:
Written in Pine Script v6.
Optimized to keep the chart clean by avoiding unnecessary data points, maintaining a professional aesthetic.
Disclaimer: This script is a visualization and manual trading aid. It does not constitute financial advice or guarantee profits. Use at your own risk.
Phát hành các Ghi chú
changes to the data table , to make it easier to readMã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.