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
Session Edge Probabilities utilizes a fixed calculation timeframe to evaluate opening ranges, midnight levels, afternoon reversal windows, and price breaks across any chart resolution. The script displays a dashboard comparing static user expectations against live historical hit rates for the current symbol. It also draws key swing levels and Fibonacci retracement targets on the price chart. Settings allow full customization of session times, opening range lengths, and targets.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Calculation timeframe
timeframe
5
inCalcTf
Auto-drop to chart TF when chart is finer
bool
true
inAutoTf
Trading day start (1080 = 18:00 ET)
int
1080
inDayStart
NY open (570 = 09:30 ET)
int
570
inNyOpen
RTH close (960 = 16:00 ET)
int
960
inRthClose
Session end (1020 = 17:00 ET)
int
1020
inSessEnd
ORB start (570 = 09:30 ET)
int
570
inOrbStart
ORB length in minutes
int
60
inOrbLen
Rule 4 breakout deadline (690 = 11:30 ET)
int
690
inR4Dead
Leg start (870 = 14:30 ET)
int
870
inR8LegA
Leg end / anchor (885 = 14:45 ET)
int
885
inR8LegB
Reversal window end (915 = 15:15 ET)
int
915
inR8End
Show all 40 settings
Setting
Type
Default
Variable
Minimum 14:30→14:45 move to qualify (%)
float
0.05
inR8MinLeg
Which swing to retrace
string
14:30 → 14:45 leg
inR8Mode
Target 1 — retrace %
float
50
inR8FibA
Target 2 — retrace %
float
61.8
inR8FibB
Target 3 — retrace %
float
88
inR8FibC
Target 4 — retrace %
float
100
inR8FibD
Pivot lookback bars (Pivot swing mode)
int
5
inR8PivLen
Score on the 15:15 price instead of any touch
bool
false
inR8Close
Plot the swing the retrace is measured from
bool
true
inR8Swing
1 Monday → Sunday open retrace
float
95
inP1
2 Return to midnight level
float
72
inP2
3 ORB low-first → break ORB high (and inverse)
float
70
inP3
4 Tuesday ORB breakout by deadline
float
97
inP4
5 Green first NY hour → green day
float
77
inP5
6 Open below prior close → return to it
float
82
inP6
7 Inside day → break yesterday's body
float
88
inP7
8a Retrace to target 1 (50%)
float
70
inP8a
8b Retrace to target 2 (61.8%)
float
58
inP8b
8c Retrace to target 3 (88%)
float
42
inP8c
8d Retrace to target 4 (100%)
float
35
inP8d
Rule 5 reference symbol
symbol
CME_MINI:NQ1!
inRefSym
Rule 5: use chart symbol instead of reference
bool
false
inUseSelf5
Show dashboard table
bool
true
inShowTable
Table position
string
Top Right
inTablePos
Table text size
string
Small
inTableSize
Only list rules that are live right now
bool
false
inActiveOnly
Show price label with live rules
bool
true
inShowLabel
Plot target levels
bool
true
inShowLevels
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
4H Candle Curves highlights 4-hour trading sessions based on New York time by overlaying customizable colored boxes directly on the main price chart. It divides 4-hour sessions with quarter separator lines at one-hour intervals and places name labels at the mi