MACD Divergences, Quality Scored & Anticipated [wiseball]

A focused divergence engine built around the MACD — combining quality scoring, anticipated signals, projected signals, and configurable filtering.
What sets it apart:
- Quality-scored divergences — every signal gets a 0–100 rank, so you can filter noise instead of drowning in it
- Anticipated divergences with live probability — catch divergences before pivot confirmation, with a statistical confidence score
- Webhook-ready alerts gated by quality score and probability — built for serious automation, not just pop-ups
Headline features:
- Quality-scored divergences (0–100) — each divergence is ranked by a composite quality score, normalized for cross-market comparability
- Anticipated divergences — unconfirmed divergences shown in real-time before pivot confirmation, for earlier entries
- Probability of confirmation — each anticipated divergence displays a live probability score, computed from a statistical model built on historical divergence outcomes (amplitude, duration and pivot age)
- Projected divergences — an additional early-warning class for crossed oscillator lines, extended 15 bars forward
- Divergences on the price chart — MACD divergences plotted in overlay mode at actual price pivots
- OB/OS zone filtering — restrict divergences to oscillator extreme zones only
MACD settings:
- Configurable fast length, slow length, signal smoothing and price source (Close, HLC3, and more)
- Oscillator MA type: SMA or EMA for both MACD line and signal line
- Histogram with dynamic growth/fall coloring above and below the zero line
- Dual OB/OS levels on the MACD scale
Signals & visuals:
- Regular and Hidden divergences
- Anticipated & Projected divergences with info labels (countdown, score, probability)
- Buy / Sell bullet signals at OB/OS extremes
- MACD line, signal line and histogram with perceptually-consistent coloring
- Zero-line reference for momentum context
- Perceptually-consistent color palette unified with the TradingView dark theme
Smart filtering:
- Quality score threshold — filter out divergences below a chosen score
- Best-score filter mode — keep only the highest-scored divergence when several overlap
- Crossing & range filters with three readability modes (downplay / delete / off)
- Configurable min/max divergence duration
Alerts:
- Rich alert payload including ticker, timeframe, divergence type, score, and probability — formatted for webhook consumption
- Quality-score gating — alerts trigger only when the divergence meets the configured score threshold
- Probability gating — anticipated divergence alerts trigger only above a configured probability threshold
- Full alert set: regular, hidden, and anticipated divergences in both directions
- Dedicated OB/OS signal alerts (oversold bull, overbought bear)
- Histogram state-change alerts (rising to falling, falling to rising)
Technical details:
- Standard MACD calculation (fast EMA − slow EMA, signal = EMA of MACD)
- Analyzes up to 4000 bars of history and tracks up to 450 simultaneous divergences
- Configurable pivot lookback (left/right bars)
- Pivot offset tolerance for price/oscillator alignment
- Overtaking modes (Lazy / Advanced) with percentage tolerance
How to use:
- Trend-following and momentum confirmation
- Reversal and exhaustion detection on the MACD
- OB/OS divergence entries combined with a quality threshold
- Trade confirmation alongside other oscillators
- Webhook-based automation using the structured alert payload
Part of the Wiseball Pro suite
Companion Pro versions exist for RSI, WaveTrend (with multi-oscillator confluence), Stochastic RSI, MFI and others — search "Wiseball" on TradingView.
Disclaimer: As with all trading tools, this indicator should be used alongside other forms of analysis and your own judgment. It provides analytical insights, not predictions. Past signals do not guarantee future performance. Always conduct your own research and trade responsibly.
สคริปต์แบบเฉพาะผู้ได้รับเชิญเท่านั้น
เฉพาะผู้ใช้งานที่ผู้เขียนอนุมัตเท่านั้นจึงจะสามารถเข้าถึงสคริปต์นี้ได้ คุณจะต้องขอและได้รับอนุญาตก่อนใช้งาน ซึ่งโดยทั่วไปจะได้รับอนุญาตหลังจากชำระเงินแล้ว สำหรับรายละเอียดเพิ่มเติม โปรดทำตามคำแนะนำของผู้เขียนด้านล่าง หรือติดต่อ Wiseball โดยตรง
TradingView ไม่แนะนำให้จ่ายเงินหรือใช้สคริปต์ เว้นแต่คุณจะเชื่อถือผู้เขียนและเข้าใจวิธีการทำงานของสคริปต์นั้นอย่างถ่องแท้ คุณยังสามารถหาทางเลือกแบบโอเพนซอร์สฟรีได้ใน สคริปต์ชุมชนของเรา
คำแนะนำของผู้เขียน
คำจำกัดสิทธิ์ความรับผิดชอบ
สคริปต์แบบเฉพาะผู้ได้รับเชิญเท่านั้น
เฉพาะผู้ใช้งานที่ผู้เขียนอนุมัตเท่านั้นจึงจะสามารถเข้าถึงสคริปต์นี้ได้ คุณจะต้องขอและได้รับอนุญาตก่อนใช้งาน ซึ่งโดยทั่วไปจะได้รับอนุญาตหลังจากชำระเงินแล้ว สำหรับรายละเอียดเพิ่มเติม โปรดทำตามคำแนะนำของผู้เขียนด้านล่าง หรือติดต่อ Wiseball โดยตรง
TradingView ไม่แนะนำให้จ่ายเงินหรือใช้สคริปต์ เว้นแต่คุณจะเชื่อถือผู้เขียนและเข้าใจวิธีการทำงานของสคริปต์นั้นอย่างถ่องแท้ คุณยังสามารถหาทางเลือกแบบโอเพนซอร์สฟรีได้ใน สคริปต์ชุมชนของเรา