1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
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
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
Smart Breakout Targets detects consolidation when Bollinger Band width and ATR are both compressed for a minimum number of bars, draws a range box with a centerline, and signals a breakout when an impulse candle leaves the range. Entry, stop and three take-profit levels are drawn from the range and risk-reward settings. Optional volume surge and higher-timeframe MA filters, a squeeze background and a dashboard are available.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Squeeze Detection Length
int
20
squeezeLengthInput
BB Multiplier
float
2.0
bbMultInput
Squeeze Threshold
float
0.6
squeezeThreshInput
ATR Compression Ratio
float
0.75
atrCompressInput
Min Squeeze Bars
int
5
minSqueezeInput
Impulse Body Threshold
float
0.8
impulseMultInput
Prevent Overlap
bool
true
preventOverlapInput
Show Entry/SL/TP Levels
bool
true
showTargetsInput
SL ATR Buffer
float
0.5
slBufferInput
TP1 Risk:Reward
float
1.0
tp1RRInput
TP2 Risk:Reward
float
2.0
tp2RRInput
TP3 Risk:Reward
float
3.0
tp3RRInput
Show all 37 settings
Setting
Type
Default
Variable
Volume Breakout Filter
bool
false
useVolFilterInput
Volume Surge Multiplier
float
1.5
volMultInput
HTF Trend Filter
bool
false
useHtfInput
Higher Timeframe
timeframe
D
htfInput
HTF MA Length
int
50
htfMaLenInput
Show Range Boxes
bool
true
showBoxesInput
Show Breakout Signals
bool
true
showSignalsInput
Show Range Centerline
bool
true
showCenterInput
Show Squeeze Background
bool
false
showBgInput
Show Close Labels
bool
true
showCloseLabelsInput
Signal Label Size
string
Small
signalSizeInput
Target Label Size
string
Small
targetSizeInput
Close Label Size
string
Small
closeSizeInput
Show Watermark
bool
true
showWatermarkInput
Theme
string
Auto
themeInput
Show Dashboard
bool
true
showDashInput
Dashboard Position
string
Top Right
dashPosStr
Dashboard Font Size
string
Small
dashFontSizeInput
├ Market section
bool
true
showMarketSecInput
├ Trade section
bool
true
showTradeSecInput
└ Stats section
bool
true
showStatsSecInput
Webhook JSON Format
bool
false
webhookInput
Bull
color
#00E676
bullColorInput
Bear
color
#FF5252
bearColorInput
Neutral
color
#FFEB3B
neutralColorInput
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 Linda Raschke short-term bar setups on the price chart. It flags Turtle Soup and Turtle Soup plus one false breakouts of a prior extreme, 80-20 bars, inside bars, failed inside-bar breakouts, outside up and down bars, NR4 and NR7 c
Acceleration Bands is an overlay indicator that plots a volatility envelope around a central simple moving average. It calculates upper and lower boundary bands scaled by the high-to-low bar range relative to the midpoint price, smoothed by an SMA over a user-
This indicator calculates and plots Donchian Channels directly on the price chart. It determines the highest high and lowest low over a user-selected lookback period using an optimized monotonic deque algorithm, as well as a middle basis line computed as their
The Donchian Channels indicator plots the middle basis line as the average of the high and low over the user-defined period. It also draws the upper band as the highest high and the lower band as the lowest low across the same period on the price chart. The ma
This indicator plots Donchian channel bands and a midline on the price chart. It finds the highest and lowest values over a user-set length, then draws the upper band, lower band, and their average as the basis. The source setting chooses high and low, or the
This indicator plots a Donchian channel on the price chart. It calculates the highest high and the lowest low over a user-set lookback, then draws those values as upper and lower bands with a midline equal to their average. The area between the bands is filled