OPEN-SOURCE SCRIPT
已更新 STRIKE BOX

This **“STRIKE BOX”** Pine Script is used by traders to visually define and track the **New York Opening Range (OR)** — one of the most important time windows in intraday trading — and to monitor how price behaves relative to that range throughout the rest of the session.
Here’s the breakdown of what it’s used for and why traders care:
---
### 🕘 **Purpose**
The script automatically identifies and plots:
1. **The New York Opening Range (8:00–9:30 AM NY time)** – where institutional volume begins to surge.
2. **The Trading Session (9:30–17:00 NY time)** – the official U.S. stock market hours.
It marks the **high and low of the opening range** and then watches for **breakouts** or **retests** during the rest of the day.
---
### 💡 **Why traders use this**
1. **Identify key liquidity zones**
* The high and low of the opening range often represent **areas of trapped traders**, **liquidity pools**, and **institutional positioning**.
* Price tends to **revisit or react strongly** around these levels.
2. **Find breakout or reversal opportunities**
* Traders wait for price to **break above or below** the OR to confirm **directional bias** for the day.
* For example:
* A break above the OR high = possible bullish continuation.
* A break below the OR low = possible bearish momentum.
* If price fails to break and stays inside the range, that signals a **choppy or consolidating market**.
3. **Define risk and targets easily**
* The OR gives **natural stop-loss and take-profit zones**.
* A trader can buy near the OR low and target the OR high, or vice versa.
4. **Filter trades during high-volume hours**
* The New York session overlaps with London for a bit — this is when **most daily volume and volatility** occur.
* Many traders only want to trade inside or just after this opening period.
---
### 📊 **How this script helps**
* It **automatically draws lines** for the OR high and low.
* It plots **vertical dashed lines** marking when the OR starts and ends.
* It **detects when price breaks the OR** (sets `High_Break` or `Low_Break` to true).
* It provides clear **visual zones** for decision-making instead of manually drawing them every day.
---
### 🧠 In short
Traders use this to:
* See where the **New York Opening Range** formed.
* Watch for **breakouts or fakeouts** beyond that range.
* Align their trades with **institutional market flow**.
* Keep charts **clean and systematic** rather than guessing daily key levels.
---
Here’s the breakdown of what it’s used for and why traders care:
---
### 🕘 **Purpose**
The script automatically identifies and plots:
1. **The New York Opening Range (8:00–9:30 AM NY time)** – where institutional volume begins to surge.
2. **The Trading Session (9:30–17:00 NY time)** – the official U.S. stock market hours.
It marks the **high and low of the opening range** and then watches for **breakouts** or **retests** during the rest of the day.
---
### 💡 **Why traders use this**
1. **Identify key liquidity zones**
* The high and low of the opening range often represent **areas of trapped traders**, **liquidity pools**, and **institutional positioning**.
* Price tends to **revisit or react strongly** around these levels.
2. **Find breakout or reversal opportunities**
* Traders wait for price to **break above or below** the OR to confirm **directional bias** for the day.
* For example:
* A break above the OR high = possible bullish continuation.
* A break below the OR low = possible bearish momentum.
* If price fails to break and stays inside the range, that signals a **choppy or consolidating market**.
3. **Define risk and targets easily**
* The OR gives **natural stop-loss and take-profit zones**.
* A trader can buy near the OR low and target the OR high, or vice versa.
4. **Filter trades during high-volume hours**
* The New York session overlaps with London for a bit — this is when **most daily volume and volatility** occur.
* Many traders only want to trade inside or just after this opening period.
---
### 📊 **How this script helps**
* It **automatically draws lines** for the OR high and low.
* It plots **vertical dashed lines** marking when the OR starts and ends.
* It **detects when price breaks the OR** (sets `High_Break` or `Low_Break` to true).
* It provides clear **visual zones** for decision-making instead of manually drawing them every day.
---
### 🧠 In short
Traders use this to:
* See where the **New York Opening Range** formed.
* Watch for **breakouts or fakeouts** beyond that range.
* Align their trades with **institutional market flow**.
* Keep charts **clean and systematic** rather than guessing daily key levels.
---
版本注释
updated chart and colors开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。