1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.
Source Code
149 lines of Pine Script v5 from Tradingview/orb-hooplah-strategy.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
ORB Hooplah Strategy calculates the high and low of the opening range bar then plots these levels on the price chart and fills the area between them. Candles are colored based on their relation to the ORB high and low. Long signals trigger on breakout above the OR high within the max bars since break while short signals occur on breakdown below the OR low. Exits happen on yellow bars, at a fixed time, or upon reaching the profit target. It draws breakout labels and uses custom candle coloring.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Color Candles
bool
true
_color_candles
ORB Session
session
0930-1000
_orb_session
Max Bars Since Break
int
1
_max_bars_break
Exit on Yellow Bars
bool
true
_exit_yellow_bars
Time Exit
bool
true
_exit_at_time
_time_to_exit
session
0930-1530
_time_to_exit
Profit Target
bool
false
_exit_tp
_tp_amount
float
50.00
_tp_amount
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.
This script monitors opening gap conditions and breakout behavior relative to the first candle's range across up to twenty configurable stock tickers. It detects whether following bars remain inside the opening range before breaking out, displaying the status
This overlay strategy tracks the high and low of a user-defined London session and plots the previous session levels as support and resistance. It flags a break beyond a level when price closes past an ATR buffer, then waits a set number of bars for a retest w
This strategy combines Opening Range Breakout (ORB) mechanics with Inner Circle Trader (ICT) concepts like Fair Value Gaps, Order Blocks, and liquidity grabs. It identifies session opening ranges and generates signals when price breaks out with supporting rela
This strategy enters long when the chart high breaks the previous higher-timeframe high during a detected higher-timeframe inside bar, and enters short on a break of the previous higher-timeframe low. It sizes positions at 10 percent of equity and has no stop
The Dollar Cross Play strategy detects price breakouts above a user-defined dollar threshold. It qualifies long entries by verifying that the previous day's close was at or below a maximum ceiling, aiming to capture fresh crosses rather than overextended moves
This strategy captures the first bar of each new day as an opening range and plots those high and low levels on the price chart. It enters one long position if price trades above the range high, or one short if price trades below the range low, then blocks fur