Indicator · Pine Script v6 · On the chart

Nexus Prime Engine v11 Final Old Logic Confirmed

by vedkanani123

An overlay always-in flip indicator where a buy closes a short and opens a long, and a sell does the reverse, committed only on confirmed bars.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv6current
Lines of code458
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

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.

Details

Published by

vedkanani123 on GitHub

Draws

On the price chart

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • Reads higher-timeframe data with lookahead on, so the history can show signals that were not there in real time

Settings

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

SettingTypeDefaultVariable
Auto-adapt parameters to chart timeframebooltrueuseAuto
ATR lengthint14atrLen
Base trail distance x ATRfloat3.15baseMult
Use volume-weighted source when volume existsboolfalseuseVolumeSource
Volume source lengthint12volumeSourceLen
Pre-smooth source with EMA 2booltruepreSmooth
Widen trail in range transition xfloat1.35chopTrailBoost
Minimum slow trend slope x ATRfloat0.04minSlopeAtr
Minimum fast/slow separation x ATRfloat0.12minSeparationAtr
Enable strict early-reverse pathbooltrueuseEarlyReverse
Fast zero-lag lengthint9fastZlemaLen
Slow zero-lag lengthint20slowZlemaLen
Show all 40 settings
SettingTypeDefaultVariable
RSI lengthint14rsiLen
Early short RSI levelfloat68.0rsiOverbought
Early long RSI levelfloat32.0rsiOversold
Minimum favorable leg x ATRfloat1.20earlyMinRunAtr
Minimum bars before early reverseint6earlyMinBars
Early reverse confirmation barsint3earlyConfirmBars
Minimum bars between flipsint8minBarsBetweenFlips
Trail-break confirmation closesint2trailConfirmBars
Minimum travel from last flip x ATRfloat1.00minTravelAtr
Trail break buffer x ATRfloat0.10trailBreakBufferAtr
Strong reverse distance x ATRfloat1.55strongReverseAtr
Use efficiency filterbooltrueuseEfficiency
Efficiency lookbackint10effLen
Minimum efficiencyfloat0.28effMin
Range efficiency thresholdfloat0.24effRangeEnter
Trend release efficiencyfloat0.34effTrendRelease
ADX/DMI lengthint14adxLen
Range entry ADXfloat17.5adxRangeEnter
Trend release ADXfloat20.0adxTrendRelease
Minimum ADX for normal flipsfloat18.0adxTrailMin
Minimum DMI spreadfloat3.0diSpreadMin
Choppiness lengthint14chopLen
Range choppinessfloat61.8chopRangeEnter
Trend release choppinessfloat55.0chopTrendRelease
ATR baseline lengthint50atrBaseLen
Pause new flips above ATR ratiofloat2.2pauseAtrRatio
Pause new flips above candle range x ATRfloat2.8shockRangeAtr
Pause new flips after abnormal gapbooltrueuseGapFilter
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 Trend scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

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

Compare brokers