OPEN-SOURCE SCRIPT

First 15-Min Candle High/Low

51
### 📘 Description of the Script

This Pine Script indicator draws **horizontal lines** at the **high and low of the first 15-minute candle after the market opens at 9:30 AM (New York time)**. It is designed for use on **intraday charts** (e.g., 1m, 5m) for U.S. stock markets.

---

### 🔍 What the Script Does

* **Fetches 15-minute candle data** using `request.security()` from the `"15"` timeframe.
* **Detects the first 15-minute candle starting at 9:30 AM** (i.e., the 9:30–9:45 candle).
* **Saves the high and low** of that first 15-minute candle.
* **Plots horizontal lines** at those high/low levels for the rest of the trading day.
* **Resets at the start of each new day**, so the levels are updated fresh each morning.

---

### 🕒 When It Updates

* At exactly 9:45 AM (when the first 15-minute candle closes), it captures the high/low.
* Lines remain plotted for the rest of the day until the script resets on a new day.

---

### 🧠 Why This Is Useful

Traders often watch the **initial 15-minute range** as a key zone for:

* Breakouts or breakdowns
* Trend direction confirmation
* Entry or exit signals

This script helps visualize that range clearly and automatically.

---

Let me know if you want to:

* Extend the line beyond today
* Add alerts for breakouts
* Support different market open times (e.g., futures or forex markets)

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.