Indicator · Pine Script v6 · On the chart

Session Edge Probabilities

by TraderOracle

Session Edge Probabilities tracks eight session-based trading rules using statistical probabilities evaluated on historical chart data.

View on GitHub

GitHub stars61on the repository
Pine versionv6current
Lines of code626
Settings40inputs
LicenceNone stated
Last update9 days ago19 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

TraderOracle on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Sessions & time, Screeners & dashboards, Support & resistance

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Calculation timeframetimeframe5inCalcTf
Auto-drop to chart TF when chart is finerbooltrueinAutoTf
Trading day start (1080 = 18:00 ET)int1080inDayStart
NY open (570 = 09:30 ET)int570inNyOpen
RTH close (960 = 16:00 ET)int960inRthClose
Session end (1020 = 17:00 ET)int1020inSessEnd
ORB start (570 = 09:30 ET)int570inOrbStart
ORB length in minutesint60inOrbLen
Rule 4 breakout deadline (690 = 11:30 ET)int690inR4Dead
Leg start (870 = 14:30 ET)int870inR8LegA
Leg end / anchor (885 = 14:45 ET)int885inR8LegB
Reversal window end (915 = 15:15 ET)int915inR8End
Show all 40 settings
SettingTypeDefaultVariable
Minimum 14:30→14:45 move to qualify (%)float0.05inR8MinLeg
Which swing to retracestring14:30 → 14:45 leginR8Mode
Target 1 — retrace %float50inR8FibA
Target 2 — retrace %float61.8inR8FibB
Target 3 — retrace %float88inR8FibC
Target 4 — retrace %float100inR8FibD
Pivot lookback bars (Pivot swing mode)int5inR8PivLen
Score on the 15:15 price instead of any touchboolfalseinR8Close
Plot the swing the retrace is measured frombooltrueinR8Swing
1 Monday → Sunday open retracefloat95inP1
2 Return to midnight levelfloat72inP2
3 ORB low-first → break ORB high (and inverse)float70inP3
4 Tuesday ORB breakout by deadlinefloat97inP4
5 Green first NY hour → green dayfloat77inP5
6 Open below prior close → return to itfloat82inP6
7 Inside day → break yesterday's bodyfloat88inP7
8a Retrace to target 1 (50%)float70inP8a
8b Retrace to target 2 (61.8%)float58inP8b
8c Retrace to target 3 (88%)float42inP8c
8d Retrace to target 4 (100%)float35inP8d
Rule 5 reference symbolsymbolCME_MINI:NQ1!inRefSym
Rule 5: use chart symbol instead of referenceboolfalseinUseSelf5
Show dashboard tablebooltrueinShowTable
Table positionstringTop RightinTablePos
Table text sizestringSmallinTableSize
Only list rules that are live right nowboolfalseinActiveOnly
Show price label with live rulesbooltrueinShowLabel
Plot target levelsbooltrueinShowLevels
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.

Similar Pine Scripts

575 stars

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-

Indicator v5 Support & resistanceScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of Market Profile with Screener
257 stars

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

Indicator v6 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of SPX Midnight Box + Snag Logic

Golden Bullet Strategy

by TradersPost
218 stars

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

Indicator v6 SMC / ICT / price actionSessions & time
Updated 3 months ago · None stated GitHub repository of Golden Bullet Strategy
56 stars

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

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of Day Trading Booster by DGT

4H Candle Curves

by TamaraKGreen
46 stars

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

Indicator v6 Sessions & timeScreeners & dashboards
Updated 7 weeks ago · None stated GitHub repository of 4H Candle Curves

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers