OPEN-SOURCE SCRIPT
Aggiornato [SIBA] IB + OR Range + VWAP

## 🇰🇷 한글 설명
**IB + OR Range + VWAP \[로베리단\]**
초기 균형(IB)과 오프닝 레인지(OR)를 기반으로 당일 핵심 가격 구조를 시각화하는 인디케이터입니다. NQ, ES, 금, 원유 등 선물 시장의 인트라데이 트레이딩에 최적화되어 있으며, 최근 5일치 레벨을 자동으로 추적합니다.
**주요 기능**
- **IB (Initial Balance)** — 시작/종료 시간 자유 설정. High/Low/Mid 라인과 반투명 박스, ×1.5 / ×2.0 확장 레벨 표시
- **OR (Opening Range)** — IB 시작 시각 기준으로 사용자 지정 분(분 단위) 동안의 레인지. High/Low/Mid 및 확장 레벨 표시
- **히스토리** — 당일 레벨은 진하게, 과거 4일치는 날짜별로 점진적으로 투명하게 표시 (자동 롤링)
- **BO / Failed** — IB 범위 돌파(BO↑/BO↓) 및 False Breakout(Failed↑/Failed↓) 자동 감지, 차트에 마킹
- **VWAP / AVWAP** — Session / Week / Month 앵커 선택 가능. 두 가지 동시 표시 옵션 포함
- **정보 테이블** — 차트 좌하단에 IB High/Low/Mid/크기, OR High/Low/크기 실시간 표시
- **알림(Alert)** — IB BO↑/↓, Failed↑/↓ 4가지 알림 조건 내장
- **타임존** — New York / Chicago / UTC / Seoul / Tokyo 선택 지원
- **색상 전체 커스터마이즈** 가능
**권장 사용 환경**
- 마켓: NQ, ES, GC(금), SI(은), CL(원유) 등 선물 / 주식 인트라데이
- 타임프레임: 1분 ~ 15분 추천
- 기본 설정: IB 9:30–10:30 ET, OR 30분
---
## 🇺🇸 English Description
**IB + OR Range + VWAP \[로베리단\]**
A comprehensive intraday structure indicator that visualizes the Initial Balance (IB) and Opening Range (OR) with up to 5 days of rolling history. Designed for futures traders — NQ, ES, Gold, Silver, Crude Oil — and any intraday equity session.
**Features**
- **Initial Balance (IB)** — Fully configurable start/end time. Plots High, Low, Mid lines with a shaded box and optional ×1.5 / ×2.0 extension levels
- **Opening Range (OR)** — Independently configurable range duration (minutes from IB start). Plots High, Low, Mid, and extension levels with a distinct color scheme
- **5-Day Rolling History** — Today's levels displayed in full opacity; prior days fade progressively (Day 2 → Day 5) so historical context never clutters the chart
- **Breakout & Failed BO Detection** — Auto-detects IB breakouts (BO↑ / BO↓) and false breakouts (Failed↑ / Failed↓) with plotshape markers directly on the chart
- **VWAP / AVWAP** — Choose Session, Week, or Month anchor. Display VWAP only, AVWAP only, or both simultaneously
- **Info Table** — Live bottom-left dashboard showing IB High / Low / Mid / Range size and OR High / Low / Range size
- **Built-in Alerts** — Four alert conditions: IB BO↑, IB BO↓, Failed↓, Failed↑
- **Timezone Support** — New York, Chicago, UTC, Seoul, Tokyo
- **Fully Customizable Colors** — Every line, box, and label color is individually configurable
**Recommended Settings**
- Markets: NQ, ES, GC, SI, CL futures — or any intraday equity/ETF
- Timeframes: 1m – 15m
- Default: IB 9:30–10:30 ET, OR 30 min
**IB + OR Range + VWAP \[로베리단\]**
초기 균형(IB)과 오프닝 레인지(OR)를 기반으로 당일 핵심 가격 구조를 시각화하는 인디케이터입니다. NQ, ES, 금, 원유 등 선물 시장의 인트라데이 트레이딩에 최적화되어 있으며, 최근 5일치 레벨을 자동으로 추적합니다.
**주요 기능**
- **IB (Initial Balance)** — 시작/종료 시간 자유 설정. High/Low/Mid 라인과 반투명 박스, ×1.5 / ×2.0 확장 레벨 표시
- **OR (Opening Range)** — IB 시작 시각 기준으로 사용자 지정 분(분 단위) 동안의 레인지. High/Low/Mid 및 확장 레벨 표시
- **히스토리** — 당일 레벨은 진하게, 과거 4일치는 날짜별로 점진적으로 투명하게 표시 (자동 롤링)
- **BO / Failed** — IB 범위 돌파(BO↑/BO↓) 및 False Breakout(Failed↑/Failed↓) 자동 감지, 차트에 마킹
- **VWAP / AVWAP** — Session / Week / Month 앵커 선택 가능. 두 가지 동시 표시 옵션 포함
- **정보 테이블** — 차트 좌하단에 IB High/Low/Mid/크기, OR High/Low/크기 실시간 표시
- **알림(Alert)** — IB BO↑/↓, Failed↑/↓ 4가지 알림 조건 내장
- **타임존** — New York / Chicago / UTC / Seoul / Tokyo 선택 지원
- **색상 전체 커스터마이즈** 가능
**권장 사용 환경**
- 마켓: NQ, ES, GC(금), SI(은), CL(원유) 등 선물 / 주식 인트라데이
- 타임프레임: 1분 ~ 15분 추천
- 기본 설정: IB 9:30–10:30 ET, OR 30분
---
## 🇺🇸 English Description
**IB + OR Range + VWAP \[로베리단\]**
A comprehensive intraday structure indicator that visualizes the Initial Balance (IB) and Opening Range (OR) with up to 5 days of rolling history. Designed for futures traders — NQ, ES, Gold, Silver, Crude Oil — and any intraday equity session.
**Features**
- **Initial Balance (IB)** — Fully configurable start/end time. Plots High, Low, Mid lines with a shaded box and optional ×1.5 / ×2.0 extension levels
- **Opening Range (OR)** — Independently configurable range duration (minutes from IB start). Plots High, Low, Mid, and extension levels with a distinct color scheme
- **5-Day Rolling History** — Today's levels displayed in full opacity; prior days fade progressively (Day 2 → Day 5) so historical context never clutters the chart
- **Breakout & Failed BO Detection** — Auto-detects IB breakouts (BO↑ / BO↓) and false breakouts (Failed↑ / Failed↓) with plotshape markers directly on the chart
- **VWAP / AVWAP** — Choose Session, Week, or Month anchor. Display VWAP only, AVWAP only, or both simultaneously
- **Info Table** — Live bottom-left dashboard showing IB High / Low / Mid / Range size and OR High / Low / Range size
- **Built-in Alerts** — Four alert conditions: IB BO↑, IB BO↓, Failed↓, Failed↑
- **Timezone Support** — New York, Chicago, UTC, Seoul, Tokyo
- **Fully Customizable Colors** — Every line, box, and label color is individually configurable
**Recommended Settings**
- Markets: NQ, ES, GC, SI, CL futures — or any intraday equity/ETF
- Timeframes: 1m – 15m
- Default: IB 9:30–10:30 ET, OR 30 min
Note di rilascio
🔄 Update v2.0 — Jun 6, 2025━━━━━━━━━━━━━━━━━━━━━━━━
✅ What's New
━━━━━━━━━━━━━━━━━━━━━━━━
📦 IB / OR Labels — Separated
• IB High / Mid / Low labels now fixed to the LEFT side of the box (no more overlap)
• OR High / Mid / Low labels stay on the RIGHT side, following price action
• Both IB and OR now display Mid labels
📊 ATR Levels
• ATR level lines displayed from IB High and IB Low
• ATR ×1 and ×2 always shown (customizable multipliers)
• ATR ×3 and ×4 optional — toggle on/off independently
• Individual color settings per ATR level
• Labels show multiplier and price (e.g. "ATR×1.0 21045")
• Auto-resets each new IB session
📈 VWAP Labels
• "VWAP" and "AVWAP" text now displayed at the end of each line
• Easy to identify at a glance without hovering
🗃️ Info Panel Improvements
• New option to SHOW / HIDE the info panel
• 9-position selector: Top / Middle / Bottom × Left / Center / Right
• All text updated to English
🌐 Full English UI
• All settings labels, group names, and panel text converted to English
• VWAP mode options: VWAP / AVWAP / Both / None
• Alert messages in English
━━━━━━━━━━━━━━━━━━━━━━━━
📌 Settings Overview
━━━━━━━━━━━━━━━━━━━━━━━━
• IB / OR Time — start/end hours, OR length, timezone
• IB Display — box, mid, ×1.5, ×2.0 extensions, labels
• OR Display — OR line, mid, extensions
• Colors — full color customization for all elements
• BO / Failed — breakout and failed breakout signals
• VWAP — type, anchor, colors, line width
• ATR Levels — show/hide, length, ×1–4 multipliers and colors
• Info Panel — show/hide, 9-position selector
━━━━━━━━━━━━━━━━━━━━━━━━
Previous features retained:
• 5-day IB + OR history with graduated transparency
• Breakout (BO↑/BO↓) and Failed signals
• VWAP / AVWAP overlay
• Real-time IB/OR box extension during session
• Past sessions fixed to session range (no overlap)
━━━━━━━━━━━━━━━━━━━━━━━━
✅ 업데이트 내용 (한국어)
━━━━━━━━━━━━━━━━━━━━━━━━
📦 IB / OR 라벨 분리
• IB High / Mid / Low 라벨이 박스 왼쪽에 고정 (겹침 해소)
• OR High / Mid / Low 라벨은 오른쪽에서 가격을 따라다님
• IB와 OR 모두 Mid 라벨 표시
📊 ATR 레벨 추가
• IB High / Low 기준으로 ATR 레벨 라인 표시
• ATR ×1, ×2는 항상 표시 (배수 조절 가능)
• ATR ×3, ×4는 옵션으로 개별 on/off
• 레벨별 색상 개별 설정 가능
• 라벨에 배수와 가격 표시 (예: "ATR×1.0 21045")
• 새 IB 세션 시작 시 자동 초기화
📈 VWAP 라벨
• 선 끝에 "VWAP" / "AVWAP" 텍스트 표시
• 호버 없이 한눈에 구분 가능
🗃️ 정보 패널 개선
• 패널 표시 / 숨기기 옵션 추가
• 9개 위치 선택 가능: 상/중/하 × 좌/중/우
• 패널 내 텍스트 영어로 통일
🌐 UI 전체 영어화
• 모든 설정 항목명, 그룹명 영어로 변환
• VWAP 모드: VWAP / AVWAP / Both / None
• 알림 메시지 영어로 변환
━━━━━━━━━━━━━━━━━━━━━━━━
기존 기능 유지:
• 최근 5일 IB + OR 박스 (오래될수록 투명)
• BO↑/BO↓ 돌파 및 Failed 시그널
• VWAP / AVWAP 오버레이
• 장 중 실시간 박스 연장
• 과거 세션 박스는 세션 범위 내 고정 (겹침 없음)
로베리단 [LoveLee] Trading Community
Note di rilascio
🔄 Update v2.0 — Jun 6, 2025━━━━━━━━━━━━━━━━━━━━━━━━
✅ What's New
━━━━━━━━━━━━━━━━━━━━━━━━
📦 IB / OR Labels — Separated
• IB High / Mid / Low labels now fixed to the LEFT side of the box (no more overlap)
• OR High / Mid / Low labels stay on the RIGHT side, following price action
• Both IB and OR now display Mid labels
📊 ATR Levels
• ATR level lines displayed from IB High and IB Low
• ATR ×1 and ×2 always shown (customizable multipliers)
• ATR ×3 and ×4 optional — toggle on/off independently
• Individual color settings per ATR level
• Labels show multiplier and price (e.g. "ATR×1.0 21045")
• Auto-resets each new IB session
📈 VWAP Labels
• "VWAP" and "AVWAP" text now displayed at the end of each line
• Easy to identify at a glance without hovering
🗃️ Info Panel Improvements
• New option to SHOW / HIDE the info panel
• 9-position selector: Top / Middle / Bottom × Left / Center / Right
• All text updated to English
🌐 Full English UI
• All settings labels, group names, and panel text converted to English
• VWAP mode options: VWAP / AVWAP / Both / None
• Alert messages in English
━━━━━━━━━━━━━━━━━━━━━━━━
📌 Settings Overview
━━━━━━━━━━━━━━━━━━━━━━━━
• IB / OR Time — start/end hours, OR length, timezone
• IB Display — box, mid, ×1.5, ×2.0 extensions, labels
• OR Display — OR line, mid, extensions
• Colors — full color customization for all elements
• BO / Failed — breakout and failed breakout signals
• VWAP — type, anchor, colors, line width
• ATR Levels — show/hide, length, ×1–4 multipliers and colors
• Info Panel — show/hide, 9-position selector
━━━━━━━━━━━━━━━━━━━━━━━━
Previous features retained:
• 5-day IB + OR history with graduated transparency
• Breakout (BO↑/BO↓) and Failed signals
• VWAP / AVWAP overlay
• Real-time IB/OR box extension during session
• Past sessions fixed to session range (no overlap)
━━━━━━━━━━━━━━━━━━━━━━━━
✅ 업데이트 내용 (한국어)
━━━━━━━━━━━━━━━━━━━━━━━━
📦 IB / OR 라벨 분리
• IB High / Mid / Low 라벨이 박스 왼쪽에 고정 (겹침 해소)
• OR High / Mid / Low 라벨은 오른쪽에서 가격을 따라다님
• IB와 OR 모두 Mid 라벨 표시
📊 ATR 레벨 추가
• IB High / Low 기준으로 ATR 레벨 라인 표시
• ATR ×1, ×2는 항상 표시 (배수 조절 가능)
• ATR ×3, ×4는 옵션으로 개별 on/off
• 레벨별 색상 개별 설정 가능
• 라벨에 배수와 가격 표시 (예: "ATR×1.0 21045")
• 새 IB 세션 시작 시 자동 초기화
📈 VWAP 라벨
• 선 끝에 "VWAP" / "AVWAP" 텍스트 표시
• 호버 없이 한눈에 구분 가능
🗃️ 정보 패널 개선
• 패널 표시 / 숨기기 옵션 추가
• 9개 위치 선택 가능: 상/중/하 × 좌/중/우
• 패널 내 텍스트 영어로 통일
🌐 UI 전체 영어화
• 모든 설정 항목명, 그룹명 영어로 변환
• VWAP 모드: VWAP / AVWAP / Both / None
• 알림 메시지 영어로 변환
━━━━━━━━━━━━━━━━━━━━━━━━
기존 기능 유지:
• 최근 5일 IB + OR 박스 (오래될수록 투명)
• BO↑/BO↓ 돌파 및 Failed 시그널
• VWAP / AVWAP 오버레이
• 장 중 실시간 박스 연장
• 과거 세션 박스는 세션 범위 내 고정 (겹침 없음)
로베리단 [Robberidan] Trading Community
Note di rilascio
August 27, 2026 UpdateReadability
• Box borders are now dashed with a transparency input (default 80) — candle wicks are no longer hidden behind IB/OR box edges. Set to 100 to hide borders entirely.
• New "Today Line Transparency" input (default 35): current-day IB/OR lines are semi-transparent so wicks show through. Set to 0 for the old opaque look.
• Price labels (IB H/L, ×1.5, OR, etc.) are now kept for the current day only; past days show lines/boxes only, which greatly reduces label clutter.
Fixes
• Fixed the 5-day history rolling, which previously never worked: past-day objects were orphaned at full opacity instead of fading and eventually vanished abruptly at the drawing-object limit. History now rolls properly, fades day by day, and the oldest day is cleanly removed.
• Fixed a drawing-object leak in the IB history rotation.
• Removed code that stretched old OR boxes up to the current bar.
• Fixed second-based timeframes (e.g. 15S), where IB/OR detection was completely broken due to integer minute rounding.
Changes
• BO reset buffer is now ATR-based instead of a fixed 0.05% of price: new "BO Reset Buffer (ATR mult)" input (default 0.05). The buffer scales with each symbol's volatility; if daily ATR is unavailable it falls back to the IB range.
• Performance: ATR level labels update on the last bar only, and ATR lines stop extending at the box end time, consistent with other lines.
2026년 8월 27일 업데이트
가독성
• 박스 테두리를 점선 + 투명도 입력(기본 80)으로 변경 — IB/OR 박스 가장자리에 캔들 꼬리가 가려지지 않습니다. 100으로 설정하면 테두리가 완전히 사라집니다.
• "Today Line Transparency" 입력 추가(기본 35): 당일 IB/OR 라인이 반투명해져 꼬리가 비쳐 보입니다. 0으로 설정하면 기존처럼 불투명합니다.
• 가격 라벨(IB H/L, ×1.5, OR 등)은 당일 것만 유지하고, 과거일은 라인/박스만 남겨 라벨 뭉침을 크게 줄였습니다.
수정
• 5일 히스토리 롤링이 실제로는 동작하지 않던 문제를 수리했습니다. 기존에는 과거일 객체가 옅어지지 않고 원래 농도로 방치되다가 드로잉 객체 한도에서 갑자기 사라졌습니다. 이제 정상적으로 롤링되며 하루 지날 때마다 옅어지고, 가장 오래된 날은 깔끔하게 삭제됩니다.
• IB 히스토리 회전 과정의 드로잉 객체 누수를 수리했습니다.
• 과거 OR 박스를 현재 봉까지 늘리던 코드를 제거했습니다.
• 초 단위 타임프레임(15S 등)에서 분 단위 정수 반올림 때문에 IB/OR 감지가 통째로 깨지던 문제를 수리했습니다.
변경
• BO 되돌림 버퍼를 가격 고정 0.05% → ATR 배수 기준으로 교체: "BO Reset Buffer (ATR mult)" 입력 추가(기본 0.05). 종목별 변동성에 맞게 버퍼가 잡히며, 일봉 ATR 결측 시 IB 폭으로 대체됩니다.
• 성능: ATR 레벨 라벨은 마지막 봉에서만 갱신하고, ATR 라인 연장은 다른 라인들과 동일하게 박스 종료 시각까지로 맞췄습니다.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.