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 indicator, select all of the template text and paste. Press Save and give it a name.
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
Boxes mark a range as forming, closed above the previous high, closed below the previous low, or closed inside. It plots the prior range high, mid, and low, optional open-position levels, and a shaded opening bucket used to read historical range probabilities. A table shows test outcomes and sample size, chart labels and optional alerts mark qualifying cells, and a live tracker scores recent calls on the loaded history. It is titled for NQ and does not place trades.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Range size (minutes)
string
60
tfSel
Session anchor hour (ET)
int
18
anchorH
Ranges to keep on chart
int
20
keepN
Draw range boxes
bool
true
showBox
Forming
color
color.new(#787b86, 75)
colLive
Closed above previous high
color
color.new(#26a69a, 80)
colUp
Closed below previous low
color
color.new(#ef5350, 80)
colDn
Closed inside
color
color.new(#787b86, 90)
colIn
High / mid / low lines from the previous range
bool
true
showHML
Extend them this many ranges ahead
int
0
extendN
Label them
bool
true
showHMLlb
Outline the previous range
bool
true
showPrev
Show all 32 settings
Setting
Type
Default
Variable
Open-position levels (0.0 - 1.0)
bool
false
showGrid
Shade the bucket the range opened in
bool
true
showBand
High / low colour
color
#4a4d55
colHML
Mid colour
color
color.new(#787b86, 25)
colMidL
Label colour
color
color.new(#787b86, 20)
colHMLlb
High / low thickness
int
1
wHL
Mid thickness
int
1
wMid
Open-position level thickness
int
1
wGrid
Open-position level colour
color
color.new(#787b86, 65)
colGrid
Bucket shading
color
color.new(#787b86, 88)
colBand
Show table
bool
true
showTbl
Position
string
Top right
tblPos
Text size
string
Small
tblSize
Show test outcome and sample size
bool
true
showDetail
Label the chart when a cell qualifies
bool
true
showMarker
Fire an alert when a cell qualifies
bool
false
useAlerts
Scan the other range sizes for live signals
bool
true
showOthers
Track how the calls are doing on this chart
bool
true
showLive
Calls to keep in the window
int
100
trackN
Show lookup diagnostics in the table
bool
false
showDebug
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 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-
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
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
Indicatorv6SMC / ICT / price actionSessions & time
This indicator plots a session VWAP of the typical price on the price chart. It marks an up triangle under a bar when close crosses above VWAP and a down triangle above a bar when close crosses below it. A star pinned at the top of the pane marks bars whose vo
This indicator marks forex trading sessions and opening ranges on the price chart. It can draw Sydney, Tokyo, Frankfurt, London, and New York session boxes or five- and fifteen-minute opening ranges, plus an optional opening channel and a day-open range. Day r