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.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.