OPEN-SOURCE SCRIPT
AetherEdge - NEXUS Consensus Engine

🖊️ Overview
NEXUS is a consensus-driven signal engine in which six independent analytical mechanisms each cast a directional vote, firing BUY/SELL only when sufficient agreement is reached and statistical gates grant approval. Unlike conventional indicators where a single metric can misfire, no mechanism in NEXUS can trigger a signal on its own — a deliberate architecture engineered to structurally suppress false fires. Distribution-free prediction gates and a market-chaos meter continuously screen every vote through one lens: whether the current conditions justify trusting it at all.
🔶 Key Features
Six-mechanism weighted consensus: three directional voters, two statistical screening gates, and a fusion scoring engine
Multi-Scale Decomposition (M1): separates price into fast, mid, and slow frequency bands and measures cross-scale directional alignment
CUSUM Change-Point Detection (M2): a cumulative-sum control chart that captures the ignition of trend reversals with minimal lag
Conformal Prediction Gate (M3): distribution-free, statistically grounded screening that flags moves as in-distribution or anomalous to veto unreliable signals
Permutation-Entropy Meter (M4): Bandt–Pompe predictability measurement that suppresses signals when the market is too chaotic
Adaptive Momentum Core (M5): an RSI-style oscillator with volatility-adaptive overbought/oversold bounds
Optional higher-timeframe confirmation leveraging the v6 dynamic request engine
Cyberpunk visual core: neon glow, circuit traces, glitch HUD, pulsing signal nodes, and four selectable neon palettes
High-visibility markers: glowing labels offset away from price plus vertical neon ignition lines through the firing bar
🧠 Technical Architecture
At the core of NEXUS lies a two-tier separation between directional voting and statistical gating. Three mechanisms cast signed votes (−1 to +1). M1 normalizes the slopes of three exponential filters by ATR, then multiplies cross-band sign agreement by slope magnitude to produce a cross-scale alignment score. M2 standardizes log returns and runs a two-sided CUSUM control chart, detecting a structural break the moment cumulative deviation overcomes slack k and reaches threshold h, then resetting its accumulators to re-arm. M5 pairs RSI-style momentum with adaptive overbought/oversold bounds that expand and contract with realized volatility.
Above these directional votes, two statistical gates act as conviction modulators. M3 conformal prediction accumulates the residuals of a naive one-step forecast within a calibration window, adopts their empirical quantile as a "conformal radius," and dampens conviction whenever the current residual exceeds that radius — a statistically principled anomaly screen. M4 encodes each window of price action into an ordinal pattern (the rank ordering of its values), then computes the Shannon entropy of the pattern histogram normalized by log(d!). When entropy is high — meaning low order and poor predictability — the gate closes and signals are suppressed.
The consensus engine (M6) normalizes the weighted directional votes into a net vote, then modulates it by conformal in-distribution confidence and entropy-based predictability. A final fire demands the simultaneous satisfaction of every condition: the net vote magnitude must exceed the consensus threshold, a minimum number of mechanisms must agree on direction, the entropy gate must be open, the higher timeframe must concur (when enabled), and the cooldown must have elapsed. A signal is born only when multiple independent lines of evidence converge on a single point.
⚙️ Recommended Settings & Tuning Guide
NEXUS is tuned for crypto intraday trading on minute-to-hour timeframes. On liquid instruments like BTC and ETH, the defaults (Consensus Threshold 0.42, Minimum Agreeing Mechanisms 2, Chaos Gate 0.92) are a balanced starting point. On higher-volatility names such as SOL and XRP, lowering the Chaos Gate toward 0.85 narrows signals to more orderly conditions and stabilizes precision.
In strong trending regimes, raise the Consensus Threshold to 0.48–0.52 to capture only high-conviction signals; in ranging markets, where the M5 momentum contribution grows, lowering it toward 0.38 sharpens responsiveness. The M4 Entropy Window defaults to 60, but on very short timeframes a value near 40 balances computational load against responsiveness. If signals are too frequent, raise the Threshold and Cooldown; if too sparse, ease the Threshold and Chaos Gate.
💡 How to Use in Practice
The most reliable signals occur when the HUD shows AGREEMENT at 3/5 or higher with a strongly one-sided NET VOTE bar — multiple mechanisms independently endorsing the same direction. The standalone CUSUM "▴▾" ignition ticks serve as early warnings ahead of full consensus; when other mechanisms begin to follow, it is a cue to prepare. Signals arising while the HUD "chaos idx" is low (orderly) carry the highest confidence, whereas a "SHUT" gate is best respected by standing aside.
For multi-timeframe trading, enabling higher-timeframe confirmation to accept only signals aligned with the dominant trend sharply reduces counter-trend traps. In live use, treat NEXUS signals not as standalone triggers but as confirmation overlaid on volume profile and key support/resistance — prioritizing signals that fire at structural levels. When NEXUS lights up in the same direction as a support/resistance flip, the confluence is powerful.
⚠️ Important Notes
The M3 conformal gate and M4 entropy meter are not fully operational until their calibration and entropy windows have accumulated sufficient data; expect reduced reliability for the first several dozen to a hundred bars near the chart's left edge or on data-sparse instruments. By design, stacking five gates makes signals inherently selective — over-tightening the settings can produce extended silence. Because M4 permutation entropy performs iterative computation each bar, excessively large Entropy Window and Embedding Dimension values may approach the runtime limit. Fires on closed bars do not repaint history, but signal displays update on the in-progress bar.
🚨 Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial or investment advice. No signal guarantees future profit, and past performance does not indicate future results. All trading decisions are made at your own risk; please use this tool with sound risk management and your own independent verification.
NEXUS is a consensus-driven signal engine in which six independent analytical mechanisms each cast a directional vote, firing BUY/SELL only when sufficient agreement is reached and statistical gates grant approval. Unlike conventional indicators where a single metric can misfire, no mechanism in NEXUS can trigger a signal on its own — a deliberate architecture engineered to structurally suppress false fires. Distribution-free prediction gates and a market-chaos meter continuously screen every vote through one lens: whether the current conditions justify trusting it at all.
🔶 Key Features
Six-mechanism weighted consensus: three directional voters, two statistical screening gates, and a fusion scoring engine
Multi-Scale Decomposition (M1): separates price into fast, mid, and slow frequency bands and measures cross-scale directional alignment
CUSUM Change-Point Detection (M2): a cumulative-sum control chart that captures the ignition of trend reversals with minimal lag
Conformal Prediction Gate (M3): distribution-free, statistically grounded screening that flags moves as in-distribution or anomalous to veto unreliable signals
Permutation-Entropy Meter (M4): Bandt–Pompe predictability measurement that suppresses signals when the market is too chaotic
Adaptive Momentum Core (M5): an RSI-style oscillator with volatility-adaptive overbought/oversold bounds
Optional higher-timeframe confirmation leveraging the v6 dynamic request engine
Cyberpunk visual core: neon glow, circuit traces, glitch HUD, pulsing signal nodes, and four selectable neon palettes
High-visibility markers: glowing labels offset away from price plus vertical neon ignition lines through the firing bar
🧠 Technical Architecture
At the core of NEXUS lies a two-tier separation between directional voting and statistical gating. Three mechanisms cast signed votes (−1 to +1). M1 normalizes the slopes of three exponential filters by ATR, then multiplies cross-band sign agreement by slope magnitude to produce a cross-scale alignment score. M2 standardizes log returns and runs a two-sided CUSUM control chart, detecting a structural break the moment cumulative deviation overcomes slack k and reaches threshold h, then resetting its accumulators to re-arm. M5 pairs RSI-style momentum with adaptive overbought/oversold bounds that expand and contract with realized volatility.
Above these directional votes, two statistical gates act as conviction modulators. M3 conformal prediction accumulates the residuals of a naive one-step forecast within a calibration window, adopts their empirical quantile as a "conformal radius," and dampens conviction whenever the current residual exceeds that radius — a statistically principled anomaly screen. M4 encodes each window of price action into an ordinal pattern (the rank ordering of its values), then computes the Shannon entropy of the pattern histogram normalized by log(d!). When entropy is high — meaning low order and poor predictability — the gate closes and signals are suppressed.
The consensus engine (M6) normalizes the weighted directional votes into a net vote, then modulates it by conformal in-distribution confidence and entropy-based predictability. A final fire demands the simultaneous satisfaction of every condition: the net vote magnitude must exceed the consensus threshold, a minimum number of mechanisms must agree on direction, the entropy gate must be open, the higher timeframe must concur (when enabled), and the cooldown must have elapsed. A signal is born only when multiple independent lines of evidence converge on a single point.
⚙️ Recommended Settings & Tuning Guide
NEXUS is tuned for crypto intraday trading on minute-to-hour timeframes. On liquid instruments like BTC and ETH, the defaults (Consensus Threshold 0.42, Minimum Agreeing Mechanisms 2, Chaos Gate 0.92) are a balanced starting point. On higher-volatility names such as SOL and XRP, lowering the Chaos Gate toward 0.85 narrows signals to more orderly conditions and stabilizes precision.
In strong trending regimes, raise the Consensus Threshold to 0.48–0.52 to capture only high-conviction signals; in ranging markets, where the M5 momentum contribution grows, lowering it toward 0.38 sharpens responsiveness. The M4 Entropy Window defaults to 60, but on very short timeframes a value near 40 balances computational load against responsiveness. If signals are too frequent, raise the Threshold and Cooldown; if too sparse, ease the Threshold and Chaos Gate.
💡 How to Use in Practice
The most reliable signals occur when the HUD shows AGREEMENT at 3/5 or higher with a strongly one-sided NET VOTE bar — multiple mechanisms independently endorsing the same direction. The standalone CUSUM "▴▾" ignition ticks serve as early warnings ahead of full consensus; when other mechanisms begin to follow, it is a cue to prepare. Signals arising while the HUD "chaos idx" is low (orderly) carry the highest confidence, whereas a "SHUT" gate is best respected by standing aside.
For multi-timeframe trading, enabling higher-timeframe confirmation to accept only signals aligned with the dominant trend sharply reduces counter-trend traps. In live use, treat NEXUS signals not as standalone triggers but as confirmation overlaid on volume profile and key support/resistance — prioritizing signals that fire at structural levels. When NEXUS lights up in the same direction as a support/resistance flip, the confluence is powerful.
⚠️ Important Notes
The M3 conformal gate and M4 entropy meter are not fully operational until their calibration and entropy windows have accumulated sufficient data; expect reduced reliability for the first several dozen to a hundred bars near the chart's left edge or on data-sparse instruments. By design, stacking five gates makes signals inherently selective — over-tightening the settings can produce extended silence. Because M4 permutation entropy performs iterative computation each bar, excessively large Entropy Window and Embedding Dimension values may approach the runtime limit. Fires on closed bars do not repaint history, but signal displays update on the in-progress bar.
🚨 Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial or investment advice. No signal guarantees future profit, and past performance does not indicate future results. All trading decisions are made at your own risk; please use this tool with sound risk management and your own independent verification.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.