Strategy · Pine Script v6 · Own pane

TeleNexus Sovereign MA Relationship V6

by raybird

The TeleNexus Sovereign MA Relationship V6 is a Pine Script v6 strategy that evaluates price relationship to a selected moving-average family through six scored dimensions: trend quality, respect, extension, compression, acceleration, and exhaustion.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code716
Settings40inputs
LicenceNone stated
Last update2 months ago15 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 strategy, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.

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

These dimensions produce a Relationship Oscillator and state engine for regime classification. The strategy signals trend-following entries via Pullback Dip-Buy and Compression Release events, gated on established quality trends, with exits using ATR trailing stops anchored to the reference MA, volatility-spike exits, and break-even. It draws all diagnostics and signals in a separate pane. Inputs allow changing MA type, lengths, quality thresholds, cooldowns, and event filters. It processes on closed bars with no pyramiding and no lookahead.

Details

Published by

raybird on GitHub

Type

Strategy, Pine Script v6

Draws

Separate pane below the chart

Category

Trend, Oscillators & momentum, Moving averages

Markets

Any symbol

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
MA familystringEMAmaTypeInput
MA lengthint50maLengthInput
SourcesourceclosesourceInput
ALMA offsetfloat0.85almaOffsetInput
Sigmafloat6.0almaSigmaInput
ATR lengthint14atrLengthInput
MA slope lookbackint10slopeLengthInput
Full slope strength (ATR)float0.50fullSlopeAtrInput
Direction persistenceint20persistenceLengthInput
Price efficiency lookbackint14efficiencyLengthInput
Statistical referenceint100statisticsLengthInput
Normal extension (ATR)float0.75extensionNormalAtrInput
Show all 40 settings
SettingTypeDefaultVariable
Extremefloat2.50extensionExtremeAtrInput
MA interaction zone (ATR)float0.35proximityAtrInput
Respect sample lookbackint80respectLookbackInput
Outcome barsint4respectResponseBarsInput
Compression lookbackint20compressionLengthInput
Band (ATR)float0.45compressionBandAtrInput
Acceleration lookbackint5accelerationLengthInput
Exhaustion lookbackint8exhaustionLengthInput
Only confirm events on closed barsbooltrueconfirmedOnlyInput
Signal cooldownint8signalCooldownInput
Minimum trend qualityfloat55.0minimumTrendInput
Minimum respectfloat55.0minimumRespectInput
Pullback prior extension (ATR)float0.70pullbackPriorExtensionInput
Maximum pullback exhaustionfloat65.0maximumPullbackExhaustionInput
Momentum acceleration thresholdfloat60.0accelerationThresholdInput
Compression thresholdfloat65.0compressionThresholdInput
Do-not-chase extensionfloat75.0chaseExtensionThresholdInput
Exhaustion warningfloat68.0exhaustionThresholdInput
Relationship-break confirmationint3breakConfirmationInput
Divergence pivot bars (left)int5divergencePivotLeftInput
Rightint5divergencePivotRightInput
Extreme lookbackint30turnLookbackInput
Extreme levelfloat55.0turnExtremeLevelInput
Turn confirmation barsint3turnConfirmBarsInput
Show selected MA in price chartbooltrueshowMaInput
Show event markers in price chartbooltrueshowPriceMarkersInput
Show event markers in oscillatorbooltrueshowPaneMarkersInput
Create event tooltip labelsbooltrueshowEventTooltipsInput
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

330 stars

MACD + Divergences [Alorse] is a momentum strategy that calculates the MACD oscillator and identifies regular and hidden divergences using pivot high and low points. It filters trade signals with dual Exponential Moving Averages (EMA 150 and 600) to ensure tra

Strategy v4 Oscillators & momentumDivergence Repaints
Updated 2 months ago · None stated GitHub repository of MACD + Divergences [Alorse]

MACD Crossover (tutorial)

by pineforge-4pass
193 stars

This strategy calculates the Moving Average Convergence Divergence indicator and plots the MACD line, signal line, and histogram in a separate pane. It enters long positions when the MACD line crosses above the signal line and enters short positions when it cr

Strategy v6 Oscillators & momentumMoving averages
Updated today · Apache-2.0 GitHub repository of MACD Crossover (tutorial)

ADX Strategy

by hasnocool
106 stars

An ADX-based trend-following strategy that enters long positions when the positive directional indicator (DI+) crosses above the Average Directional Index (ADX) while ADX remains below a preset threshold and a fast EMA is above a slow EMA. It allows adding to

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of ADX Strategy

EMA Ribbon MACD

by iamrichardD
57 stars

This strategy combines an EMA ribbon with MACD confirmation and plots in a separate pane. It enters when ribbon alignment, optional MACD zero or signal crosses, volume, smart-money, and multi-timeframe filters agree, then exits with percentage stop loss and ta

Strategy v6 TrendMoving averages
Updated 1 year ago · Apache-2.0 GitHub repository of EMA Ribbon MACD

This strategy evaluates the dynamic relationship between price and a chosen moving average across six diagnostic dimensions: trend, respect, extension, compression, acceleration, and exhaustion. It plots a normalized relationship oscillator bounded between -10

Strategy v6 TrendMoving averages
Updated yesterday · MIT GitHub repository of Market–Average Relationship Engine [WavesUnchained]
7 stars

This strategy combines the Moving Average Convergence Divergence oscillator with an Exponential Moving Average trend filter. It enters long positions when the MACD histogram crosses above zero while price stays above the long-term EMA filter. Long trades close

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · MPL-2.0 GitHub repository of MACD EMA Filter Strategy

More strategys

Trade Your Charts With a Regulated Broker

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

Compare brokers