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
Early and confirmed signals depend on score thresholds, a quality filter using range size, ADX and EMA separation, a trend filter from 21, 50 and 200 EMAs and RSI, and optional higher-timeframe confirmation. Signals can wait for the candle close and counter-trend breakouts are off by default. It also draws a trade plan with entry, a stop buffer in ATR and two take-profit levels by risk-reward multiples, plus a dashboard. It marks plans only.
Pivot-based trendlines with bounce and breakout signals
Quality filter using range, ADX and EMA separation
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Pivot Left
int
5
pivotLeft
Pivot Right
int
5
pivotRight
Trendline Width
int
2
lineWidth
Use MTF Confirmation
bool
true
useHTF
HTF 1
timeframe
15
htf1
HTF 2
timeframe
60
htf2
Min HTF Confirmations
int
1
minHTFConfirm
EMA Fast
int
21
emaFastLen
EMA Mid
int
50
emaMidLen
EMA Slow
int
200
emaSlowLen
RSI Length
int
14
rsiLen
RSI MA Length
int
9
rsiMaLen
Show all 39 settings
Setting
Type
Default
Variable
ATR Length
int
14
atrLen
Use Quality Filter
bool
true
useQuality
Range Filter Length
int
24
rangeLen
Minimum Range ATR
float
1.35
minRangeATR
DI Length
int
14
diLen
ADX Smoothing
int
14
adxSmooth
Minimum ADX
float
15.0
minADX
Minimum EMA Separation ATR
float
0.08
minEmaSepATR
Allow Counter Trend Breakout
bool
false
allowCounter
Signal Only After Candle Close
bool
true
closeOnly
Trendline Touch Zone ATR
float
0.22
touchATR
Breakout Close Buffer ATR
float
0.06
breakATR
SL Buffer ATR
float
0.35
slBufferATR
TP1 RR
float
1.0
rr1
TP2 RR
float
2.0
rr2
Early Signal Score
int
80
earlyThreshold
Confirmed Signal Score
int
90
confThreshold
Minimum Gap Between Same Direction Signals
int
20
minGapBars
Show Trendlines
bool
true
showLines
Show EMAs
bool
true
showEMAs
Show Labels
bool
true
showLabels
Show Entry / SL / TP
bool
true
showTradePlan
Move SL to Breakeven After TP1
bool
true
useBEAfterTP1
Label Offset ATR
float
0.35
labelOffsetATR
Label Size
string
Small
labelSizeInput
Show Dashboard
bool
true
showDashboard
Dashboard Position
string
Top Right
dashPosInput
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.
Sideway Zones Live is an overlay indicator that estimates inner and outer sideways bands from recent highs and lows with a rational quadratic kernel. It tracks swing pivots over a loopback period and counts bars that remain between the outer high and low. Afte
This indicator calculates dynamic upper and lower trendlines from pivot highs and pivot lows across a specified bar length. Trendline slopes are derived using ATR, standard deviation, or linear regression methods. It plots trendlines and breakout signal labels
This indicator detects inside candles inside larger parent candles on the price chart. It plots colored boxes around inside and parent candles, fills them with user-adjustable transparency, draws Fibonacci retracement lines and mother candle range lines, and d
This indicator maps Smart Money Concepts (SMC) market structure directly onto the price chart. It detects internal and swing structure breaks (BOS and CHoCH), tracks bullish and bearish order blocks, identifies fair value gaps (FVG), highlights equal highs and
The Market Tradability Engine calculates multi-factor tradability, balance, compression, and direction scores to evaluate market regime quality. It classifies market conditions into eight distinct states, including Balance, Compression, Ready, Breakout, Trend,
This indicator tracks swing highs and swing lows to generate trend-following trailing stop levels on the price chart. When the closing price breaks above the previous swing high, the system establishes a bullish state using the recent swing low as a trailing s