OPEN-SOURCE SCRIPT
업데이트됨 ORB 9:30 (30m & 5m)

ORB 9:30 (30m & 5m)
Marks the high and low of the opening range at 9:30 AM (New York session) on two timeframes — the first 30-minute candle (9:30–10:00) and the first 5-minute candle (9:30–9:35) — then draws horizontal lines at those levels for use as intraday support/resistance targets.
How it works:
Each day, the script watches for price action inside the 9:30 window and tracks the running high/low.
When the window closes, it draws two lines (high and low) starting at the window's open time and extending forward a configurable number of bars.
If your chart timeframe is finer than 30m/5m (e.g. viewing on a 1m chart), it builds the range directly from the visible bars. If your chart is coarser (e.g. viewing on an hourly chart), it pulls intrabar data via request.security_lower_tf to reconstruct the 9:30 candle that would otherwise be hidden inside a larger bar.
A "days back" input limits how many days of historical lines get drawn, so the chart doesn't get cluttered.
Inputs:
Toggle high/low lines independently for each timeframe
Separate colors for the 30m and 5m sets
Line width, style (solid/dashed/dotted), and how many bars each line extends
Session timezone (defaults to America/New_York, DST-aware)
Useful as an Opening Range Breakout (ORB) reference — many intraday strategies use the 9:30 opening range high/low as breakout or fade levels.
Marks the high and low of the opening range at 9:30 AM (New York session) on two timeframes — the first 30-minute candle (9:30–10:00) and the first 5-minute candle (9:30–9:35) — then draws horizontal lines at those levels for use as intraday support/resistance targets.
How it works:
Each day, the script watches for price action inside the 9:30 window and tracks the running high/low.
When the window closes, it draws two lines (high and low) starting at the window's open time and extending forward a configurable number of bars.
If your chart timeframe is finer than 30m/5m (e.g. viewing on a 1m chart), it builds the range directly from the visible bars. If your chart is coarser (e.g. viewing on an hourly chart), it pulls intrabar data via request.security_lower_tf to reconstruct the 9:30 candle that would otherwise be hidden inside a larger bar.
A "days back" input limits how many days of historical lines get drawn, so the chart doesn't get cluttered.
Inputs:
Toggle high/low lines independently for each timeframe
Separate colors for the 30m and 5m sets
Line width, style (solid/dashed/dotted), and how many bars each line extends
Session timezone (defaults to America/New_York, DST-aware)
Useful as an Opening Range Breakout (ORB) reference — many intraday strategies use the 9:30 opening range high/low as breakout or fade levels.
릴리즈 노트
// ═══════════════════════════ FIRST ZONE BREAKOUT ═══════════════════════════// Only active on exactly the 1m or 5m chart (not the broader <5m / 5-30m
// ranges the engulfing highlight uses):
// 1m chart -> breakout of the 5m zone (5m OR high/low)
// 5m chart -> breakout of the 30m zone (30m OR high/low)
// Anywhere else, the zone is na and nothing fires.
릴리즈 노트
// Each open trade keeps extending to the current bar and freezes once it// resolves; trades older than days5 (the same zone this plan is built on)
// get their drawings removed and are dropped from the list. This is fully
// independent of tradeDir/entryTaken (which only gate arming a NEW trade), so
// an unresolved trade keeps being tracked correctly across a day boundary.
릴리즈 노트
// resolves; trades older than days5 (the same zone this plan is built on)// get their drawings removed and are dropped from the list. This is fully
// independent of tradeDir/entryTaken (which only gate arming a NEW trade), so
// an unresolved trade keeps being tracked correctly across a day boundary.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.