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
Nexus Prime Engine v11 Final Old Logic Confirmed rebuilds an earlier trail design with an ATR trail, slope and separation checks, range hysteresis, a strict early reverse path using fast and slow zero-lag lines with RSI, and an efficiency filter. Gaps, volatility shocks and weak DMI pressure are filtered, and parameters 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 parameters to chart timeframe
bool
true
useAuto
ATR length
int
14
atrLen
Base trail distance x ATR
float
3.15
baseMult
Use volume-weighted source when volume exists
bool
false
useVolumeSource
Volume source length
int
12
volumeSourceLen
Pre-smooth source with EMA 2
bool
true
preSmooth
Widen trail in range transition x
float
1.35
chopTrailBoost
Minimum slow trend slope x ATR
float
0.04
minSlopeAtr
Minimum fast/slow separation x ATR
float
0.12
minSeparationAtr
Enable strict early-reverse path
bool
true
useEarlyReverse
Fast zero-lag length
int
9
fastZlemaLen
Slow zero-lag length
int
20
slowZlemaLen
Show all 40 settings
Setting
Type
Default
Variable
RSI length
int
14
rsiLen
Early short RSI level
float
68.0
rsiOverbought
Early long RSI level
float
32.0
rsiOversold
Minimum favorable leg x ATR
float
1.20
earlyMinRunAtr
Minimum bars before early reverse
int
6
earlyMinBars
Early reverse confirmation bars
int
3
earlyConfirmBars
Minimum bars between flips
int
8
minBarsBetweenFlips
Trail-break confirmation closes
int
2
trailConfirmBars
Minimum travel from last flip x ATR
float
1.00
minTravelAtr
Trail break buffer x ATR
float
0.10
trailBreakBufferAtr
Strong reverse distance x ATR
float
1.55
strongReverseAtr
Use efficiency filter
bool
true
useEfficiency
Efficiency lookback
int
10
effLen
Minimum efficiency
float
0.28
effMin
Range efficiency threshold
float
0.24
effRangeEnter
Trend release efficiency
float
0.34
effTrendRelease
ADX/DMI length
int
14
adxLen
Range entry ADX
float
17.5
adxRangeEnter
Trend release ADX
float
20.0
adxTrendRelease
Minimum ADX for normal flips
float
18.0
adxTrailMin
Minimum DMI spread
float
3.0
diSpreadMin
Choppiness length
int
14
chopLen
Range choppiness
float
61.8
chopRangeEnter
Trend release choppiness
float
55.0
chopTrendRelease
ATR baseline length
int
50
atrBaseLen
Pause new flips above ATR ratio
float
2.2
pauseAtrRatio
Pause new flips above candle range x ATR
float
2.8
shockRangeAtr
Pause new flips after abnormal gap
bool
true
useGapFilter
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