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
143 lines of Pine Script v6 from adr-with-targets/adr-indicator.pine, published under MIT. Keep the author's credit and licence lines when you reuse it.
ADR Up to 10 Days With Targets draws optional bullish and bearish target lines from the current day's range on the price chart and shows a configurable table of the average plus recent daily ranges. Settings control the day count, line styles and colors, table placement, and whether the average or prior days appear. Daily values are requested with lookahead enabled, so displayed ranges can change before the daily bar closes.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Days
int
5
days_back
ADR
bool
true
adr_toggle
Previous Days
bool
true
previous_days_toggle
input_position
string
Top Right
input_position
Backround Color
color
color.white
input_background_color
Text Color
color
color.rgb(0, 0, 0)
input_text_color
Frame & Border Width
int
1
input_frame_border_width
input_frame_border_color
color
color.rgb(0, 0, 0)
input_frame_border_color
bullish_toggle
bool
true
bullish_toggle
input_bullish_label
string
Bullish Target
input_bullish_label
Style
string
Solid
input_bullish_line_style
input_bullish_line_width
int
1
input_bullish_line_width
Show all 18 settings
Setting
Type
Default
Variable
input_bullish_line_color
color
color.rgb(0, 0, 0)
input_bullish_line_color
bearish_toggle
bool
true
bearish_toggle
input_bearish_label
string
Bearish Target
input_bearish_label
Style
string
Solid
input_bearish_line_style
input_bearish_line_width
int
1
input_bearish_line_width
input_bearish_line_color
color
color.rgb(0, 0, 0)
input_bearish_line_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 maps market structure and supply and demand zones on the price chart. It marks validated and optional unvalidated swing highs and lows using a pivot length and extra confirmation bars. Consolidation and impulse moves are measured against ATR to
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
This indicator plots average daily range levels on the price chart, together with optional standard-deviation and Fibonacci levels scaled from that range. Users set the lookback in days, a scale factor, and the visibility, color, and line style of the ADR line
ATR Matrix calculates Average True Range and a 50-period Simple Moving Average to display multi-tier volatility levels and risk-reward metrics. It project stop levels using negative ATR multiples from an entry price, alongside target levels from 0x to 11x ATR
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
This indicator calculates a base moving average (EMA, SMA, WMA, or HMA) and projects multiple symmetrical envelope bands around it directly on the price chart. Users can adjust the length, source, moving average type, and initial envelope multiplier. Additiona