OPEN-SOURCE SCRIPT

[ A L P H A X ] Elliott Wave Detection & Fibonacci Golden Zone

20 752
AlphaX Wave – Elliott Wave Detection, Fibonacci Golden Zone Mapping, Multi-Confluence Scoring & Smart SL/TP System

AlphaX Wave is a professional-grade Elliott Wave analysis and trade signal system built on a proprietary multi-engine architecture that fuses automated wave counting, Fibonacci golden zone projection, multi-factor momentum scoring, and structure-based stop loss and target placement into a single cohesive tool. It identifies impulse wave patterns (waves 1–5), detects corrective ABC structures, projects Fibonacci retracement zones, scores trade setups across eight independent confluence factors, and generates graded entry signals with intelligent SL/TP levels derived from swing structure, Fibonacci levels, and wave projections. Designed for traders who use Elliott Wave theory as their primary framework on instruments like XAUUSD, indices, forex majors, and crypto.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🔬 The Wave Engine — How It Works

At the core of AlphaX Wave is an automated Elliott Wave detection algorithm that identifies the classical 5-wave impulse structure and 3-wave corrective patterns in real-time. Unlike manual wave counting, this engine applies strict mathematical validation rules derived from Elliott Wave theory to ensure only structurally valid patterns are labeled.

Impulse Wave Detection (Waves 1–5)

The engine uses a rolling buffer of confirmed swing highs and swing lows detected via a configurable pivot lookback. When at least three swing highs and three swing lows are available, the engine tests them against the following Elliott Wave rules:

  • Wave 2 must not retrace beyond the start of Wave 1 — validated by checking that the second swing low remains above the first swing low (bullish) or below the first swing high (bearish)
  • Wave 3 must not be the shortest impulse wave — validated by comparing the Wave 3 range to at least 70% of the Wave 1 range
  • Wave 4 must not overlap into Wave 1 territory — validated by checking that the Wave 4 low stays above the Wave 2 low (bullish) or Wave 4 high stays below the Wave 2 high (bearish)
  • Wave 2 retracement must be between 15% and 95% of Wave 1 — filters out patterns that are too shallow or too deep
  • Wave 4 retracement must be between 10% and 90% of Wave 3 — ensures proper proportionality
  • Temporal ordering must be correct — all six pivot points must occur in strict chronological sequence
  • Wave 5 must exceed Wave 3's high (bullish) or undercut Wave 3's low (bearish) — confirms the impulse completed with a new extreme


When all rules pass simultaneously, the engine marks the complete 1–5 impulse structure on the chart with numbered labels and connecting wave lines. Wave 3 and Wave 5 receive larger, brighter labels because they represent the highest-momentum phases of the impulse.

Corrective Wave Detection (ABC Pattern)

After an impulse completes, the engine monitors for corrective price action:

  • For a completed bullish impulse — the engine watches for a pullback that retraces between 20% and 72% of the impulse range, indicating an ABC correction is forming
  • For a completed bearish impulse — the engine watches for a bounce that retraces between 20% and 72% of the impulse range
  • The correction must originate after Wave 5 completes — ensures proper sequence
  • A configurable cooldown prevents multiple correction labels from firing on the same structure


Corrective zones are particularly valuable because they represent potential entry opportunities in the direction of the prior impulse trend — the market is pulling back within a larger trend structure.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📐 Fibonacci Golden Zone System

When an impulse wave completes, the engine automatically projects Fibonacci retracement levels across the entire impulse range:

  • 38.2% Retracement — the shallowest institutional retracement level
  • 50.0% Retracement — the equilibrium midpoint of the impulse
  • 61.8% Retracement — the golden ratio level, highest-probability reversal zone


The area between the 38.2% and 61.8% levels forms the Golden Zone — a shaded box that represents the highest-probability area for the corrective wave to terminate and the trend to resume. This is where institutional traders typically place their limit orders.

The Golden Zone system includes intelligent lifecycle management:

  • Zones automatically expire after a configurable maximum age (default 80 bars)
  • Zones are removed when price closes significantly beyond them (1.5 ATR past the zone boundary) — indicating the zone has been invalidated
  • Maximum active zones are capped (configurable) to keep the chart clean
  • The indicator tracks whether price is currently inside a bullish or bearish Golden Zone — this information feeds directly into the confluence scoring engine


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📊 Wave 3 Setup Detection

Wave 3 is traditionally the strongest and longest wave in Elliott Wave theory. AlphaX Wave includes a dedicated Wave 3 Setup Scanner that identifies potential Wave 3 initiations in real-time:

  • Detects when price has completed a valid Wave 1 (impulse move) followed by a Wave 2 (pullback between 15% and 90% of Wave 1)
  • Confirms the pullback low remains above the Wave 1 starting point (bullish) or below it (bearish) — validating the wave structure
  • Requires a directional confirmation candle (close above prior high for bullish, close below prior low for bearish)
  • Marked with small purple triangles — ▲ below bar for bullish Wave 3 setups, ▼ above bar for bearish


Wave 3 setups are among the highest-probability trade entries in all of technical analysis because they align with the strongest phase of the impulse trend.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🧠 8-Factor Confluence Scoring Engine

Every potential trade signal is evaluated across eight independent confluence factors. Each factor scores either 0 or 1 point, producing a confluence score from 0 to 8. Only signals meeting your configured minimum confluence threshold are displayed.

Factor 1 — Wave 3 Setup (W3)
  • Is a valid Wave 3 initiation pattern present?
  • This is the single most powerful factor — Wave 3 moves are the strongest in Elliott theory


Factor 2 — ABC Correction Zone (ABC)
  • Is the market currently in a corrective phase following a completed impulse?
  • Corrections within trends offer the best risk/reward entries


Factor 3 — Price in Fibonacci Golden Zone (FIB)
  • Is price currently inside an active Golden Zone box (between 38.2% and 61.8% retracement)?
  • Golden Zone entries have institutional backing


Factor 4 — Price at Specific Fibonacci Level (FLV)
  • Is price at or near the 38.2%, 50.0%, or 61.8% retracement level specifically?
  • Precision Fibonacci entries add edge beyond just being "in the zone"


Factor 5 — Momentum Alignment (MOM)
  • Are RSI slope, MACD direction, MACD histogram momentum, and Stochastic all aligned in the signal direction?
  • Requires at least 2 of 5 momentum sub-factors to confirm


Factor 6 — RSI Divergence (DIV)
  • Is a confirmed RSI divergence present (price makes new low but RSI makes higher low, or vice versa)?
  • Divergence is one of the most reliable reversal confirmation signals


Factor 7 — Volume Confirmation (VOL)
  • Is current volume above the moving average with a candle closing in the signal direction?
  • Volume validates institutional participation in the move


Factor 8 — EMA Trend Alignment (EMA)
  • Are the Fast (21), Medium (50), and Slow (200) EMAs properly stacked in the signal direction?
  • Or is price at least above/below the 200 EMA with Fast above/below Medium?


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📊 Confidence Scoring & Grade System

Beyond the 8-factor confluence count, each signal receives a weighted confidence score from 0 to 100% that reflects the quality and strength of the setup:

Wave Structure (up to 22 points)
  • Wave 3 Setup present = 22 points (highest single contributor)
  • ABC Correction active = 12 points


Fibonacci Alignment (up to 22 points)
  • Price inside Golden Zone = 15 points
  • Price at 61.8% level = 7 points, at 50.0% = 5 points, at 38.2% = 4 points


Momentum Confirmation (up to 23 points)
  • Momentum aligned (2+ sub-factors) = 12 points
  • Strong momentum (4+ sub-factors) = additional 6 points
  • MACD crossover on signal bar = 5 points


RSI Analysis (up to 14 points)
  • RSI divergence confirmed = 10 points
  • RSI slope in ideal range = 4 points
  • RSI already at opposite extreme (penalty) = -5 points


Volume & Trend (up to 20 points)
  • Volume above average + directional candle = 5 points
  • Volume spike + directional candle = 3 points
  • Full EMA alignment (Fast > Medium > Slow or reverse) = 8 points
  • Cloud direction confirmed = 4 points


Signals are classified into grades based on the final confidence score:

  • A+ Grade (70%+) — Exceptional setup. Maximum confluence across wave structure, Fibonacci, momentum, and trend.
  • A Grade (55–69%) — High-quality setup. Most major factors aligned.
  • B Grade (40–54%) — Solid setup. Core conditions met with moderate confirmation.
  • C Grade (25–39%) — Marginal setup. Basic conditions met but weaker confirmation. Hidden by default.
  • D Grade (below 25%) — Weak setup. Minimal confluence. Hidden by default.


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📊 Signal Labels — What They Show

Each entry signal label displays comprehensive information in a compact format:

  • Direction — ▲ LONG or ▼ SHORT with spaced lettering
  • Grade — A+, A, B, C, or D classification
  • Confidence Percentage — The weighted score from the confidence engine
  • Confluence Count — How many of the 8 factors are active (e.g., 5/8)
  • Active Factor Checklist — Shows exactly which factors contributed: ✓W3 ✓ABC ✓FIB ✓FLV ✓MOM ✓DIV ✓VOL ✓EMA


Label colors follow the grade system:

  • Bull signals — Bright green (A+), Primary green (A), Dim green (B), Neutral gray (C/D). All use dark text for readability.
  • Bear signals — Bright red (A+), Primary red (A), Dim red (B), Neutral gray (C/D). All use white text for readability.


A thin dotted line connects the signal label to the price bar, keeping the label offset from price action to avoid chart clutter.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 Smart SL/TP System — Structure-Based Risk Management

Every entry signal automatically generates three trade management levels — Stop Loss, Target 1, and Target 2 — using a multi-source calculation engine that prioritizes structural price levels over arbitrary ATR multiples.

Stop Loss Calculation

The SL engine searches for the optimal stop placement using this priority cascade:

  • Nearest swing structure — Finds the closest confirmed swing low (for longs) or swing high (for shorts) within a 50-bar lookback. Places the SL beyond this level with ATR padding.
  • ATR floor and cap — Ensures the SL is never too tight (70% of base ATR multiple) or too wide (180% of base ATR multiple) regardless of swing structure.
  • Confidence modifier — Higher-grade signals receive tighter stops (0.85× for A+, 0.92× for A, 1.0× for B, 1.15× for C/D). This reflects the higher-probability nature of strong setups.


Target 1 Calculation

TP1 represents the conservative take-profit level:

  • Nearest opposing swing — Searches for the closest swing high above entry (longs) or swing low below entry (shorts) that provides at least 1.2× the SL distance.
  • Fibonacci level targeting — If an active Fibonacci zone has a 38.2% or 50.0% level above/below entry that provides better targeting than the swing level, the Fib level is used.
  • Minimum R:R enforcement — TP1 is guaranteed to provide at least the configured ATR multiple (default 2.5×) of risk-reward.


Target 2 Calculation

TP2 represents the extended profit target:

  • Wave-based projection — If an impulse wave is active, TP2 is calculated as 61.8% of the total impulse range — representing the typical next-wave target.
  • Far swing structure — Searches for swing levels further than TP1 that provide at least 1.3× the TP1 distance.
  • Fibonacci extension — If the 61.8% Fibonacci level provides a target beyond TP1, it is used as TP2.
  • Minimum spacing — TP2 is guaranteed to be at least 1.5× the TP1 distance from entry.


Break-Even Protection

When TP1 is hit, the system automatically adjusts the Stop Loss to the entry price (break-even). The SL label changes to "BE" with a neutral color, visually confirming that the trade is now risk-free on the remaining position targeting TP2.

Hit Tracking

All SL/TP levels are tracked in real-time:

  • When a level is hit, the label changes color — red fill for SL hits, green fill for TP hits
  • SL hits are processed first — if the SL is hit, TP levels for that trade are no longer tracked
  • TP1 must be hit before TP2 tracking activates the break-even mechanism
  • Historical SL/TP groups are automatically trimmed to keep the chart clean (configurable history count)


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📐 Trend Context Layer

Three independent trend analysis systems provide structural context:

Triple EMA System
  • Fast EMA (21) — Yellow-green crosses. Immediate momentum reference.
  • Medium EMA (50) — Gray line. Intermediate trend filter.
  • Slow EMA (200) — Dark gray, thicker line. Macro structural backbone used in confidence scoring.
  • When all three are properly stacked (Fast > Medium > Slow for bullish, reverse for bearish), trend alignment scores maximum points.


Trend Cloud
  • Calculated from the midpoints of the highest high / lowest low over fast (9) and slow (26) periods
  • When the fast midpoint is above the slow midpoint, the cloud fills green — bullish bias
  • When below, the cloud fills red — bearish bias
  • Cloud direction adds 4 points to the confidence score when aligned with the signal


RSI Divergence System
  • Detects classical RSI divergence using pivot-based comparison
  • Bullish divergence — price makes a lower low but RSI makes a higher low
  • Bearish divergence — price makes a higher high but RSI makes a lower high
  • Divergence must occur within a valid lookback window (5–50 bars between pivots) and be recent (within 3 bars of the current RSI pivot)
  • Marked with small diamond shapes — green below bar for bullish, red above bar for bearish


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📊 Momentum Engine

The momentum engine combines four oscillator systems into a unified momentum score:

  • RSI Slope — Smoothed RSI direction over 2 bars. Bullish when RSI is between 40–75 and rising. Bearish when RSI is between 25–60 and falling.
  • MACD Direction — MACD Line above Signal Line = bullish, below = bearish.
  • MACD Histogram Momentum — Histogram increasing = bullish momentum, decreasing = bearish momentum.
  • Stochastic Alignment — %K above %D with room to run (below 80) = bullish. %K below %D with room to fall (above 20) = bearish.
  • MACD Crossover — Fresh MACD crossover on the signal bar adds additional confirmation.


Scores of 2+ out of 5 confirm momentum alignment. Scores of 4+ indicate strong momentum — adding bonus points to the confidence score.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📐 Dashboard Intelligence

A comprehensive 3-column AlphaX-branded dashboard provides real-time analysis across all engine layers:

Wave & Fibonacci Status
  • Current wave phase — Impulse 1–5 (detected/active), Corrective ABC, or Scanning
  • Wave trend direction — Bullish or Bearish impulse context
  • Fibonacci status — In Golden Zone, at specific level, or no active zone
  • Active Fibonacci zone count


Momentum & Trend
  • Momentum state — Strong Bull/Bear, Bullish/Bearish, or Flat
  • Bull/Bear sub-factor scores (e.g., 3▲ 1▼)
  • EMA trend alignment — Bull Aligned, Bear Aligned, or Mixed
  • Price position relative to 200 EMA
  • Cloud direction — Bullish, Bearish, or Flat


Volume & Oscillators
  • Relative volume — Spike, High, Normal, or Dry with exact ratio
  • RSI state — Overbought, Oversold, Rising, Falling, or Neutral with numeric value


Confluence & Verdict
  • Bull confluence score — count out of 8, confidence percentage, and letter grade
  • Bear confluence score — count out of 8, confidence percentage, and letter grade
  • Verdict — the engine's overall assessment: High Confidence Long, High Confidence Short, Lean Long/Short with Caution, Mixed — Stand Aside, or No Clear Edge


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🚀 How to Trade with AlphaX Wave — Step by Step

Step 1 — Identify the Wave Structure
  • Look for completed impulse patterns (numbered 0–5 on the chart)
  • Check the Dashboard: What is the current Wave Phase?
  • If "SCANNING" — no valid wave structure detected yet. Wait for pattern formation.


Step 2 — Wait for Correction or Wave 3 Setup
  • After an impulse completes, watch for the "ABC CORRECTION ZONE" label — this is where the market is pulling back within the trend
  • Watch for Wave 3 Setup triangles (▲/▼) — these mark the beginning of the strongest wave
  • Check if price is entering a Fibonacci Golden Zone (purple shaded box)


Step 3 — Enter on Confluence Signal
  • Wait for a graded entry label (▲ LONG or ▼ SHORT) to appear
  • Check the grade — A+ and A signals have the highest probability
  • Review the factor checklist — more ✓ marks = stronger setup
  • The SL and TP levels are automatically plotted for immediate trade management


Step 4 — Manage the Trade
  • Monitor the SL/TP levels on the chart — they update automatically
  • When TP1 is hit, the label lights up green and the SL moves to break-even
  • Hold the remaining position for TP2 risk-free
  • If SL is hit first, the label turns red — accept the loss and wait for the next setup


Step 5 — Read the Verdict
  • The Dashboard Verdict row summarizes the engine's real-time assessment
  • "HIGH CONFIDENCE LONG/SHORT" — all systems aligned, actively look for entries
  • "LEAN LONG/SHORT — CAUTION" — some alignment but not full, trade with reduced size
  • "MIXED — STAND ASIDE" — conflicting signals, do not trade
  • "NO CLEAR EDGE" — insufficient data, wait for structure to develop


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

When NOT to Trade — Reading the Warning Signs

  • Dashboard shows "SCANNING" — No valid wave structure detected. The market may be in a complex correction or transition phase.
  • Verdict shows "MIXED — STAND ASIDE" — Bull and bear confluence are both active simultaneously. Conflicting signals cancel each other.
  • Cloud is flat or rapidly switching colors — No established trend direction. Signals during cloud transitions are less reliable.
  • EMAs are tangled and flat — Range-bound market. Wave patterns in choppy conditions produce lower-quality signals.
  • Only C or D grade signals appearing — Insufficient confluence. These grades are hidden by default for a reason.
  • RSI showing "OVERBOUGHT" on a long signal — The confidence engine already penalizes this (-5 points), but it is worth noting visually as well.
  • Volume showing "DRY" — Low-volume environments reduce the reliability of all technical patterns including waves.


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Key Features
  • 🔬 Automated Elliott Wave impulse detection (1–5) with strict rule validation
  • 📐 ABC corrective pattern recognition with retracement depth validation
  • 🎯 Wave 3 Setup Scanner — identifies the strongest wave initiation points
  • 📊 Fibonacci Golden Zone projection with intelligent lifecycle management
  • 🧠 8-factor confluence scoring — Wave, ABC, Fibonacci, Fibonacci Level, Momentum, Divergence, Volume, EMA
  • 📈 Weighted confidence scoring (0–100%) with A+ through D grade classification
  • ▲▼ Detailed signal labels showing grade, confidence, confluence count, and active factor checklist
  • 🎯 Structure-based SL/TP system — swing levels, Fibonacci targets, and wave projections
  • 🛡 Automatic break-even protection when TP1 is hit
  • 📊 Real-time hit tracking with visual color changes on SL/TP labels
  • ☁ Trend Cloud with gradient fill for instant directional bias
  • 📐 Triple EMA system (21/50/200) for structural trend context
  • 💎 RSI divergence detection with pivot-based validation
  • 📊 Multi-oscillator momentum engine (RSI, MACD, Stochastic)
  • 📊 Volume spike detection with configurable multiplier
  • 📐 Comprehensive 3-column dashboard with verdict system
  • 🎨 Cohesive triple-tone color theme — Green for bull, Red for bear, Purple for wave structure
  • 🔔 10 alert conditions — signals, impulses, corrections, Wave 3 setups, and divergences
  • ⚙ Fully configurable — wave detection, Fibonacci, momentum, signals, SL/TP, and all visuals


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Settings Reference

Wave Detection
  • Swing Detection Length — Pivot lookback for identifying swing highs and lows (default: 6)
  • Show Wave Count Labels — Toggle the numbered 0–5 labels on impulse waves
  • Show Wave Structure Lines — Toggle the connecting lines between wave points
  • Show Impulse Completion — Toggle the "IMPULSE COMPLETE" notification labels
  • Show Corrective Patterns — Toggle the "ABC CORRECTION ZONE" labels
  • Show Wave 3 Setup Markers — Toggle the purple triangle markers
  • Wave Pattern Cooldown — Minimum bars between wave pattern detections (default: 18)


Fibonacci
  • Show Fib Golden Zone Boxes — Toggle the shaded 38.2%–61.8% retracement zone
  • Max Fib Zone Boxes — Maximum simultaneous Golden Zones (default: 3)
  • Fib Zone Max Age — Bars before a zone auto-expires (default: 80)


Momentum
  • RSI Length / Smoothing — Core RSI calculation parameters
  • MACD Fast / Slow / Signal — MACD oscillator parameters
  • Show RSI Divergence — Toggle divergence diamond markers


Volume
  • Volume MA Length — Baseline period for volume comparison (default: 20)
  • Volume Spike Multiplier — Threshold for spike detection (default: 1.6×)
  • Show Volume Spike Dots — Toggle volume spike indicators at bar bottom


EMA Settings
  • Fast / Medium / Slow EMA — Independently toggle visibility and set periods
  • Defaults: 21 / 50 / 200


Trend Cloud
  • Show Trend Cloud — Toggle the gradient cloud fill
  • Cloud Fast / Slow Length — Midpoint calculation periods (default: 9 / 26)


Confluence Engine
  • Min Confluence Score — Minimum factors required for a signal (default: 3 of 8)
  • Show Entry Signals — Toggle signal labels
  • Signal Cooldown — Minimum bars between signals (default: 10)
  • Signal Label Offset — Distance below/above bar in ATR units (default: 3.0)
  • Show Grade C / D Signals — Toggle lower-quality signal visibility (default: off)


SL / TP
  • Show Stop Loss & Targets — Toggle all SL/TP visual elements
  • Stop Loss (× ATR) — Base ATR multiple for stop loss calculation (default: 2.0)
  • Target 1 (× ATR) — Base ATR multiple for conservative target (default: 2.5)
  • Target 2 (× ATR) — Base ATR multiple for extended target (default: 5.0)
  • Limit SL/TP History — Cap the number of visible historical trade levels
  • SL/TP History Count — Maximum trade groups shown (default: 8)
  • Move SL to Break Even after TP1 — Enable/disable break-even protection


Display
  • Show Dashboard — Toggle the information panel
  • Dashboard Position — Top Right, Top Left, Bottom Right, Bottom Left
  • Dashboard Text Size — Tiny, Small, Normal
  • Dashboard Background — Background color for the panel


Theme Colors
  • Bull Primary / Bright / Dim — Green family for bullish elements
  • Bear Primary / Bright / Dim — Red family for bearish elements
  • Wave Primary / Bright / Dim — Purple family for wave structure elements
  • Fibonacci Levels / Dim — Purple-pink family for Fibonacci zones
  • EMA colors — Fast (green), Medium (gray), Slow (dark gray)
  • Neutral — Gray for inactive/mixed states


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🔔 Alert Conditions
  • Wave Long Signal — Fires when a graded bullish entry signal appears
  • Wave Short Signal — Fires when a graded bearish entry signal appears
  • Bullish Impulse Complete — Fires when a full 1–5 bullish impulse is detected
  • Bearish Impulse Complete — Fires when a full 1–5 bearish impulse is detected
  • Wave 3 Bull Setup — Fires when a bullish Wave 3 initiation pattern is detected
  • Wave 3 Bear Setup — Fires when a bearish Wave 3 initiation pattern is detected
  • RSI Bull Divergence — Fires when bullish RSI divergence is confirmed
  • RSI Bear Divergence — Fires when bearish RSI divergence is confirmed
  • Bullish ABC Correction — Fires when a bullish corrective zone is identified
  • Bearish ABC Correction — Fires when a bearish corrective zone is identified

All alert messages include {{ticker}} and {{interval}} placeholders for clean webhook integration.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 Default Settings — Optimized For

The default configuration is tuned for XAUUSD (Gold) and major instruments on the 5-minute to 1-hour timeframes:
  • Swing Length at 6 captures wave structure without excessive lag on intraday charts
  • Minimum confluence at 3/8 ensures signals have meaningful multi-factor backing
  • Signal cooldown at 10 bars prevents rapid-fire signals during volatile wave transitions
  • SL at 2.0 ATR with structure-based adjustment provides adaptive risk sizing
  • TP1 at 2.5 ATR and TP2 at 5.0 ATR provide minimum 1.25R and 2.5R risk-reward ratios
  • Break-even protection ensures profitable trades are protected after TP1
  • Grade C and D signals hidden by default to maintain signal quality


For other instruments or timeframes, adjust:
  • Higher timeframes (4H, Daily) — Increase Swing Length to 8–14, increase Wave Cooldown to 30–50, increase SL/TP ATR multiples
  • Lower timeframes (1m) — Reduce Swing Length to 4–5, reduce Signal Cooldown to 5–7, increase Min Confluence to 4
  • Forex majors — Use defaults, optionally reduce Swing Length to 5 for tighter wave detection
  • Crypto — Increase Swing Length to 8–10 (higher volatility), increase SL ATR multiple to 2.5–3.0
  • Fewer, higher-quality signals — Increase Min Confluence to 4–5, increase Signal Cooldown, hide Grade C/D
  • More signals — Reduce Min Confluence to 2, enable Grade C signals, reduce cooldown


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

👥 Who This Is For
  • 📐 Elliott Wave Practitioners — Automated wave counting with strict rule validation eliminates subjective bias
  • 📊 Fibonacci Traders — Automatic Golden Zone projection with lifecycle management removes manual drawing
  • 🥇 Gold & Forex Intraday Traders — Optimized for instruments with clean wave structures on fast timeframes
  • 🧠 Systematic Traders — The 8-factor confluence + weighted confidence system provides a fully quantitative framework
  • 🎯 Traders who want complete trade plans — Entry, SL, TP1, TP2, and break-even all generated automatically
  • 📈 Traders learning Elliott Wave — The visual wave labels and structure lines serve as an educational overlay
  • Traders who struggle with exit management — The SL/TP system with hit tracking and break-even automation removes emotional decision-making


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📝 Notes
  • Wave detection uses confirmed pivot points (offset by the swing length) — wave labels appear after structural confirmation, not in real-time. This prevents repainting.
  • The indicator requires sufficient bar history to populate swing buffers — allow at least 100+ bars of data before expecting wave pattern detection
  • Elliott Wave rules are applied as mathematical approximations of the classical theory — certain complex wave structures (extended waves, truncations, diagonal triangles) may not be detected
  • SL/TP levels are calculated at signal time and do not adjust afterward (except the break-even mechanism on TP1 hit)
  • Maximum 500 labels, 500 lines, and 500 boxes are used — on very low timeframes with extended history and many signals, oldest drawings may be automatically removed by TradingView's rendering limits
  • The SL/TP history is automatically trimmed to the configured limit (default 8 trade groups = 24 labels/lines) to stay within TradingView's drawing limits
  • All confluence factors and confidence scores are recalculated on every bar — the dashboard reflects the current bar's state, not the last signal's state


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Disclaimer

This indicator is a technical analysis and visualization tool intended for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. Elliott Wave patterns, Fibonacci levels, and all signals are generated from historical and real-time price data using mathematical calculations — their accuracy or profitability is not guaranteed. Elliott Wave theory is inherently subjective and interpretive; automated detection provides one possible wave count among many valid alternatives. Past wave patterns and signal performance do not guarantee future results. Always conduct your own analysis, use proper risk management, and consult a licensed financial advisor before making any trading decisions. The author accepts no responsibility for any losses incurred from the use of this indicator.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Built for traders who demand clarity, confidence, and precision from their charts.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.