已更新
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.
版本注释
// ═══════════════════════════ 1:30 AM ZONE BREAKOUT (5m chart only) ═══════════════════════════// Independent of the 9:30 zone's breakout tracking above: the first 5m candle
// whose CLOSE (body) ends up beyond the 1:30–2:00 AM 30m band on either side.
// Does not feed the engulfing highlight or the MSNR retest plan — those stay
// scoped to the 9:30-based zones exactly as before.
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。