OPEN-SOURCE SCRIPT
Session Hunter v1.3

**Session Hunter**
A session-aware opening range breakout indicator with built-in Fixed Range Volume Profile, hourly open confluence detection, and reload zone entry signals.
**What it does**
Session Hunter identifies the Initial Balance (IB) at the start of a trading session, computes a volume profile over that range using 1-minute lower timeframe data, and tracks breakout direction with reload zone pullback entries. It adds hourly open confluence detection to flag higher-conviction reload setups where FRVP levels align with institutional settlement prices.
**The Initial Balance concept**
The Initial Balance is the price range established in the opening phase of a session. It represents the first agreement between buyers and sellers after the session opens. The high of this range is the A-line, the low is the B-line. When price breaks above A, buyers have taken control. When it breaks below B, sellers dominate. The IB range size itself is informative: a narrow range suggests a directional move is building, while a wide range suggests the session's volatility may already be spent.
This indicator automatically detects the session open based on configurable presets and builds the IB over a configurable duration (default 30 minutes).
**Volume Profile (FRVP) calculation**
After the opening range closes, the indicator computes a Fixed Range Volume Profile across the IB range. It uses `request.security_lower_tf` to pull 1-minute OHLCV data for accuracy rather than relying on the chart timeframe's bars. Each 1-minute bar's volume is distributed across price bins using a triangular weighting based on candle body position within the bin.
From the volume distribution, three levels are derived: POC (Point of Control, the price with highest volume), VAH (Value Area High), and VAL (Value Area Low). The Value Area represents the configurable percentage (default 70%) of total volume, expanding outward from the POC.
A visual histogram is drawn from the ORB start bar with bar width proportional to volume. Bins inside the Value Area are colored separately from bins outside it.
**Reload zone logic**
After a breakout above A (or below B), price often pulls back into the Value Area before continuing. This pullback into the POC-VAL zone is the reload zone. The indicator tracks the direction of approach (from above or below the Value Area) and signals an entry when price re-enters the Value Area from the breakout side with a confirming candle (bullish close for longs, bearish close for shorts).
Reload entries fire once per re-entry into the zone. They reset when price exits and re-enters.
**Hourly open confluence**
The indicator plots the current hour's open price as a reference level. This price represents where the prior hourly auction settled. When institutional participants re-enter the market, they often do so around this settlement level.
Two confluence signals are derived from the hourly open:
HC (High Conviction): A reload entry fires AND the POC, VAH, or VAL is within a configurable proximity of the hourly open. This means two independent references (volume profile and hourly auction) agree on the same price. The proximity auto-adjusts via an instrument preset dropdown (5 points for Gold, 80 for JP225, 50 for BTC, etc.) or can be set manually.
SR (Strong Reload): Price retests the hourly open with volume exceeding the 20-bar WMA while inside the Value Area after a breakout. This detects institutional activity at the settlement level. SR fires once per session to avoid redundant signals.
When both HC and SR fire on the same bar, it represents the highest-quality reload setup: levels aligned, volume confirms, and price is inside the value area.
**Entry gate**
A configurable delay after the ORB closes before entries are allowed. This prevents premature breakout signals during the volatile transition period. The Tokyo XAU preset (01:05 UTC, 15-minute ORB) auto-sets a 60-minute gate based on observed behavior in the Asian gold session.
**A/B line extension**
The IVB High (A) and Low (B) lines extend into the future as dotted projections (default 120 minutes, configurable 0-480). This keeps the IB range visible as a reference even as price moves away from it.
**Session presets**
Eight presets cover major session opens: London 08:00 UTC (Gold, European indices), New York 13:30 UTC (US indices), CME 14:30 UTC (futures), Frankfurt 07:00 UTC, Tokyo 01:05 UTC for JP225 (30-minute ORB), Tokyo XAU 01:05 UTC (15-minute ORB with 60-minute gate), Sydney 22:00 UTC, and a fully custom option.
**Trade management levels**
After breakout, the indicator calculates TP1 (default 1.5x IB range), TP2 (default 3x range), and a stop level at VAL (for longs) or VAH (for shorts). The R:R ratio is displayed in the info table.
**Alerts**
IVB Breakout Up/Down, Reload Zone entered (long/short), Reload Entry (long/short), HC Reload (long/short), Strong Reload (long/short), ORB Complete.
**Info table**
Displays session time, status, FRVP source, A/B levels, range size, VAH/POC/VAL, TP1/TP2, stop level, R:R ratio, gate status, hourly open price, and confluence status (STRONG/ALIGNED/---).
**Settings overview**
Session: preset selector, custom UTC time, ORB duration, entry gate. Volume Profile: bin resolution, Value Area %, 1-minute LTF toggle, FRVP show/hide, histogram show/hide and width. Hourly Confluence: instrument proximity preset, volume WMA length. Take Profits: TP1/TP2 multipliers. Display: EMA 200, reload zone, labels, signals, A/B extension, colors.
**What is original**
The IVB/ORB concept is a known session-trading methodology. The original contributions are: automatic FRVP computation from 1-minute LTF data over the opening range (not available in TradingView's native tools for arbitrary ranges), hourly open confluence detection with instrument-aware proximity scaling, strong reload detection combining volume analysis with hourly settlement level retests, the entry gate system for delayed-open sessions, and the integrated info table with R:R calculation.
A session-aware opening range breakout indicator with built-in Fixed Range Volume Profile, hourly open confluence detection, and reload zone entry signals.
**What it does**
Session Hunter identifies the Initial Balance (IB) at the start of a trading session, computes a volume profile over that range using 1-minute lower timeframe data, and tracks breakout direction with reload zone pullback entries. It adds hourly open confluence detection to flag higher-conviction reload setups where FRVP levels align with institutional settlement prices.
**The Initial Balance concept**
The Initial Balance is the price range established in the opening phase of a session. It represents the first agreement between buyers and sellers after the session opens. The high of this range is the A-line, the low is the B-line. When price breaks above A, buyers have taken control. When it breaks below B, sellers dominate. The IB range size itself is informative: a narrow range suggests a directional move is building, while a wide range suggests the session's volatility may already be spent.
This indicator automatically detects the session open based on configurable presets and builds the IB over a configurable duration (default 30 minutes).
**Volume Profile (FRVP) calculation**
After the opening range closes, the indicator computes a Fixed Range Volume Profile across the IB range. It uses `request.security_lower_tf` to pull 1-minute OHLCV data for accuracy rather than relying on the chart timeframe's bars. Each 1-minute bar's volume is distributed across price bins using a triangular weighting based on candle body position within the bin.
From the volume distribution, three levels are derived: POC (Point of Control, the price with highest volume), VAH (Value Area High), and VAL (Value Area Low). The Value Area represents the configurable percentage (default 70%) of total volume, expanding outward from the POC.
A visual histogram is drawn from the ORB start bar with bar width proportional to volume. Bins inside the Value Area are colored separately from bins outside it.
**Reload zone logic**
After a breakout above A (or below B), price often pulls back into the Value Area before continuing. This pullback into the POC-VAL zone is the reload zone. The indicator tracks the direction of approach (from above or below the Value Area) and signals an entry when price re-enters the Value Area from the breakout side with a confirming candle (bullish close for longs, bearish close for shorts).
Reload entries fire once per re-entry into the zone. They reset when price exits and re-enters.
**Hourly open confluence**
The indicator plots the current hour's open price as a reference level. This price represents where the prior hourly auction settled. When institutional participants re-enter the market, they often do so around this settlement level.
Two confluence signals are derived from the hourly open:
HC (High Conviction): A reload entry fires AND the POC, VAH, or VAL is within a configurable proximity of the hourly open. This means two independent references (volume profile and hourly auction) agree on the same price. The proximity auto-adjusts via an instrument preset dropdown (5 points for Gold, 80 for JP225, 50 for BTC, etc.) or can be set manually.
SR (Strong Reload): Price retests the hourly open with volume exceeding the 20-bar WMA while inside the Value Area after a breakout. This detects institutional activity at the settlement level. SR fires once per session to avoid redundant signals.
When both HC and SR fire on the same bar, it represents the highest-quality reload setup: levels aligned, volume confirms, and price is inside the value area.
**Entry gate**
A configurable delay after the ORB closes before entries are allowed. This prevents premature breakout signals during the volatile transition period. The Tokyo XAU preset (01:05 UTC, 15-minute ORB) auto-sets a 60-minute gate based on observed behavior in the Asian gold session.
**A/B line extension**
The IVB High (A) and Low (B) lines extend into the future as dotted projections (default 120 minutes, configurable 0-480). This keeps the IB range visible as a reference even as price moves away from it.
**Session presets**
Eight presets cover major session opens: London 08:00 UTC (Gold, European indices), New York 13:30 UTC (US indices), CME 14:30 UTC (futures), Frankfurt 07:00 UTC, Tokyo 01:05 UTC for JP225 (30-minute ORB), Tokyo XAU 01:05 UTC (15-minute ORB with 60-minute gate), Sydney 22:00 UTC, and a fully custom option.
**Trade management levels**
After breakout, the indicator calculates TP1 (default 1.5x IB range), TP2 (default 3x range), and a stop level at VAL (for longs) or VAH (for shorts). The R:R ratio is displayed in the info table.
**Alerts**
IVB Breakout Up/Down, Reload Zone entered (long/short), Reload Entry (long/short), HC Reload (long/short), Strong Reload (long/short), ORB Complete.
**Info table**
Displays session time, status, FRVP source, A/B levels, range size, VAH/POC/VAL, TP1/TP2, stop level, R:R ratio, gate status, hourly open price, and confluence status (STRONG/ALIGNED/---).
**Settings overview**
Session: preset selector, custom UTC time, ORB duration, entry gate. Volume Profile: bin resolution, Value Area %, 1-minute LTF toggle, FRVP show/hide, histogram show/hide and width. Hourly Confluence: instrument proximity preset, volume WMA length. Take Profits: TP1/TP2 multipliers. Display: EMA 200, reload zone, labels, signals, A/B extension, colors.
**What is original**
The IVB/ORB concept is a known session-trading methodology. The original contributions are: automatic FRVP computation from 1-minute LTF data over the opening range (not available in TradingView's native tools for arbitrary ranges), hourly open confluence detection with instrument-aware proximity scaling, strong reload detection combining volume analysis with hourly settlement level retests, the entry gate system for delayed-open sessions, and the integrated info table with R:R calculation.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。