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
180 lines of Pine Script v6 from acr-with-targets/acr-indicator.pine, published under MIT. Keep the author's credit and licence lines when you reuse it.
ACR(Average Candle Range) With Targets plots bullish and bearish target lines from the current candle range on the price chart and can extend those lines by a set number of bars. A table shows the average range and recent candle ranges, with position and color controls. Vertical lines mark the start of each new candle on the selected timeframe. Higher-timeframe data is requested with lookahead enabled.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Timeframe
timeframe
D
input_timeframe
candles_back
int
5
candles_back
ACR
bool
true
acr_toggle
Previous Days
bool
true
previous_candles_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
input_bullish_extend
int
0
input_bullish_extend
Show all 25 settings
Setting
Type
Default
Variable
Style
string
Solid
input_bullish_line_style
input_bullish_line_width
int
1
input_bullish_line_width
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
input_bearish_extend
int
0
input_bearish_extend
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
vertical_line_toggle
bool
true
vertical_line_toggle
Style
string
Dotted
input_vertical_line_style
input_vertical_line_width
int
1
input_vertical_line_width
input_vertical_line_color
color
color.rgb(0, 0, 0)
input_vertical_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