OPEN-SOURCE SCRIPT
AetherEdge - WaveTrend Oscillator Enhanced

🖊️ Overview
AetherEdge WaveTrend Enhanced is a next-generation momentum analysis engine that fully evolves the legendary LazyBear WaveTrend with adaptive zones, MTF integration, and 4-type divergence detection. By combining percentile/standard-deviation-based dynamic zones, higher-timeframe alignment checks, and a precision pivot-based divergence scanner, it transcends the limitations of fixed OB/OS levels to deliver a truly intelligent oscillator that auto-syncs with market rhythm.
🔶 Key Features
3 Zone Modes: Static / Adaptive (Percentile) / Dynamic (StDev)
4-Tier Zone Levels: OB/OS + OB/OS Extreme detection
MTF WaveTrend Integration: HTF directional alignment kills fakeouts
4-Type Divergence: Regular Bull/Bear + Hidden Bull/Bear
Precision Pivot Detection: Configurable left/right bars + distance filter
Zone-Restricted Divergences: Only OB/OS pivots for higher signal quality
Momentum Histogram: Two-stage color (acceleration/deceleration)
4 Signal Modes: WT Cross / Zone Cross / +MTF / Divergence Only
MTF Repaint Control: barmerge.lookahead toggle
Extreme Zone Visualization: Highlight dots in extreme territory
Integrated Dashboard: 14-row real-time state monitor
🧠 Technical Architecture
This indicator preserves LazyBear's original algorithm intact while layering a statistical adaptation engine and multi-context confirmation system on top.
WaveTrend Core:
esa = EMA(src, n1) — smooth baseline
d = EMA(|src - esa|, n1) — dispersion measure
ci = (src - esa) / (0.015 × d) — normalized channel index
tci = EMA(ci, n2) becomes WT1; SMA(tci, sigLen) becomes WT2
Adaptive Zone Engine:
Percentile mode: ta.percentile_nearest_rank computes 85/15/95/5 percentiles over N bars → auto-adapts to instrument-specific characteristics
StDev mode: mean ± stdev × multiplier for statistical outlier detection → theoretical thresholds assuming normal distribution
Static mode: Classic fixed levels (60/-60, 80/-80)
MTF Synchronization:
request.security fetches HTF WaveTrend
lookahead_off default prevents repaint
Alignment gate permits signals only when MTF agrees
Divergence Detection:
ta.pivothigh/low for confirmed pivots
Compares last two pivots (price vs WT)
Distance filter (min/max bars) eliminates noise pivots
Regular Bull: Lower price low + Higher WT low (reversal)
Hidden Bull: Higher price low + Lower WT low (continuation)
Regular Bear: Higher price high + Lower WT high (reversal)
Hidden Bear: Lower price high + Higher WT high (continuation)
Signal Synthesis Layer: 4 selectable modes + optional MTF agreement
⚙️ Recommended Settings & Tuning Guide
Crypto Defaults:
BTC (4H–1D): n1=10, n2=21, Percentile mode, MTF=1D (standard, strongest)
ETH (1H–4H): n1=9, n2=18, Percentile mode, MTF=4H
SOL (high-vol): StDev mode, multiplier=1.8/2.8 for extreme detection
XRP (range): Static mode 50/-50 for frequent signal capture
Zone Mode Selection:
Adaptive (Percentile): Universal across instruments (recommended default)
Dynamic (StDev): Statistical rigor, effective in trending markets
Static: Classic WT reproduction, validation/comparison
Signal Mode Selection:
WT Cross: Highest frequency, scalping
Zone Cross: Standard, day trading
Zone Cross + MTF Align: Highest accuracy, swing trading
Divergence Only: Reversal hunting, low frequency / high win rate
Tuning:
Too many signals: Enable MTF Align, set divZoneOnly=true
Too few signals: Loosen to obPct=80, osPct=20
Better divergence: divLBL/LBR=7, divRangeMin=8
💡 How to Use in Practice
OS Extreme + Regular Bull Div: Premier buy signal, consider full position
OB Extreme + Regular Bear Div: Premier sell signal
Hidden Divergence: Trend-continuation confirmation, pullback entries
MTF Aligned Bull + Zone Buy: HTF-aligned high-conviction long
Histogram Acceleration (▲▲ Accel): Momentum strengthening, hold positions
Histogram Deceleration (▲ Slow): Profit-taking preparation
AetherEdge Synergy:
SuperTrend Multi-Factor 3/3 Bull + WT Regular Bull Div = ultimate bottom
Self-Evolving S/R Grid strong support + WT OS Extreme = max-conviction reversal
Volume Profile POC + WT Zone Buy = institutional-sync entry
Multi-TF Strategy: Direction on 1D WT → wait zone on 4H WT → precision entry on 1H WT
⚠️ Important Notes
Pivot Lag: divLBR-bar delay inherent (no real-time detection)
Adaptive Zone Warmup: Unreliable below pctLookback bars
MTF Repaint: mtfRepaint=true causes backtest illusions; default off recommended
Divergence Overuse: Multiple firings in strong trends—never use standalone
Histogram Flip: Treat as early warning, not signal
Prolonged Extreme Stays: Avoid counter-trend trades during strong moves
🚨 Disclaimer
This indicator is a technical analysis tool provided for educational and research purposes only and does not constitute financial advice. Adaptive zones, MTF analysis, and divergence detection are statistical methods based on historical data and do not guarantee future profits. All trading decisions are made at your own risk and should be accompanied by proper risk management.
AetherEdge WaveTrend Enhanced is a next-generation momentum analysis engine that fully evolves the legendary LazyBear WaveTrend with adaptive zones, MTF integration, and 4-type divergence detection. By combining percentile/standard-deviation-based dynamic zones, higher-timeframe alignment checks, and a precision pivot-based divergence scanner, it transcends the limitations of fixed OB/OS levels to deliver a truly intelligent oscillator that auto-syncs with market rhythm.
🔶 Key Features
3 Zone Modes: Static / Adaptive (Percentile) / Dynamic (StDev)
4-Tier Zone Levels: OB/OS + OB/OS Extreme detection
MTF WaveTrend Integration: HTF directional alignment kills fakeouts
4-Type Divergence: Regular Bull/Bear + Hidden Bull/Bear
Precision Pivot Detection: Configurable left/right bars + distance filter
Zone-Restricted Divergences: Only OB/OS pivots for higher signal quality
Momentum Histogram: Two-stage color (acceleration/deceleration)
4 Signal Modes: WT Cross / Zone Cross / +MTF / Divergence Only
MTF Repaint Control: barmerge.lookahead toggle
Extreme Zone Visualization: Highlight dots in extreme territory
Integrated Dashboard: 14-row real-time state monitor
🧠 Technical Architecture
This indicator preserves LazyBear's original algorithm intact while layering a statistical adaptation engine and multi-context confirmation system on top.
WaveTrend Core:
esa = EMA(src, n1) — smooth baseline
d = EMA(|src - esa|, n1) — dispersion measure
ci = (src - esa) / (0.015 × d) — normalized channel index
tci = EMA(ci, n2) becomes WT1; SMA(tci, sigLen) becomes WT2
Adaptive Zone Engine:
Percentile mode: ta.percentile_nearest_rank computes 85/15/95/5 percentiles over N bars → auto-adapts to instrument-specific characteristics
StDev mode: mean ± stdev × multiplier for statistical outlier detection → theoretical thresholds assuming normal distribution
Static mode: Classic fixed levels (60/-60, 80/-80)
MTF Synchronization:
request.security fetches HTF WaveTrend
lookahead_off default prevents repaint
Alignment gate permits signals only when MTF agrees
Divergence Detection:
ta.pivothigh/low for confirmed pivots
Compares last two pivots (price vs WT)
Distance filter (min/max bars) eliminates noise pivots
Regular Bull: Lower price low + Higher WT low (reversal)
Hidden Bull: Higher price low + Lower WT low (continuation)
Regular Bear: Higher price high + Lower WT high (reversal)
Hidden Bear: Lower price high + Higher WT high (continuation)
Signal Synthesis Layer: 4 selectable modes + optional MTF agreement
⚙️ Recommended Settings & Tuning Guide
Crypto Defaults:
BTC (4H–1D): n1=10, n2=21, Percentile mode, MTF=1D (standard, strongest)
ETH (1H–4H): n1=9, n2=18, Percentile mode, MTF=4H
SOL (high-vol): StDev mode, multiplier=1.8/2.8 for extreme detection
XRP (range): Static mode 50/-50 for frequent signal capture
Zone Mode Selection:
Adaptive (Percentile): Universal across instruments (recommended default)
Dynamic (StDev): Statistical rigor, effective in trending markets
Static: Classic WT reproduction, validation/comparison
Signal Mode Selection:
WT Cross: Highest frequency, scalping
Zone Cross: Standard, day trading
Zone Cross + MTF Align: Highest accuracy, swing trading
Divergence Only: Reversal hunting, low frequency / high win rate
Tuning:
Too many signals: Enable MTF Align, set divZoneOnly=true
Too few signals: Loosen to obPct=80, osPct=20
Better divergence: divLBL/LBR=7, divRangeMin=8
💡 How to Use in Practice
OS Extreme + Regular Bull Div: Premier buy signal, consider full position
OB Extreme + Regular Bear Div: Premier sell signal
Hidden Divergence: Trend-continuation confirmation, pullback entries
MTF Aligned Bull + Zone Buy: HTF-aligned high-conviction long
Histogram Acceleration (▲▲ Accel): Momentum strengthening, hold positions
Histogram Deceleration (▲ Slow): Profit-taking preparation
AetherEdge Synergy:
SuperTrend Multi-Factor 3/3 Bull + WT Regular Bull Div = ultimate bottom
Self-Evolving S/R Grid strong support + WT OS Extreme = max-conviction reversal
Volume Profile POC + WT Zone Buy = institutional-sync entry
Multi-TF Strategy: Direction on 1D WT → wait zone on 4H WT → precision entry on 1H WT
⚠️ Important Notes
Pivot Lag: divLBR-bar delay inherent (no real-time detection)
Adaptive Zone Warmup: Unreliable below pctLookback bars
MTF Repaint: mtfRepaint=true causes backtest illusions; default off recommended
Divergence Overuse: Multiple firings in strong trends—never use standalone
Histogram Flip: Treat as early warning, not signal
Prolonged Extreme Stays: Avoid counter-trend trades during strong moves
🚨 Disclaimer
This indicator is a technical analysis tool provided for educational and research purposes only and does not constitute financial advice. Adaptive zones, MTF analysis, and divergence detection are statistical methods based on historical data and do not guarantee future profits. All trading decisions are made at your own risk and should be accompanied by proper risk management.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.