Indicator · Pine Script v6 · On the chart

ORB Pro - Research-Based ORB

by Mrshahidali420

The ORB Pro indicator calculates and plots Opening Range Breakout levels, stop-loss and take-profit zones, signal labels, and an status dashboard on the price chart.

View on GitHub

Repaints

GitHub stars16on the repository
Pine versionv6current
Lines of code565
Settings27inputs
LicenceNone stated
Last update3 months ago24 Jul 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Built on academic research, it evaluates trades using an opening-candle direction filter, opening-window relative volume threshold, and a confluence score incorporating higher-timeframe trends, VWAP, and gap alignment. The indicator includes built-in risk controls such as an ATR risk cap, daily loss limits, cutoff times, and end-of-day exit tracking. Higher-timeframe data utilizes lookahead settings with confirmed historical bars.

Details

Published by

Mrshahidali420 on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Breakout, Sessions & time, Support & resistance, Screeners & dashboards

Markets

Stocks, Indices

Timeframes

M1-M5, M15-H1

Risk Notes

  • Reads higher-timeframe data with lookahead on, so the history can show signals that were not there in real time

Topics

day-tradingopening-range-breakoutorbpine-scripttechnical-analysistrading-strategytradingviewalgorithmic-tradingpinescripttrading-indicator

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Opening Range Length (min)int15i_orMins
Trading Session (NY time)session0930-1600i_sessionStr
No New Entries After (NY hour)int12i_cutoffHour
Opening-Candle Direction Filterbooltruei_dirFilter
Min Relative Volume (OR window vs 14-day avg)float1.5i_minRVOL
Breakout Buffer (× ATR14)float0.0i_breakBufATR
Min Confluence Score (0–100)int60i_minScore
Daily Stop: Halt After N Lossesint2i_maxLossDay
News-Spike Guardboolfalsei_newsGuard
cooldown barsint6i_newsCool
Stop-Loss BasisstringOpposite OR Sidei_slMode
Cap Risk Atbooltruei_atrCapOn
Show all 27 settings
SettingTypeDefaultVariable
× ATR14float1.5i_atrCap
Take-Profit (R multiple)float2.0i_rr
EOD Exitbooltruei_eodExit
NY hourint15i_eodHour
minint55i_eodMin
HTF Trend Timeframetimeframe60i_htfTF
Show OR Box + Levelsbooltruei_showBox
Show Entry/SL/TP Zonesbooltruei_showSLTP
Show Signal Labelsbooltruei_showLbl
Show Dashboardbooltruei_showDash
Dashboard PositionstringTop Righti_dashPos
Bull Colorcolorcolor.new(#00E676, 0)i_colBull
Bear Colorcolorcolor.new(#FF1744, 0)i_colBear
OR Box Fillcolorcolor.new(#2196F3, 80)i_colOR
OR Linecolorcolor.new(#2196F3, 0)i_colORLine
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

IB / ORB Live Stats

by TamaraKGreen
46 stars

This overlay indicator marks the New York initial balance and a configurable opening range on the price chart and reports live range statistics in two tables. It builds an IB box for a default 09:30–10:30 ET window, an ORB box from 09:30 for a set number of mi

Indicator v6 Sessions & timeBreakout
Updated 7 weeks ago · None stated GitHub repository of IB / ORB Live Stats

ORB Algo | Flux Charts

by vaskosmihaylov
5 stars

This indicator calculates and visualizes Opening Range Breakout (ORB) zones directly on the price chart. Breakout signals are identified when the close or an EMA crosses the opening range boundary, with entry sensitivity managed by retest requirements. It mode

Indicator v6 BreakoutSessions & time
Updated 2 months ago · GPL-3.0 GitHub repository of ORB Algo | Flux Charts
575 stars

This indicator builds Market Profile Time Price Opportunity (TPO) structures across defined session timeframes directly on the main price chart. It visualizes the Point of Control (POC) and Value Area boundaries using dynamic box drawings. An integrated multi-

Indicator v5 Support & resistanceScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of Market Profile with Screener
257 stars

This indicator overlays an intraday SPX and ES chart with a midnight session range, regular-trading-hours opening levels, and a VWAP projection box. It draws the midnight high, mid, and low, flags edge rejections within an absolute tolerance, and plots optiona

Indicator v6 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of SPX Midnight Box + Snag Logic

Golden Bullet Strategy

by TradersPost
218 stars

The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh

Indicator v6 SMC / ICT / price actionSessions & time
Updated 3 months ago · None stated GitHub repository of Golden Bullet Strategy

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers