An overlay indicator that prints buy and sell flips from an adaptive SuperTrend-style trail whose factor widens in chop and tightens in strong trends, based on ADX.
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
A flip needs enough bars since the last one, a break buffer and a minimum adverse move, plus a confluence score drawn from DI, RSI, HMA slope, zero-lag slope, candle body and optional volume. A higher-timeframe SuperTrend can confirm or strictly block counter-trend flips.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
ATR Length
int
14
atrLen
Base Trail Factor
float
3.0
baseFactor
Smooth price (spike kill)
bool
true
smoothOn
Smooth length
int
3
smoothLn
ADX Length
int
14
adxLen
ADX strong trend ≥
float
22.0
adxTrend
ADX chop <
float
17.0
adxChop
Factor boost in chop
float
1.35
chopBoost
Factor cut in strong trend
float
0.92
trendCut
Min bars between flips
int
6
minBars
Break buffer × ATR
float
0.12
breakBuf
Min adverse × ATR to flip
float
0.70
minAdv
Show all 40 settings
Setting
Type
Default
Variable
Strong break × ATR
float
1.25
strongBrk
Enable HTF confirmation
bool
true
useHtf
Higher timeframe
timeframe
15
htfTf
HTF SuperTrend factor
float
3.0
htfFactor
HTF ATR length
int
14
htfAtrLen
Hard block counter-HTF (strict)
bool
false
htfHard
Min confluence score to flip
int
3
needScore
Min score on STRONG break
int
2
needStrong
Score: DI direction
bool
true
useDi
Score: RSI side
bool
true
useRsi
RSI Length
int
14
rsiLen
Score: HMA slope
bool
true
useHma
HMA Length
int
34
hmaLen
Score: Zero-Lag slope
bool
true
useZl
Zero-Lag Length
int
14
zlLen
Score: candle body
bool
true
useBody
Score: volume spike
bool
false
useVol
Volume MA
int
20
volLen
Volume × avg
float
1.25
volMult
Require ADX ≥ floor
bool
true
useAdxMin
ADX floor
float
16.0
adxMin
Show trail
bool
true
showTrail
Show HTF SuperTrend line
bool
false
showHtfLn
Show HMA
bool
false
showHma
Show Zero-Lag
bool
false
showZl
Trail fill
bool
true
showFill
Color candles
bool
true
colorBars
Dashboard
bool
true
showDash
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