1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
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
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
ORB + ICT Backtest Strategy v2 identifies potential entries on breakout after a retest followed by continuation, applying ICT-style context and SMC proxies for confirmation. Signals plot directly on the price chart overlay. Main inputs let users select profile or custom sessions, adjust ORB duration and offset, set entry delay modes, limit signals before session close, and filter by direction and date range. The backtest version supports historical comparisons with pyramiding disabled. Notable limits are absence of built-in stop loss or take profit rules and reliance on discretionary review rather than automated execution.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Profile
string
Auto research candidate
profile
Sessions to scan
string
Profile session
sessionMode
Custom / fallback session
string
New York
customSession
Custom / fallback chart timeframe
timeframe
5
customTf
Require profile chart timeframe
bool
true
enforceTf
Allowed direction
string
Profile
directionInput
Start date
time
timestamp("01 Jan 2026 00:00 +0200")
testStart
Last signal time (plans stay active)
time
timestamp("31 Dec 2035 23:59 +0200")
testEnd
Asian enabled
bool
true
asiaEnabled
Asian window
session
0000-0800
asiaSpec
Asian timezone
string
Europe/London
asiaZone
London enabled
bool
true
londonEnabled
Show all 40 settings
Setting
Type
Default
Variable
London window
session
0900-1700
londonSpec
London timezone
string
Africa/Johannesburg
londonZone
New York enabled
bool
true
nyEnabled
New York window
session
0800-1700
nySpec
New York timezone
string
America/New_York
nyZone
Monday-Friday session starts only
bool
true
weekdaysOnly
Start ORB this many minutes after session open
int
0
orbOffset
ORB duration (minutes)
int
30
orbMinutes
Entry delay mode
string
Profile hypothesis
delayMode
Custom minimum delay after session open (minutes)
int
0
customDelay
Delay breakout search too
bool
false
delayWholeSetup
Stop new signals this many minutes before session end
int
30
lastEntryBuffer
Setup expiry after breakout (bars)
int
12
maxSetupBars
Break / continuation buffer (ATR)
float
0.05
breakAtr
ORB retest tolerance (ATR)
float
0.15
retestAtr
Minimum ORB width (ATR)
float
0.25
minOrbAtr
Maximum ORB width (ATR)
float
8.0
maxOrbAtr
Entry model
string
Break + retest + continuation
entryModel
Context filter
string
Required
contextMode
Count order-block context
bool
true
useOb
Count FVG context
bool
true
useFvg
Count Fibonacci context
bool
true
useFib
Minimum context matches (not probability)
int
2
minContext
Prior structure lookback
int
10
structureBars
Last opposing candle search
int
10
obSearch
Maximum zone age (bars)
int
60
zoneLife
Displacement body / ATR
float
0.6
displacementAtr
Minimum FVG width / ATR
float
0.05
fvgMinAtr
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 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 overlay strategy plots previous-day high and low, the daily open, and fair value gap zones on the price chart. It takes entries on a selectable timeframe when the FVG requirement and an optional session window allow them, then uses an ATR or fixed pip sto
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
P404 Smoke is a price-chart strategy that sequences an optional higher-timeframe EMA bias, a liquidity range from recent pivots, a sweep of buy-side or sell-side liquidity, and a market structure shift within a set bar window. Comments state it then looks for
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
Brucetrade Mechanical Framework is an overlay strategy combining higher-timeframe bias with Smart Money Concepts (SMC). It detects Fair Value Gaps (FVG), Inverted FVGs, and liquidity sweeps across configurable higher and momentum timeframes. Signals are filter