1Copy the scriptPress Copy script above, or the copy button on the code below.
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
157 lines of Pine Script v5 from NQ Stats RTH Breaks with stats.txt, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
NQ Stats - RTH Breaks w/stats stores the current session open, high, and low and keeps yesterday's RTH high and low. It can draw those levels as lines with labels shifted a chosen number of bars to the right. Session times are either a fixed day session or a custom window, and daylight saving is not handled automatically. A statistics table's position and size are configurable. The shown logic runs only on intraday charts and only for recent bars. Break detection is not visible in the truncated source.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
High
bool
true
rthhi
rthhicol
color
color.new(color.gray, 20)
rthhicol
rthhiwidth
int
1
rthhiwidth
Low
bool
true
rthlo
rthlocol
color
color.new(color.gray, 20)
rthlocol
rthlowidth
int
1
rthlowidth
Open
bool
true
todop
todopcol
color
color.new(color.purple, 20)
todopcol
todopwidth
int
1
todopwidth
Session Type
string
Custom
session_type
Custom Session
session
0830-1600
custom_session_times
Table Position
string
Top-Right
table_position
Show all 16 settings
Setting
Type
Default
Variable
Table Size
string
Small
table_size
Offset Labels N Bars Right
int
20
nbarsforward
Multiply Offset for Yesterday's Labels
float
1
multforward
Label Size
string
small
label_size
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