Indicator · Pine Script v5 · On the chart

Nexus Prime Engine v5 Early Reverse

by vedkanani123

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.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code406
Settings40inputs
LicenceNone stated
Last update2 months ago23 Aug 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

vedkanani123 on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Trend, Volatility & bands, Oscillators & momentum

Markets

Gold

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Auto-adapt locks to chart TFbooltrueuseAuto
ATR Lengthint14atrLen
Base Trail x ATRfloat3.15baseMult
Volume-weighted sourcebooltrueuseVolSrc
VW lengthint12vwLen
Pre-smooth close EMA2booltruepreSmooth
Widen trail in chop xfloat1.35chopBoost
Enable early reverse pathbooltrueuseEarly
Fast Zero-Lag lengthint9fastZlLen
RSI Lengthint14rsiLen
RSI overboughtint68rsiOb
RSI oversoldint32rsiOs
Show all 40 settings
SettingTypeDefaultVariable
Min leg run x ATR before early flipfloat0.90earlyMinRun
Min bars in trade before early flipint5earlyMinBars
Early path confirm barsint2earlyConfirm
Min bars between flipsint7minBarsIn
Trail confirm closesint2confirmBarsIn
Min travel from last flip x ATRfloat0.95minTravelIn
Trail break buffer x ATRfloat0.10breakBuf
Strong reverse x ATRfloat1.55strongBrk
Efficiency filterbooltrueuseEff
Efficiency lookbackint8effLen
Min efficiencyfloat0.26effMin
ADX Lengthint14adxLen
Chop if ADX <float17.5adxChop
Require ADX floor trail pathbooltrueuseAdxMin
Min ADXfloat16.0adxMin
Enable HTF biasbooltrueuseHtf
Auto HTF from chart TFbooltrueautoHtf
HTF manualtimeframe15htfTfManual
HTF SuperTrend factorfloat3.1htfFactor
HTF ATRint14htfAtrLen
HTF modestringSofthtfMode
HMA slopebooltrueuseHma
HMA Length baseint48hmaLenIn
DI directionbooltrueuseDi
RSI side gate trail pathbooltrueuseRsiG
Decisive candlebooltrueuseBody
Extra confluence pointsint1needExtra
Show structure trailbooltrueshowTrail
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.

Similar Pine Scripts

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

Indicator v5 Oscillators & momentumTrend
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup - Ankush Bajaj Momentum Investing Setup
257 stars

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

Indicator v5 TrendVolatility & bands
Updated 6 weeks ago · None stated GitHub repository of SuperTrend ATR + RSI
114 stars

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

Indicator v4 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of ADX Strategy (original)

Moon Dev Lunar Sniper

by moondevonyt
92 stars

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

Indicator v6 TrendOscillators & momentum Repaints
Updated 2 months ago · Custom licence GitHub repository of Moon Dev Lunar Sniper
56 stars

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

Indicator v5 TrendMoving averages Repaints
Updated 4 months ago · None stated GitHub repository of Double Screened Decision
55 stars

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

Indicator v6 TrendVolatility & bands
Updated 6 months ago · Apache-2.0 GitHub repository of VibeTrader Signal System

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers