OPEN-SOURCE SCRIPT
AI PRE-MARKET PRO - True/Fake Gap Classification-Version 1.0

## **AI PRE-MARKET PRO: QUICK START GUIDE**
This indicator classifies market gaps by comparing the **Current Price** to yesterday’s **High (PDH)**, **Low (PDL)**, and **Close (PDC)**.
### **1. GAP CLASSIFICATIONS**
* **🔥 TRUE GAPS (High Momentum)**
* **True Gap Up:** Price is above PDH. The market is in "Discovery Mode." High probability of trend continuation.
* **True Gap Down:** Price is below PDL. Significant bearish sentiment. High probability of further selling.
* **⚠️ FAKE GAPS (Mean Reversion)**
* **Fake Gap Up:** Above PDC but below PDH. Price is "trapped" in yesterday's value. Often reverts to the Close (PDC).
* **Fake Gap Down:** Below PDC but above PDL. Price is "trapped." Often bounces back toward the Close (PDC).
### **2. TRADING STRATEGY CHEAT SHEET**
| Scenario | Primary Play | Entry Logic |
| --- | --- | --- |
| **True Gap Up** | **Continuation** | Wait for a pullback to **PDH**; buy the hold. |
| **True Gap Down** | **Continuation** | Wait for a rally to **PDL**; short the rejection. |
| **Fake Gap Up** | **Fade/Range** | Short the rejection of **PDH** or **ONH**; target **PDC**. |
| **Fake Gap Down** | **Fade/Range** | Buy the bounce at **PDL** or **ONL**; target **PDC**. |
### **3. CRITICAL LEVELS ON YOUR CHART**
* **PDH / PDL:** The "Line in the Sand." Breaking these turns a Fake Gap into a True Gap.
* **ONH / ONL:** Overnight High/Low. These are your immediate support/resistance targets for the first 30 minutes of trading.
* **PDC:** Previous Day Close. The "Magnet." If the market doesn't trend, it usually returns here.
### **4. HOW TO READ THE AI TABLES**
* **Left Table:** Shows real-time distance (RT Δ) to key levels and whether they have been hit yet (**Mitigated**).
* **Bottom Tables:** Provide a probability-based "Game Plan" and specific execution rules (e.g., "Wait for 15-minute confirmation").
---
**Next Step:** Would you like me to show you how to set up an alert for when the price crosses the **PDH** or **PDL** to catch a True Gap breakout?
This indicator classifies market gaps by comparing the **Current Price** to yesterday’s **High (PDH)**, **Low (PDL)**, and **Close (PDC)**.
### **1. GAP CLASSIFICATIONS**
* **🔥 TRUE GAPS (High Momentum)**
* **True Gap Up:** Price is above PDH. The market is in "Discovery Mode." High probability of trend continuation.
* **True Gap Down:** Price is below PDL. Significant bearish sentiment. High probability of further selling.
* **⚠️ FAKE GAPS (Mean Reversion)**
* **Fake Gap Up:** Above PDC but below PDH. Price is "trapped" in yesterday's value. Often reverts to the Close (PDC).
* **Fake Gap Down:** Below PDC but above PDL. Price is "trapped." Often bounces back toward the Close (PDC).
### **2. TRADING STRATEGY CHEAT SHEET**
| Scenario | Primary Play | Entry Logic |
| --- | --- | --- |
| **True Gap Up** | **Continuation** | Wait for a pullback to **PDH**; buy the hold. |
| **True Gap Down** | **Continuation** | Wait for a rally to **PDL**; short the rejection. |
| **Fake Gap Up** | **Fade/Range** | Short the rejection of **PDH** or **ONH**; target **PDC**. |
| **Fake Gap Down** | **Fade/Range** | Buy the bounce at **PDL** or **ONL**; target **PDC**. |
### **3. CRITICAL LEVELS ON YOUR CHART**
* **PDH / PDL:** The "Line in the Sand." Breaking these turns a Fake Gap into a True Gap.
* **ONH / ONL:** Overnight High/Low. These are your immediate support/resistance targets for the first 30 minutes of trading.
* **PDC:** Previous Day Close. The "Magnet." If the market doesn't trend, it usually returns here.
### **4. HOW TO READ THE AI TABLES**
* **Left Table:** Shows real-time distance (RT Δ) to key levels and whether they have been hit yet (**Mitigated**).
* **Bottom Tables:** Provide a probability-based "Game Plan" and specific execution rules (e.g., "Wait for 15-minute confirmation").
---
**Next Step:** Would you like me to show you how to set up an alert for when the price crosses the **PDH** or **PDL** to catch a True Gap breakout?
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.