PROTECTED SOURCE SCRIPT

ORB Pro — Auto Market + DST (자동 시장·썸머타임 ORB)_[by Irum]

30
ORB Pro — Purpose & Definition (EN)

Purpose
Standardize and visualize the Opening Range Breakout process across markets (KR/US/EU/Crypto) with DST-safe auto session detection; generate three trade-friendly signals (Breakout, Retest, Fakeout); optionally gate by trend and volume; and fire both fixed alertcondition() and runtime alerts that include market names.

Definitions

Opening Range (OR): High/Low (and Mid) built over the configured “opening window”. Auto mode maps by timezone:

KRX 09:00–09:30, US 09:30–10:00 (Eastern, DST-safe), LSE 08:00–08:30, EU 09:00–09:30, Crypto 00:00–00:30.

Breakout: Close above ORH (+ optional ATR buffer) or below ORL (– buffer) for N consecutive closes.

Retest: Within retestBars after a breakout, a return toward ORH/ORL within a tolerance (retestTolPct × OR range) and closing back in the breakout direction.

Fakeout: Within fakeoutBars after the breakout, price re-enters the range past ORH/ORL by the buffer the other way.

ORB Pro — 목적 & 정의 (KR)

목적
시장(한국/미국/유럽/암호화폐)별 개장 구간을 DST(썸머타임)에 맞춰 자동 인식하고, OR(오프닝 레인지)을 시각화한 뒤 브레이크아웃·리테스트·페이크아웃 3종 신호를 제공합니다. 필요 시 추세/거래량 필터로 품질을 높이고, 정적 알림과 실시간 알림(시장명 포함)을 함께 발사할 수 있습니다.

정의

오프닝 레인지(OR): 개장 윈도우 동안의 고가/저가(및 중앙값). 자동 모드 기본 매핑:

KRX 09:00–09:30, 미국 09:30–10:00(동부시간·DST 적용), 런던 08:00–08:30, EU 09:00–09:30, 크립토 00:00–00:30.

브레이크아웃: 종가가 ORH(또는 ORL)를 ATR 버퍼 고려해 연속 N봉 돌파.

리테스트: 브레이크아웃 후 retestBars 이내, ORH/ORL 근방(OR 범위 대비 retestTolPct)을 재접근하고, 돌파 방향으로 종가 복귀.

페이크아웃: 브레이크아웃 후 fakeoutBars 이내, 반대 방향으로 버퍼 넘겨 재유입.
=================================================================================

Settings Manual (EN → KR)
0) Auto Session Detection

Auto-detect Market & ORB Session (DST-safe)
EN: Uses syminfo.timezone and ticker prefix to pick market and opening window (DST aware).
KR: 심볼의 타임존/접두사로 시장·세션 자동 결정(DST 자동 반영).

Manual ORB Session (when Auto is OFF)
EN: Session string like 0930-1000. Use for non-standard opens, RTH-only, etc.
KR: 수동 세션(예: 0930-1000). 변형 장세/정규장만 등 수동 지정.

Show Previous-Day OR
EN: Plots prior day’s OR lines outside today’s session.
KR: 전일 ORH/ORL 표시.

1) Signals & Logic

Breakout confirmation closes (연속 종가 수)
EN: Require 1–3 consecutive closes beyond ORH/ORL (+/– buffer). Higher = fewer false breaks.
KR: ORH/ORL 돌파 종가 연속 N봉 요구(높일수록 잡음 감소).

Use ATR Buffer (진입 버퍼?) / ATR Length / ATR Buffer (×ATR)
EN: Adds a cushion around OR to avoid wicky false triggers. Start 0.10×ATR on 5–15m, raise on volatile coins.
KR: OR 경계에 버퍼(쿠션) 부여. 5–15분 0.10×ATR 시작→변동 크면 상향.

Retest window (bars) & Retest tolerance (% of OR range)
EN: How long after break you accept a retest, and how near to OR line counts as “retest”.
KR: 브레이크아웃 후 리테스트 허용 시간과 OR 근접 허용폭.

Fakeout if back inside within bars
EN: Window to flag failed breaks.
KR: 되돌림 실패(페이크)로 간주할 시간창.

2) Filters

Trend Filter: EMA Direction / EMA Length / Direction Mode
EN: Gate signals to long-only above EMA, short-only below, or both. Default EMA 200.
KR: EMA 기준 상방만/하방만/전체 허용(기본 EMA200).

Volume Filter: Volume ≥ k × SMA / Volume SMA Length / Min Volume (% of SMA)
EN: Demand volume ≥ X% of SMA(volume). Use 110–150% on stocks; optional on crypto.
KR: 거래량이 SMA 대비 X% 이상일 때만 신호 인정(주식 110–150% 권장).

3) Visualization

Show OR Box / Lines / Midline
EN: Box during session; lines & midline after session.
KR: 세션 중 박스, 종료 후 라인/중앙선 표시.

Show Signal Markers / Text Labels / Market Header Label
EN: Triangles (break), circles (retest), crosses (fakeout), header at session start.
KR: 삼각(브레이크), 원(리테스트), X(페이크), 세션 시작 헤더 라벨.

4) Alerts

또한 alert()로 시장명 포함 동적 메시지 발사
EN: Besides the six alertcondition() (fixed texts), you can also push runtime alerts with market names.
KR: 6개 alertcondition()(고정문구) 외에 시장명 포함 실시간 알림도 발사.

How to add alerts (EN → KR)

Condition: ORB Pro Auto DST → choose one of:
ORB Long/Short Breakout, ORB Long/Short Retest, ORB Long/Short Fakeout.

Options: If using runtime alerts too, set “Once per bar” to avoid duplicates.

Webhook/Message: Your exchange bridge (e.g., TradingView → BingX) can parse the fixed message.

조건: ORB Pro Auto DST → 다음 중 선택:
롱/숏 브레이크아웃, 롱/숏 리테스트, 롱/숏 페이크아웃

옵션: 런타임 알림도 켜면 “바마다 1회” 권장(중복 방지).

웹훅/메시지: 고정 메시지 기반으로 자동매매 연동.

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。