ORB-X v6 (Dashed OR Lines)

// Description:
// This indicator automatically captures the high and low of the first X minutes of the trading session
// and draws them as yellow dashed lines extending into the rest of the day. Alert conditions fire
// when price breaks above or below the opening-range high/low.
// User Inputs:
// • Session Start Hour/Minute: define when your market open begins
// • Range Length: how many minutes after open to form the opening range
//
// Key Benefits:
// • Immediate visual context for where price is trading relative to the opening range
// • Daily reset ensures each new session starts fresh
// • Built‑in alerts for breakout entries
WHAT THE SCRIPT DOES
• Draws the opening range: tracks the highest high and lowest low from 09:30 to 09:45 ET (or any custom window you set) and projects two yellow dashed lines across the rest of the session.
• Alerts:
– “ORB Breakout Up” fires when price closes above the OR-High.
– “ORB Breakout Down” fires when price closes below the OR-Low.
• Screener-ready output: a hidden series called ORB_Long_OK equals “1” on bars where the long breakout is valid. Add this column in TradingView’s Stock Screener and filter “≠ NA” to see a live list of breakouts.
• Fully editable: change session start, opening-range length, colours and line styles in the settings.
QUICK-START GUIDE
Add the script to any chart (Indicators → My Scripts → ORB-X v6).
Wait for the first 15-minute window to close; two dashed yellow lines will appear.
(Optional) Set an alert:
• Alerts → Create Alert → Condition = “ORB Breakout Up” (or Down) → choose “Once per bar close”.
Build a Stock Screener watch-list:
• Open Stock Screener.
• Filters: Exchange = NASDAQ + NYSE, set any price band you like (for example 3 to 6 USD).
• Columns (gear icon) → Indicators → tick ORB_Long_OK.
• Hover the ORB_Long_OK header → funnel icon → choose “≠ NA”.
Now the table lists only tickers whose latest closed bar has broken above their 15-minute OR-High.
USER INPUTS
• Session Start Hour / Minute (default 09:30 ET) – first bar of the range
• Range Length (minutes) (default 15) – how long to measure highs/lows
• Line colours and styles – purely cosmetic
TYPICAL WORKFLOW
Premarket: scan for liquid gappers and momentum names.
09:30–09:45 ET: let ORB-X mark the range; no trades yet.
After 09:45: trade only symbols that close above their OR-High (ORB_Long_OK = 1) using your own risk rules (e.g. stop just below the high).
End of day: journal the results and refine.
DISCLAIMER
This indicator is for educational purposes only and is not financial advice. Test on a demo account first and always use proper risk management.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.
Penafian
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.