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
Trend Scanner (ATR Pullback) uses ADX and directional indicators with a rising-ADX check to confirm trend and direction, then measures the distance from the recent swing high or low in ATR units. Optional filters use a daily 50 and 200 SMA trend and a Bollinger-in-Keltner squeeze check. It marks setup and watch conditions and uses ATR multiples for stop and trail levels.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
ADX / DI Length
int
14
adxLen
ADX Smoothing Length
int
14
adxSmooth
ADX Threshold
int
20
adxTh
ATR Length
int
14
atrLen
ADX Slope Bars
int
3
adxSlopeBars
Swing Lookback (Bars)
int
10
lookback
Min Pullback ATR
float
1.0
minPbAtr
Max Pullback ATR
float
3.0
maxPbAtr
Stop Loss ATR Multiplier
float
3.0
slAtrMult
Trail Stop ATR Multiplier
float
2.5
trailAtrMult
Use Squeeze Filter (BB in KC)
bool
true
useSqueezeFilter
Squeeze BB/KC Length
int
20
squeezeLength
Show all 16 settings
Setting
Type
Default
Variable
Use Daily SMA Filter
bool
true
useDailyFilter
Show SMA Lines on Chart
bool
false
showSmaLines
SMA Fast Length
int
50
smaFastLen
SMA Slow Length
int
200
smaSlowLen
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.
The Momentum Setup is a multi-indicator visual tool designed for trend and momentum analysis directly on the price chart. It combines Relative Strength Index (RSI), Money Flow Index (MFI), Commodity Channel Index (CCI), Supertrend, and a 250-bar percentage cha
An overlay indicator that combines an ATR-based SuperTrend trailing stop with an integrated RSI-derived midline calculation on the price chart. The SuperTrend uses an ATR period and factor multiplier to plot dynamic green or red trend lines based on price dire
ADX Strategy (original) is an overlay indicator that identifies trend-following trade signals using the Average Directional Index (ADX) combined with a Simple Moving Average filter. A long signal is generated when the ADX rises above a user-defined trend level
Moon Dev Lunar Sniper is a multi-indicator overlay that scores confluence across fast and slow EMAs, RSI, MACD, DMI, and BB width to fire signals only when score meets the minimum threshold. It plots buy and sell signals on the price chart, highlights cosmic b
Double Screened Decision is a multi-timeframe trend and momentum indicator overlaid directly on the price chart. It dynamically selects a higher timeframe based on the active chart resolution to evaluate higher-timeframe MACD, Bollinger Bands, RSI, and Stochas
The VibeTrader Signal System is an overlay indicator that identifies trend direction and potential reversal conditions. It calculates a Supertrend line alongside Bollinger Bands and a 14-period RSI indicator. The script highlights bullish and bearish trends by