Indicator · Pine Script v6 · On the chart

Range Probability - NQ

by TamaraKGreen

This overlay indicator measures fixed-length ranges from a New York session anchor and draws them on the price chart.

View on GitHub

GitHub stars46on the repository
Pine versionv6current
Lines of code616
Settings32inputs
LicenceNone stated
Last update7 weeks ago4 Sep 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

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.

Details

Published by

TamaraKGreen on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Support & resistance, Sessions & time, Screeners & dashboards

Markets

Indices

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
Range size (minutes)string60tfSel
Session anchor hour (ET)int18anchorH
Ranges to keep on chartint20keepN
Draw range boxesbooltrueshowBox
Formingcolorcolor.new(#787b86, 75)colLive
Closed above previous highcolorcolor.new(#26a69a, 80)colUp
Closed below previous lowcolorcolor.new(#ef5350, 80)colDn
Closed insidecolorcolor.new(#787b86, 90)colIn
High / mid / low lines from the previous rangebooltrueshowHML
Extend them this many ranges aheadint0extendN
Label thembooltrueshowHMLlb
Outline the previous rangebooltrueshowPrev
Show all 32 settings
SettingTypeDefaultVariable
Open-position levels (0.0 - 1.0)boolfalseshowGrid
Shade the bucket the range opened inbooltrueshowBand
High / low colourcolor#4a4d55colHML
Mid colourcolorcolor.new(#787b86, 25)colMidL
Label colourcolorcolor.new(#787b86, 20)colHMLlb
High / low thicknessint1wHL
Mid thicknessint1wMid
Open-position level thicknessint1wGrid
Open-position level colourcolorcolor.new(#787b86, 65)colGrid
Bucket shadingcolorcolor.new(#787b86, 88)colBand
Show tablebooltrueshowTbl
PositionstringTop righttblPos
Text sizestringSmalltblSize
Show test outcome and sample sizebooltrueshowDetail
Label the chart when a cell qualifiesbooltrueshowMarker
Fire an alert when a cell qualifiesboolfalseuseAlerts
Scan the other range sizes for live signalsbooltrueshowOthers
Track how the calls are doing on this chartbooltrueshowLive
Calls to keep in the windowint100trackN
Show lookup diagnostics in the tableboolfalseshowDebug
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

Session Edge Probabilities

by TraderOracle
61 stars

Session Edge Probabilities tracks eight session-based trading rules using statistical probabilities evaluated on historical chart data. It utilizes a fixed calculation timeframe to evaluate opening ranges, midnight levels, afternoon reversal windows, and price

Indicator v6 Sessions & timeScreeners & dashboards
Updated 9 days ago · None stated GitHub repository of Session Edge Probabilities
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

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