OPEN-SOURCE SCRIPT

Wave Dynamics - Neural Adaptive Engine

651
🌊 WAVE DYNAMICS - NEURAL ADAPTIVE ENGINE
The Official Reference Manual & Trading Protocol
═════════════════════════════════════════════════════════════

📖 PREFACE: THE END OF STATIC ANALYSIS

The financial markets are not linear; they are fractal. They do not move in straight lines; they breathe. They expand in trending volatility and contract in chopping noise.
The fundamental failure of traditional technical analysis is Static Sensitivity.

• A 14-period RSI works beautifully in a range but fails in a trend.
• A 12,26 MACD captures trends but destroys capital in chop.

Wave Dynamics solves this by treating the market as a living organism. At its core is a Neural Adaptive Engine that calculates the Hurst Exponent (Fractal Dimension) in real-time. It measures the "roughness" of price action and automatically adjusts the lookback periods of every subsystem—Waves, Ribbons, and Oscillators—to match the current market regime.
This manual is your guide to navigating this adaptive framework.

PART 1: THEOLOGY & MARKET PHYSICS
To use this tool, you must understand the three pillars of its logic:

1. The Hurst Exponent (Chaos Theory)
The engine continuously calculates H (Hurst) on a rolling window.

Persistent Regime (H > 0.5): "What is happening now is likely to continue." The market is trending. The Engine Tightens sensitivity to catch fast pullbacks.

Anti-Persistent Regime (H < 0.5): "What is happening now is likely to reverse." The market is chopping/ranging. The Engine Widens sensitivity to filter out noise and stop runs.

2. The Elliott Wave Cycle (Crowd Psychology)
Price moves in 5-wave motive sequences followed by corrections.
Waves 1 & 3: Institutional Accumulation/Mark-up.
Waves 2 & 4: Profit Taking (The Pullback). These are the only safe entry points.
Wave 5: Retail FOMO (The Trap). Identified by Momentum Divergence.

3. Smart Money Concepts (Liquidity)
Price moves from liquidity to liquidity.
Order Blocks: Where institutions initiated the move.
Breakers: Where institutions trapped traders (Support flips to Resistance).
Fair Value Gaps: Where price moved too fast, leaving inefficiency.

PART 2: VISUAL INTELLIGENCE (COLOR THEORY)

The chart communicates instantly through a strict color-coded language.
🎨 THE RIBBON (Adaptive Equilibrium)
The background "Cloud" is an Adaptive EMA ribbon.
Neon Green (#00FF88): Bullish Trend. Only look for Longs. Price is above the equilibrium mean.
Neon Red (#FF3366): Bearish Trend. Only look for Shorts. Price is below the equilibrium mean.
Grey/Narrow: Compression. The market is deciding. Do not trade inside a grey ribbon.

🎨 INSTITUTIONAL ZONES
Green/Red Boxes (Order Blocks): Standard Support/Resistance. Valid entry zones, but lower probability.
Vivid Purple Boxes (#9C27B0) - THE BREAKER: CRITICAL. This appears when a Green Order Block is smashed through by price. It turns Purple to signify it has flipped from Support to Resistance (or vice versa). A retest of a Purple Zone is the highest probability setup in the system.
Dotted Outlines (FVG): Magnets. Do not place stops inside these; price will likely travel through them.

🎨 WAVE ANATOMY
Cyan Lines: Valid Impulse Waves (1, 3, 5).
Orange Lines/Dots: EXHAUSTION. If a wave line turns Orange, Angular Momentum is decaying. The trend is dying.
Diamonds (◆): DIVERGENCE. Price made a Higher High, but the internal oscillator (MPI) made a Lower Low. Immediate reversal warning.

🎨 SIGNALS
Triangles: Confirmed Entries. (Green = Long, Red = Short).
Labels (e.g., A+): The Grade of the trade based on Confluence.
A+: Perfect Confluence (Trend + Structure + Zone + Momentum).
C: Counter-trend or Weak.

PART 3: THE DASHBOARD ECOSYSTEM
Three panels provide Total Situational Awareness. You must read them in order: Top Right → Bottom Left → Bottom Right.

1. MISSION CONTROL (Top Right)
This panel tells you the "Weather Report."
Neural Status:
🧠 TREND: Safe to trade breakout and trend-following strategies.
🧠 CHOP: Danger. Use mean-reversion or stay out.
🧠 RND (Random): No clear edge.
Phase: Displays the Bias (Bull/Bear) and Strength. "WEAK BEARISH" usually signals a bottom is forming.
Score Bar: A live visual meter of the Confluence Score (0-100%).

2. THE ASSISTANT (Bottom Left)
This panel acts as your co-pilot, translating data into English.
Situation:
"💎 BULL GEM": You are in a range, at the bottom, showing exhaustion. Buy immediately.
"🔥 COMPRESSION": Volatility squeeze. A violent move is imminent.
Action: Tells you exactly what to do (e.g., "Wait for confluence," "Trail Stop," "Let it develop").
Pro Metrics (Simulated):
Win Rate: The percentage of signals on the current visible chart that hit Target 1.
Profit Factor: Gross Win / Gross Loss. If this is < 1.0, stop trading this asset immediately.
Buckets: Shows the win rate of A-Grade signals vs. C-Grade signals.

3. WAVE INTELLIGENCE (Bottom Right)
This panel provides structural context.
Channel Gauge (0-100%):
0-20%: Oversold / Channel Bottom.
80-100%: Overbought / Channel Top.
50%: Equilibrium.
W3/W1 Ratio: The "Health Check" of the trend.
< 1.0: Weak. Wave 3 is shorter than Wave 1. The trend is struggling.
> 1.618: Extended. The move is parabolic. Expect a snap-back.
Trend Health (0-100): Composite score of sub-wave physics. If Health < 30, the trend is effectively dead.

PART 4: PARAMETER OPTIMIZATION (THE INPUTS)
Every input allows you to tune the engine. Here is the deep dive:

🧠 NEURAL ADAPTIVE ENGINE
Enable Neural Adaptive Engine: Master switch for the Hurst calculation.
Hurst Period (100):
Adjustment: Increase to 200 for Crypto/Alts (too much noise). Decrease to 50 for

Forex/Indices (need speed).
How to tell: If the dashboard says "TREND" but the chart is sideways, INCREASE this value.
Min/Max Lookback: Defines the constraints. Only adjust if you are an advanced user creating a custom scalping setup (e.g., Min 3 / Max 10).

🌊 WAVE & STRUCTURE
Base Swing Detection (8): The "Anchor."
Scalpers (1m-5m): Set to 5-8.
Swing Traders (1H-4H): Set to 15-20.
Min Wave Size (ATR): Prevents the script from labeling tiny wicks as waves. Increase this during high-volatility news events.

🔗 MTF STRUCTURE MAPPING
Require Macro Align: Strict Mode. If enabled, the script checks the Higher Timeframe (e.g., 4H). If 4H is Bearish, it BLOCKS all Long signals on the 5m chart. Use this to prevent counter-trend losses.

🏦 SMART MONEY CONCEPTS
Enable Breakers: ALWAYS ON. This turns failed Order Blocks into Breaker Zones (Purple).
Institutional Mode: ULTRA STRICT. If enabled, signals will ONLY fire if price is physically touching an Order Block, FVG, or Breaker. This creates very few, very high-quality signals.

🎯 SIGNAL ENGINE
Signal Mode:
Strict: Grades A+ and A only.
Balanced: Grades B and above.
Aggressive: Includes counter-trend scalps (Grade C).
Min Confluence Score (5-35): The raw points needed to trigger. 5 is standard. 10 is conservative.

PART 5: TRADE EXECUTION PLAYBOOKS

PLAYBOOK A: THE "BREAKER RETEST" (Highest Probability)
1. Context: Ribbon is Green.
2. Event: Price creates a Red Order Block, then smashes upward through it.
3. Change: The Red Block turns Purple (Bullish Breaker).
4. Trigger: Price pulls back down to touch the top of the Purple Box.
5. Signal: Green Triangle appears.
6. Action: Max Size Entry. Stop Loss below the Purple Box. Target Wave 3 Projection.

PLAYBOOK B: THE "WAVE 4 DIP" (Trend Following)
1. Context: Wave count shows "3". Ribbon is Green.
2. Event: Price pulls back towards the Ribbon.
3. Wave Panel: Wave count flips to "4".
4. Trigger: Price touches Ribbon, prints Green Triangle.
5. Action: Standard Size Entry. Stop Loss at Swing Low. Target New High (Wave 5).

PLAYBOOK C: THE "HIDDEN GEM" (Range Reversal)
1. Context: Ribbon is Grey (Consolidation). Neural Status is CHOP.
2. Wave Panel: Channel Gauge is < 10% (Extreme Bottom).
3. Visuals: Orange Exhaustion Dot + Divergence Diamond (◆).
4. Assistant: Reads "💎 BULL GEM".
5. Action: Half Size Entry. This is a counter-trend trade. Target the middle of the range (50% Channel).

PLAYBOOK D: THE "BULL TRAP" (When to Fold)
1. Context: Wave Count is "5".
2. Wave Panel: Trend Health < 30. W3/W1 Ratio > 1.618 (Extended).
3. Visuals: Orange Line appears on price high.
4. Signal: Green Triangle appears (Grade C).
5. Action: NO TRADE. The system is warning you that even though a signal fired, the structural physics indicate exhaustion.

PART 6: GRADING & SCORING MATRIX

Every signal is graded on a 35-point scale. Know what you are buying.
Trend Alignment (5 pts): Ribbon & HTF agreement.
Structure (5 pts): BOS (Break of Structure) & Higher Highs.
Physics (5 pts): MPI (Volume Flow) & Angular Velocity.
Institutional Location (10 pts):
• Inside Order Block: +3 pts
• Inside Breaker: +4 pts
• Wave 2/4 Pullback: +3 pts
Penalty: Wave 5 Extension (-3 pts).
Grade Scale:

A+ (Score ≥ 70%): "All In" Setup.
A (Score 55-69%): Strong Setup.
B (Score 40-54%): Standard Setup.
C (Score < 40%): Dangerous.

PART 7: RISK DISCLOSURE & LIMITATIONS

1. The Reality of Adaptation (Redrawing):
The Neural Engine is dynamic. As new data arrives, the calculation of "Chaos" changes. This means historical channel lines or wave labels may shift to fit the matured trend. HOWEVER: Entry Signals (Triangles) NEVER repaint once the bar is closed.
2. Simulation vs. Reality:
The Dashboard metrics (Win Rate, Profit Factor) are Simulations run on the historical data visible on your chart. They do not account for spread, slippage, or liquidity. They are a tool to gauge the current market personality, not a promise of future returns.
3. No Financial Advice:
Wave Dynamics is a tool for structural analysis. It helps you see the market, but it cannot trade for you. You are responsible for your own risk management.

CLOSING THOUGHTS

Wave Dynamics is not just an indicator; it is a lens. It allows you to see the market not as a random walk of candles, but as a structured, breathing entity.
Trust the Neural Status. Respect the Breakers. Fear the Exhaustion.

Taking you to school. — Dskyz, Trade with insight. Trade with anticipation.

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.