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
The range length is selectable, and entries use a close breakout, a break with retest, or a fuller sequence including a liquidity sweep and reclaim. Direction, bias filter and date window are inputs. Orders are placed from confirmed bars and fill on the next open. The stop is set at the opposite side of the range or by ATR, the target is a risk-reward multiple, size comes from an equity risk percentage with a leverage cap, and open trades can be closed at session end.
Opening range breakout entry models
Asian, London and New York session settings
Stop by opposite range or ATR, target by risk-reward
Equity-percentage position sizing with leverage cap
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Start date
time
timestamp("01 Jan 2023 00:00 +0000")
testStart
End date
time
timestamp("31 Dec 2035 23:59 +0000")
testEnd
Trade direction
string
Both
tradeDirection
Entry model
string
Break + retest
entryModel
Preferred session mode
string
Auto
preferredSessionMode
Manual preferred session
string
New York
manualPreferredSession
ORB session
string
Auto
orbSessionChoice
ORB duration (minutes)
string
30
orbDurationChoice
Custom ORB minutes
int
20
orbCustomMinutes
Asian session
session
0000-0800:1234567
asianSession
Asian timezone
string
Europe/London
asianTimezone
London session
session
0800-1600:1234567
londonSession
Show all 31 settings
Setting
Type
Default
Variable
London timezone
string
Europe/London
londonTimezone
New York session
session
0800-1700:1234567
newYorkSession
New York timezone
string
America/New_York
newYorkTimezone
Shade selected session
bool
true
showSessionShade
Show ORB levels
bool
true
showOrbLevels
Validation mode
string
Standard
validationMode
Minimum ORB break distance (ticks)
int
1
minimumBreakTicks
Liquidity sweep distance (ticks)
int
1
sweepToleranceTicks
Retest tolerance (ticks)
int
2
retestToleranceTicks
Maximum bars to retest
int
20
maxRetestBars
Directional filter
string
None
biasFilter
Equity risk per trade (%)
float
1.0
riskPercent
Exposure cap leverage
float
500.0
brokerLeverage
Stop model
string
Opposite ORB
stopModel
ATR stop multiple
float
1.5
stopAtrMultiple
Stop buffer (ticks)
int
2
stopBufferTicks
Profit target (R)
float
2.0
rewardRisk
Close open trade after session
bool
true
closeAtSessionEnd
Costs
string
Set broker spread/fees in Properties
costsReminder
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 strategy tracks GBP/USD market structure by storing confirmed pivot highs and lows. It enters long when price crosses above the last pivot high while above a trend EMA, and short when price crosses below the last pivot low while below that EMA. Entries oc
Ultimate PropFirm Strategy - QuantAlgo is an intraday trading system that combines Smart Money Concepts with exponential moving averages and volume filters on the main price chart. It identifies trend setups using Break of Structure, Fair Value Gaps, and order
This strategy executes trades based on a combination of Smart Money Concepts, including Inverse Fair Value Gaps (IFVG) and Change in State of Delivery (CISD) structure breaks. Entries require confluence between IFVG flips, structural CISD breaks, a 20-period e
This strategy implements quantitative intraday models tailored for NQ and MNQ futures contracts. Traders can select between EMA Pullback, Opening Range Breakout, or Liquidity Sweep setups with user-defined New York trading sessions. It handles position sizing
This strategy implements a deterministic ICT and SMC trading system operating on the M1 timeframe. It establishes institutional ranges using CRT on the 60-minute timeframe and confirms directional bias via BOS/CHOCH detection on the 15-minute structure timefra