OPEN-SOURCE SCRIPT
Key Levels & Sessions

This is a professional-grade institutional key levels indicator designed for day traders who focus on session liquidity and high-volume price levels. The script provides a comprehensive view of the trading day by marking critical boundaries and institutional reference points, all strictly synchronized to the **America/New_York** (EST) timezone.
### **Key Features:**
#### **1. Institutional Daily Levels**
* **Previous Day High (PDH) & Low (PDL):** Marked with solid purple lines, these represent the most basic yet powerful liquidity levels from the prior trading day.
* **Previous Day Point of Control (POC):** A solid white line calculated using a Volume Profile algorithm. It identifies the price level where the most trading activity occurred during the previous session, acting as a "magnet" for price.
#### **2. Global Session Ranges**
* **Asia Session (8:00 PM - 2:00 AM EST):** Plotted in orange. This captures the initial range of the global trading cycle.
* **London Session (4:00 AM - 9:30 AM EST):** Plotted in blue. This identifies the volatility often seen during the European open leading into the New York session.
#### **3. New York 15-Minute Opening Range (ORB)**
* **ORB Box:** Automatically captures the high and low of the first 15 minutes of the New York session (9:30 AM - 9:45 AM EST).
* **Midline Projection:** Features a yellow dashed midline within the ORB box, a critical level often used by traders to determine intraday bias.
#### **4. Dynamic Projection & Cleanup**
* **Extension to Market Close:** Once established, every level (Asia, London, ORB, and PD levels) automatically projects forward to the **5:00 PM EST market close**.
* **Automatic Reset:** To keep your workspace clean and professional, the indicator utilizes an object-tracking system that deletes all drawings from the previous day at exactly 5:00 PM EST, allowing the chart to "reset" for the new Asia session.
* **Right-Anchored Labels:** All levels are clearly labeled on the right side of the chart, ensuring identification is instant without interfering with live price action candles.
### **How to Use:**
This tool is best used on **lower timeframes (1m to 15m)**. Traders often look for price to react at these levels—either as support/resistance or as "liquidity grabs" where price sweeps a session high/low before reversing. The NY ORB box provides a clear breakout or mean-reversion zone for the morning trend.
### **Key Features:**
#### **1. Institutional Daily Levels**
* **Previous Day High (PDH) & Low (PDL):** Marked with solid purple lines, these represent the most basic yet powerful liquidity levels from the prior trading day.
* **Previous Day Point of Control (POC):** A solid white line calculated using a Volume Profile algorithm. It identifies the price level where the most trading activity occurred during the previous session, acting as a "magnet" for price.
#### **2. Global Session Ranges**
* **Asia Session (8:00 PM - 2:00 AM EST):** Plotted in orange. This captures the initial range of the global trading cycle.
* **London Session (4:00 AM - 9:30 AM EST):** Plotted in blue. This identifies the volatility often seen during the European open leading into the New York session.
#### **3. New York 15-Minute Opening Range (ORB)**
* **ORB Box:** Automatically captures the high and low of the first 15 minutes of the New York session (9:30 AM - 9:45 AM EST).
* **Midline Projection:** Features a yellow dashed midline within the ORB box, a critical level often used by traders to determine intraday bias.
#### **4. Dynamic Projection & Cleanup**
* **Extension to Market Close:** Once established, every level (Asia, London, ORB, and PD levels) automatically projects forward to the **5:00 PM EST market close**.
* **Automatic Reset:** To keep your workspace clean and professional, the indicator utilizes an object-tracking system that deletes all drawings from the previous day at exactly 5:00 PM EST, allowing the chart to "reset" for the new Asia session.
* **Right-Anchored Labels:** All levels are clearly labeled on the right side of the chart, ensuring identification is instant without interfering with live price action candles.
### **How to Use:**
This tool is best used on **lower timeframes (1m to 15m)**. Traders often look for price to react at these levels—either as support/resistance or as "liquidity grabs" where price sweeps a session high/low before reversing. The NY ORB box provides a clear breakout or mean-reversion zone for the morning trend.
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.