OPEN-SOURCE SCRIPT

Vdubus Divergence Wave Pattern Generator V1

617
The Vdubus Divergence Wave Theory

10 years in the making & now finally thanks to AI I have attempted to put my Trading strategy & logic into a visual representation of how I analyse and project market using Core price action & MacD. Enjoy :)


A Proprietary Structural & Momentum Confluence SystemPart 1: The Strategic Concept1. The Core Philosophy: "Geometry + Physics"Traditional technical analysis often fails because traders confuse location with timing.Geometry (Price Patterns): Tells us WHERE the market is likely to reverse (e.g., at a resistance level or harmonic D-point).Physics (Momentum): Tells us WHEN the energy driving the trend has actually shifted. The Vdubus Theory posits that a trade should never be taken based on Geometry alone. A valid signal requires a specific, fractal decay in momentum—a "Handshake" between price structure and energy exhaustion.2. The 3-Wave Momentum Filter (The Engine)Most traders look for simple divergence (2 points). The Vdubus Theory demands a 3-Wave Structure to confirm the true state of the market.A. The Standard Reversal (Exhaustion)This is the "Safe" entry, catching the slow death of a trend.Wave 1 $\rightarrow$ 2 (The Warning): Price pushes higher, but momentum is lower (Standard Divergence). This signals that the trend is tapping the brakes.Wave 2 $\rightarrow$ 3 (The Confirmation): Price pushes to a final extreme (often a stop-hunt), but momentum is flat or lower than Wave 2 ("No Divergence").The Logic: This confirms that the buyers have expended all remaining energy. The engine is dead.

B. The Climax Reversal (The Trap)This is the "Aggressive" entry, catching V-shape reversals.Wave 1 $\rightarrow$ 2 (The Bait): Price pushes higher, and momentum is Stronger/Higher (No Divergence). This sucks in retail traders who believe the trend is accelerating.Wave 2 $\rightarrow$ 3 (The Snap): Price pushes again, but momentum suddenly collapses (Divergence).The Logic: A "Strong to Weak" shift. The market traps traders with a show of strength before hitting a "concrete wall" of limit orders.C. The Predator (The Trend Continuation)The Logic: Trends rarely move in straight lines. The "Predator" looks for Hidden Divergence during a pullback.The Signal: Price makes a Higher Low (Trend Structure Intact), but Momentum makes a Lower Low (Oversold Trap). This signals the end of the correction and the resumption of the main trend.3. The "Clean Path" PrincipleA trade is only valid if there is no opposing force. If you are looking to Sell (Bearish Reversal), the opposing Bullish momentum must be weak or neutral. If the "Enemy" is strong, the trade is skipped.

Part 2: The Indicator Breakdown
Tool Name: Vdubus Divergence Wave Pattern Generator V1

This script automates your analysis by combining ZigZag Pattern Recognition (Geometry) with your Custom MACD Logic (Physics).

1. The "Golden" Settings
The physics engine is tuned to your specific discovery:

Fast Length: 8

Slow Length: 21

Signal Length: 5

Lookback: 3 (Sensitive enough to catch the exact pivot points).

2. Signal Generation Logic
The indicator scans for four distinct setups. Here is the exact logic code translated into English:

Signal 1: Standard Reversal (Green/Red Pattern)
Geometry: The ZigZag algorithm identifies a 5-point structure (X-A-B-C-D), such as a Gartley, Bat, or Butterfly.

Physics Check:

Finds the last 3 momentum peaks matching the price highs.

Rule: Momentum Peak 2 must be < Peak 1 (Divergence).

Rule: Momentum Peak 3 must be <= Peak 2 (Confirmation/No Div).

Output: Draws the colored pattern and labels it (e.g., "Bearish Gartley (Exhaustion)").

Signal 2: Climax Reversal (Orange Pattern)
Geometry: Identifies the same 5-point structures.

Physics Check:

Rule: Momentum Peak 2 is >= Peak 1 (Strength/No Div).

Rule: Momentum Peak 3 is < Peak 2 (Sudden Failure/Div).

Output: Draws the pattern in Orange labeled "⚠️ CLIMAX REVERSAL". This is your "Trap" detector.

Signal 3: Rounded Top/Bottom (Navy/Maroon Label)
Geometry: Price is compressing or rounding over.

Physics Check:

Scans for 4 consecutive waves of momentum decay.

Rule: Peak 1 > Peak 2 > Peak 3 > Peak 4.

Output: Places a label indicating a "Multi-Wave Decay," identifying turns that don't have sharp pivots.

Signal 4: The Predator (Purple Pattern)
Geometry: Identifies a trend pullback (Higher Low for Buys).

Physics Check:

Rule: Momentum makes a Lower Low while Price makes a Higher Low (Hidden Divergence).

Output: Draws a Purple pattern labeled "🦖 PREDATOR" to signal trend continuation.

3. The Confluence Dashboard
Located in the corner of the screen, this provides a final "Safety Check."

Logic: It compares the absolute value (strength) of the most recent Bearish Momentum Peak vs. the most recent Bullish Momentum Low.

Output:

Green (Bulls Strong): Buying pressure is dominant. Safe to Buy, Dangerous to Sell.

Red (Bears Strong): Selling pressure is dominant. Safe to Sell, Dangerous to Buy.

Grey (Neutral): Forces are balanced.

Summary of Potential
This system solves the "Trader's Dilemma" of entering too early or too late. By waiting for the 3rd Wave, you effectively filter out the market noise and only commit capital when the opposing side has structurally and physically collapsed. It transforms trading from a guessing game into a disciplined execution of identifying Geometric Exhaustion.

Logic 1 / PREVIOUS DIVERGENCE PROJECTS future TREND BREAKS / Reversals *Not in script*
Logic 2 / Wave 1 to 2 = Divergence / Wave 2 to 3 = NO divergence = Signal
Reverse logic: Wave 1 to 2 = NO Divergence / Wave 2 to 3 = Divergence = Signal

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.