OPEN-SOURCE SCRIPT
Ict + Alert (Realtime) - Optimized v2

📊 Description
This indicator implements the ICT (Inner Circle Trader) strategy using Fair Order Blocks (FOB) to identify demand and supply zones in the market. Optimized for XAUUSD (Gold) trading with real-time alerts.
🎯 How It Works
The indicator analyzes price movements to identify:
Bullish Fair Order Blocks: Zones where price left uncovered liquidity (gap) during an upward movement
Bearish Fair Order Blocks: Zones where price left uncovered liquidity during a downward movement
When price returns to these zones, the indicator generates:
📦 Colored boxes on the chart (green for long, red for short)
🔔 Real-time alerts with automatically calculated Entry, Stop Loss, and Take Profit
📍 Visual signals (triangles) to easily spot trading opportunities
⚙️ Key Features
Smart Alerts
Realtime: receive instant notifications when a setup forms
Configurable Risk/Reward: set your preferred risk/reward ratio (default 1:3)
Session filter: focus signals during London (08:00-10:00) and New York (14:30-16:30) sessions
Stop Loss with buffer: configurable additional protection
Operating Modes
Realtime Mode: immediate alerts as soon as condition triggers (faster)
Confirmation Mode: alerts only on bar close (more reliable)
Visualization
FOB boxes with adjustable transparency
Optional midline to identify precise entry
Visual indicators (triangles) for long/short signals
This indicator implements the ICT (Inner Circle Trader) strategy using Fair Order Blocks (FOB) to identify demand and supply zones in the market. Optimized for XAUUSD (Gold) trading with real-time alerts.
🎯 How It Works
The indicator analyzes price movements to identify:
Bullish Fair Order Blocks: Zones where price left uncovered liquidity (gap) during an upward movement
Bearish Fair Order Blocks: Zones where price left uncovered liquidity during a downward movement
When price returns to these zones, the indicator generates:
📦 Colored boxes on the chart (green for long, red for short)
🔔 Real-time alerts with automatically calculated Entry, Stop Loss, and Take Profit
📍 Visual signals (triangles) to easily spot trading opportunities
⚙️ Key Features
Smart Alerts
Realtime: receive instant notifications when a setup forms
Configurable Risk/Reward: set your preferred risk/reward ratio (default 1:3)
Session filter: focus signals during London (08:00-10:00) and New York (14:30-16:30) sessions
Stop Loss with buffer: configurable additional protection
Operating Modes
Realtime Mode: immediate alerts as soon as condition triggers (faster)
Confirmation Mode: alerts only on bar close (more reliable)
Visualization
FOB boxes with adjustable transparency
Optional midline to identify precise entry
Visual indicators (triangles) for long/short signals
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.
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.