An overlay indicator that plots a wide ATR-based structure trail and prints buy and sell flips, with an optional early reverse path using a fast zero-lag line and RSI overbought and oversold levels.
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
Anti-noise settings set minimum bars between flips, travel distance, confirmation closes and an efficiency filter. ADX floors and a higher-timeframe bias can block weak signals, and defaults can adapt to the chart timeframe.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Auto-adapt locks to chart TF
bool
true
useAuto
ATR Length
int
14
atrLen
Base Trail x ATR
float
3.15
baseMult
Volume-weighted source
bool
true
useVolSrc
VW length
int
12
vwLen
Pre-smooth close EMA2
bool
true
preSmooth
Widen trail in chop x
float
1.35
chopBoost
Enable early reverse path
bool
true
useEarly
Fast Zero-Lag length
int
9
fastZlLen
RSI Length
int
14
rsiLen
RSI overbought
int
68
rsiOb
RSI oversold
int
32
rsiOs
Show all 40 settings
Setting
Type
Default
Variable
Min leg run x ATR before early flip
float
0.90
earlyMinRun
Min bars in trade before early flip
int
5
earlyMinBars
Early path confirm bars
int
2
earlyConfirm
Min bars between flips
int
7
minBarsIn
Trail confirm closes
int
2
confirmBarsIn
Min travel from last flip x ATR
float
0.95
minTravelIn
Trail break buffer x ATR
float
0.10
breakBuf
Strong reverse x ATR
float
1.55
strongBrk
Efficiency filter
bool
true
useEff
Efficiency lookback
int
8
effLen
Min efficiency
float
0.26
effMin
ADX Length
int
14
adxLen
Chop if ADX <
float
17.5
adxChop
Require ADX floor trail path
bool
true
useAdxMin
Min ADX
float
16.0
adxMin
Enable HTF bias
bool
true
useHtf
Auto HTF from chart TF
bool
true
autoHtf
HTF manual
timeframe
15
htfTfManual
HTF SuperTrend factor
float
3.1
htfFactor
HTF ATR
int
14
htfAtrLen
HTF mode
string
Soft
htfMode
HMA slope
bool
true
useHma
HMA Length base
int
48
hmaLenIn
DI direction
bool
true
useDi
RSI side gate trail path
bool
true
useRsiG
Decisive candle
bool
true
useBody
Extra confluence points
int
1
needExtra
Show structure trail
bool
true
showTrail
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