OPEN-SOURCE SCRIPT
Cập nhật R-GAP Kill Zones and Overnight Gap Tracker

**R-GAP** is an advanced TradingView indicator designed for traders who focus on market sessions, liquidity behavior, and overnight price inefficiencies.
It combines customizable **Kill Zones**, an automatic **11PM → 3AM overnight GAP detector**, and a dynamic reference line system based on precise 1-minute timing.
### Main Features
* Fully customizable **Kill Zones**
* Up to 3 independent sessions
* Adjustable colors, transparency, and timezone
* Automatic high/low range boxes
* Intraday-only display option
* Automatic **Overnight GAP Detection**
* Detects the price gap between the **11PM close** and the **3AM open**
* Uses anchored H1 data for accuracy
* Draws a visual GAP box directly on the chart
* Displays the exact GAP size with labels
* Dynamic **11PM → 3AM Reference Line**
* Drawn using a dedicated 1-minute internal clock
* Fully customizable style, width, and color
* Helps visualize overnight equilibrium and liquidity levels
* Smart historical cleanup system
* Automatically removes old boxes and lines
* Optimized for performance on large histories
* Built-in alert system
* Kill Zone session start alerts
* GAP start and GAP completion alerts
### Ideal For
This indicator is especially useful for traders using:
* ICT / Smart Money Concepts
* Session-based trading
* Liquidity sweeps
* NY / London session models
* Overnight imbalance analysis
* Futures and index trading
### Designed For Precision
R-GAP was built to provide clean institutional-style session visualization while remaining lightweight and highly configurable for discretionary or systematic traders.
It combines customizable **Kill Zones**, an automatic **11PM → 3AM overnight GAP detector**, and a dynamic reference line system based on precise 1-minute timing.
### Main Features
* Fully customizable **Kill Zones**
* Up to 3 independent sessions
* Adjustable colors, transparency, and timezone
* Automatic high/low range boxes
* Intraday-only display option
* Automatic **Overnight GAP Detection**
* Detects the price gap between the **11PM close** and the **3AM open**
* Uses anchored H1 data for accuracy
* Draws a visual GAP box directly on the chart
* Displays the exact GAP size with labels
* Dynamic **11PM → 3AM Reference Line**
* Drawn using a dedicated 1-minute internal clock
* Fully customizable style, width, and color
* Helps visualize overnight equilibrium and liquidity levels
* Smart historical cleanup system
* Automatically removes old boxes and lines
* Optimized for performance on large histories
* Built-in alert system
* Kill Zone session start alerts
* GAP start and GAP completion alerts
### Ideal For
This indicator is especially useful for traders using:
* ICT / Smart Money Concepts
* Session-based trading
* Liquidity sweeps
* NY / London session models
* Overnight imbalance analysis
* Futures and index trading
### Designed For Precision
R-GAP was built to provide clean institutional-style session visualization while remaining lightweight and highly configurable for discretionary or systematic traders.
Phát hành các Ghi chú
Ajustment nameMã 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.
Rafen, your best friend from Israel.
Together, we’re going to beat the market!
Together, we’re going to beat the market!
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.
Rafen, your best friend from Israel.
Together, we’re going to beat the market!
Together, we’re going to beat the market!
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.