OPEN-SOURCE SCRIPT
업데이트됨 ORB [ASU]

This indicator automatically identifies and displays the Opening Range — the price high and low established during a specified time window at market open.
Key Functions:
Range Detection — Captures the high and low during the opening period
Visual Display — Draws a box with top/bottom boundaries and midpoint line
Size Alert — Labels the range size and warns if it exceeds a threshold
Time Extension — Extends levels forward until a specified end time
Key Functions:
Range Detection — Captures the high and low during the opening period
Visual Display — Draws a box with top/bottom boundaries and midpoint line
Size Alert — Labels the range size and warns if it exceeds a threshold
Time Extension — Extends levels forward until a specified end time
릴리즈 노트
📊 Auto-Plots ORB LevelsHigh, Low, and Midline drawn automatically
Clean, non-cluttered visualization
⏰ Fully Customizable Timing
Set your own ORB start time and duration
Control how long levels extend on chart
🎨 Smart Size Warnings
🟢 Green = Valid ORB (tradeable range)
🔴 Red = Too Big (high risk, stay out)
🟠 Orange = Too Small (low volatility, skip it)
🌍 Global Timezone Support
Auto-adjusts for Daylight Saving Time
30+ timezones included
📈 Works on Any Timeframe
1m, 3m, 5m, 15m and more
Perfect for scalpers and day traders
릴리즈 노트
Bank Holiday Bug Fix🛠️ Bug Fix: ORB Extension During Market Holidays
Problem: When a bank holiday occurred during trading hours, the ORB would fail to properly terminate at the designated extension end time (e.g., 11:00 EST). This caused the ORB from the previous session to continue extending indefinitely, even into the next trading day, resulting in overlapping ORBs and visual clutter on the chart.
Root Cause: The extension end time fell within the holiday's market closure window, so the indicator never received a bar to trigger the justPassedExtendTime() function. When trading resumed (often at 6:00 PM EST for futures), the previous day's ORB remained active and continued extending.
✅ What's Fixed
Calendar Day Detection - The ORB now tracks the full date (day, month, year) and automatically terminates if it detects a new calendar day has begun without the extension properly ending.
Maximum Bar Limit - Added a new safety parameter "Max Extension Bars" (default: 500) that forces the ORB to close if it extends beyond a reasonable number of bars, preventing runaway extensions in any edge case.
Improved Session Detection - Enhanced the new session detection logic to properly handle overnight gaps and market reopenings after holidays.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.