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 v1 uses a zero-lag EMA trail sized by ATR, smoothed price, an ADX regime read with trending and sideways thresholds, RSI and Stochastic RSI checks, and an optional volume spike and HMA bias. Spike cooldowns, minimum bars between flips, an optional higher-timeframe filter, three ATR take profit levels and exhaustion warnings are included.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Price Source
source
close
srcIn
Zero-Lag Length
int
14
zlemaLen
ATR Length
int
14
atrLen
Base ATR Multiplier
float
1.6
baseMult
Spike-Smooth Price (EMA)
bool
true
useSmooth
Spike Smooth Length
int
2
smoothLen
ADX Length
int
14
adxLen
ADX Trending Threshold
float
22.0
adxTrendTh
ADX Sideways Threshold
float
16.0
adxChopTh
Hard-Mute Flips in Sideways (strict)
bool
false
useChopMute
RSI Length
int
14
rsiLen
Stoch RSI Length
int
14
stochLen
Show all 40 settings
Setting
Type
Default
Variable
Stoch Smooth
int
3
stochSm
Require Volume Spike (strict)
bool
false
useVol
Volume MA Length
int
20
volLen
Volume × Avg
float
1.3
volMult
Use HMA Structure Bias
bool
true
useHmaBias
HMA Length
int
21
hmaLen
Strict HMA (block counter-structure)
bool
false
hmaStrict
Enable HTF Bias Filter
bool
false
useHtf
Higher Timeframe
timeframe
60
htfTf
HTF Zero-Lag Length
int
14
htfLen
Spike Candle × ATR
float
2.4
spikeAtrM
Post-Spike Cooldown Bars
int
3
spikeCool
Min Bars Between Flips
int
2
minFlipBars
Show TP Levels / Hits
bool
true
showTp
TP1 × ATR
float
1.8
tp1Mult
TP2 × ATR
float
3.2
tp2Mult
TP3 × ATR
float
5.0
tp3Mult
Show Exhaustion / Early Exit Warnings
bool
true
showExh
RSI Overbought
int
70
rsiOb
RSI Oversold
int
30
rsiOs
Enable Emergency Trail Exit Labels
bool
true
useEmerg
Emergency Trail × ATR
float
2.0
emergAtrM
Flash Dump/Pump × ATR
float
2.3
flashAtrM
Show Trailing Stop
bool
true
showTrail
Show Zero-Lag Line
bool
true
showZlema
Show HMA Structure Line
bool
false
showHma
Show Regime Background
bool
true
showBg
Show 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