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
224 lines of Pine Script v5 from Session_Range_ATR.txt, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Session Range vs ATR Filter evaluates session range expansion at fixed time checkpoints (10:00 AM, 12:00 PM, and 2:00 PM ET) against percentage thresholds to identify consolidation or expansion regimes. It also detects single-day and two-day prior range compressions. The indicator renders shaded session range boxes, informational checkpoint labels, and a summary dashboard table directly on the main chart.
Intraday session range tracking against ATR
Time checkpoint evaluation at 10am, 12pm, and 2pm ET
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
ATR Length
int
14
atr_length
ATR Smoothing
string
RMA
atr_smoothing
10:00 AM — Consolidation Below (%)
float
30.0
thresh_10am
12:00 PM — Consolidation Below (%)
float
45.0
thresh_12pm
2:00 PM — Consolidation Below (%)
float
55.0
thresh_2pm
Expansion Day Threshold (%)
float
75.0
thresh_expansion
Enable Prior Day Compression Signal
bool
true
enable_prior_day
Prior Day Tight Range (%)
float
50.0
prior_day_thresh
Highlight 2-Day Compression
bool
true
two_day_compression
Show Dashboard
bool
true
show_table
Show Developing Range Box
bool
true
show_range_line
Show Checkpoint Labels
bool
true
show_labels
Show all 16 settings
Setting
Type
Default
Variable
Dashboard Position
string
Top Right
table_position
Consolidation Box
color
color.new(#FF6B6B, 85)
box_consol_color
Expansion Box
color
color.new(#4ECDC4, 85)
box_expansion_color
Neutral Box
color
color.new(#95A5A6, 90)
box_neutral_color
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 classifies the market into gamma regime types (negative gamma trend, positive gamma mean-reversion, or transition) by calculating a composite score based on daily ATR ratios, session VWAP crossover frequencies, and opening range displacement. It
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
The AM TBR indicator calculates statistical levels for NQ futures using standard deviation. It plots a sigma ladder showing touch levels at 0.5 to 2.0 standard deviations, marks touch points, displays Mean Absolute Error (MAE) zones after touches, and shows Me
This indicator plots average bar range (ABR) measured move targets, opening range boxes, and historical key reference levels directly on the price chart. It projects bullish and bearish targets (0.5x, 1.0x, 1.5x, 2.0x ABR) from the previous session's close, al
Peak Trading Activity Graphs displays historical market activity across cyclical timeframes directly on the main chart using an on-screen dashboard table. It evaluates volume or volatility across selected periods, including hours of the day, days of the week,
This indicator calculates the overnight session price range (18:00 to 09:30 exchange time) and measures it as a percentage of the 14-day daily Average True Range (ATR). Depending on configurable percentage thresholds, it categorizes the market regime into chop