OPEN-SOURCE SCRIPT
تم تحديثه RTH Yesterday & Today Premarket Levels

## **RTH Yesterday & Today Premarket Levels**
This indicator plots the most commonly used **institutional reference levels** for intraday trading:
* **Yesterday’s Regular Trading Hours (RTH) High**
* **Yesterday’s Regular Trading Hours (RTH) Low**
* **Yesterday’s Regular Trading Hours (RTH) Close**
* **Today’s Premarket High**
* **Today’s Premarket Low**
All levels are drawn as **straight horizontal lines with labels** and remain fixed throughout the current session.
---
### **How Levels Are Calculated**
**Yesterday’s Levels (RTH only)**
* Computed strictly from **Regular Trading Hours (09:30–16:00 exchange time)**.
* Extended-hours data is **excluded** to avoid distortion.
* Captures true institutional highs, lows, and closing price.
**Today’s Premarket Levels (PM only)**
* Computed strictly from **today’s premarket session (04:00–09:29)**.
* Resets daily and does not include prior days.
* Levels finalize once premarket ends and extend across the regular session.
---
### **Key Features**
* Exactly **5 fixed reference levels**, no historical clutter
* **Non-repainting**: levels do not change once established
* **No zig-zags or plots**; only clean horizontal lines
* Customizable **line colors and thickness**
* Labels clearly identify each level:
* Y High
* Y Low
* Y Close
* PM High
* PM Low
---
### **Best Use Cases**
* Intraday trading (1m, 5m, 15m)
* VWAP and momentum strategies
* Gap-and-go or fade setups
* Support/resistance validation
* Options trading and scalping
These levels often act as **decision points, liquidity magnets, and rejection zones** during the regular session.
---
### **Required Settings**
* Use **intraday timeframes**
* Enable **Extended Hours** in TradingView’s symbol settings
* Designed for **US equities** using exchange time
---
### **Trader Notes**
This script is intentionally minimalist. It shows only the **most relevant prior-day and premarket price references** used by professional traders, avoiding noise from multi-day indicators or derived averages.
This indicator plots the most commonly used **institutional reference levels** for intraday trading:
* **Yesterday’s Regular Trading Hours (RTH) High**
* **Yesterday’s Regular Trading Hours (RTH) Low**
* **Yesterday’s Regular Trading Hours (RTH) Close**
* **Today’s Premarket High**
* **Today’s Premarket Low**
All levels are drawn as **straight horizontal lines with labels** and remain fixed throughout the current session.
---
### **How Levels Are Calculated**
**Yesterday’s Levels (RTH only)**
* Computed strictly from **Regular Trading Hours (09:30–16:00 exchange time)**.
* Extended-hours data is **excluded** to avoid distortion.
* Captures true institutional highs, lows, and closing price.
**Today’s Premarket Levels (PM only)**
* Computed strictly from **today’s premarket session (04:00–09:29)**.
* Resets daily and does not include prior days.
* Levels finalize once premarket ends and extend across the regular session.
---
### **Key Features**
* Exactly **5 fixed reference levels**, no historical clutter
* **Non-repainting**: levels do not change once established
* **No zig-zags or plots**; only clean horizontal lines
* Customizable **line colors and thickness**
* Labels clearly identify each level:
* Y High
* Y Low
* Y Close
* PM High
* PM Low
---
### **Best Use Cases**
* Intraday trading (1m, 5m, 15m)
* VWAP and momentum strategies
* Gap-and-go or fade setups
* Support/resistance validation
* Options trading and scalping
These levels often act as **decision points, liquidity magnets, and rejection zones** during the regular session.
---
### **Required Settings**
* Use **intraday timeframes**
* Enable **Extended Hours** in TradingView’s symbol settings
* Designed for **US equities** using exchange time
---
### **Trader Notes**
This script is intentionally minimalist. It shows only the **most relevant prior-day and premarket price references** used by professional traders, avoiding noise from multi-day indicators or derived averages.
ملاحظات الأخبار
This indicator displays five key intraday price levels used by day traders: yesterday’s High, Low, and Close calculated strictly from regular trading hours (9:30–16:00), along with today’s Premarket High and Low calculated only from the current premarket session (4:00–9:29). All levels are shown as clean, non-repainting horizontal lines with compact labels that include the price. Premarket levels update during premarket and lock once the regular session begins. Designed for intraday use on US stocks, this script provides clear support, resistance, breakout, and gap reference levels without chart clutter.نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.