This indicator computes the Average Daily Range over the last specified number of days and plots the full ADR level along with one-third of the ADR and an anchor line on the price chart.
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
202 lines of Pine Script v5 from Tradingview/adr-ranges.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
ADR % Ranges displays historical ADR levels from prior sessions and a table showing previous daily ranges with customizable size, position, and text options. Auto color mode adjusts plotting colors to match the chart foreground. Users adjust day count, visibility of levels and table, and styling for lines. The script resets calculations at the start of each regular session.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Auto Color
bool
true
auto_color
Days
int
5
adr_days
Show Historical ADR Levels
bool
false
show_hist
Show Previous Daily Ranges Table
bool
true
show_table
table_size
string
Small
table_size
table_x
string
Center
table_x
table_y
string
Bottom
table_y
Show Text
bool
true
show_text
txt_size
string
Small
txt_size
Offset
int
50
offset
ADR
string
Solid
adr_style
adr_css
color
color.new(#000000, 0)
adr_css
Show all 19 settings
Setting
Type
Default
Variable
Hide
bool
false
adr_show
1/3 ADR
string
Dotted
third_style
third_css
color
color.new(#000000, 0)
third_css
Hide
bool
false
third_show
Anchor
string
Dotted
anchor_style
anchor_css
color
color.new(#000000, 0)
anchor_css
Hide
bool
false
anchor_show
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 overlay indicator marks ICT liquidity void fills on the price chart and can show long and short signals. It places a Fibonacci level inside a displacement candle, defaulting to the midpoint, and draws lines in a chosen style. Optional filters limit the fi
This indicator plots Donchian Channel boundary lines along with dynamic fan projections directly on the price chart. It calculates the highest high, lowest low, and median price over a customizable lookback period. Whenever price establishes a new channel high
This indicator plots a custom Anchored Volume-Weighted Average Price (VWAP) directly on the price chart along with optional standard deviation bands. Users can anchor the VWAP to standard time periods like sessions, weeks, or months, or to corporate events suc
This indicator plots optional candlestick pattern signals on the price chart. It detects engulfing bars, inside bars, HOLP and LOHP, kicker patterns, body-mass extremes, higher highs and lower lows, ATR warnings, and four-bar fractals. Optional pivot marks use
Dynamic Linear Regression calculates and plots linear regression trendlines and standard deviation channels directly on the price chart over a user-selected time period. Traders can configure static channels locked at the end time, dynamic channels that contin
This indicator overlays trend-following Supertrend bands on the price chart using Average True Range calculations. It plots trailing stop lines, highlights active trend directions, and prints buy or sell shape labels when price closes across band thresholds. I