OPEN-SOURCE SCRIPT
SQVIGU-- Master & Wizards Pattern Action

This indicator is a strictly filtered scanner that hunts for the precise Volatility Contraction and Momentum Anomalies popularized by legendary market wizards like Mark Minervini, Dan Zanger, Nicolas Darvas, and Kristjan Kullamägi.
Instead of cluttering your chart with arbitrary lines, this suite only triggers when the broader market regime is in a confirmed uptrend with exhausting volume.
⚙️ Core Innovations
• Smart Trade Plan Tooltips: Hover over or click any pattern label to instantly view the calculated 🟢 Entry Trigger, 🔴 Stop Loss, and 🎯 Target Strategy for that specific setup.
• Transparent Overlays: Uses Pine Script v6 to draw shaded boxes exactly over the historical footprint of the pattern, highlighting the structural zone.
• Strict Regime Filters: Eliminates false positives in choppy markets. Patterns only print if the asset is trending (Price > 20 EMA > 50 SMA) and volume is contracting.
🔍 The 5 Patterns Detected
1. Minervini’s VCP: Highlights sequential volatility contraction (e.g., depths of 25% ➔ 12% ➔ 4%). Buy the final pivot.
2. Zanger’s High Tight Flag (HTF): Detects a massive >90% "Pole" move followed by a tight flag consolidation (<25% drawdown).
3. Darvas Box: Maps the classic 3-day confirmed top and bottom accumulation zones for trend-following.
4. Kullamägi’s Episodic Pivot (EP): Flags high-volume, high-close gap ups (>5%). Wait for the 3-5 day tight flag to form before entry.
5. Crabel’s NR7 & ID/NR4: Identifies extreme micro-compression (narrowest range in 7 or 4 days) signaling an imminent 1-3 day volatility thrust.
How to use: Let the indicator find the coiled springs. Check the tooltip for your trade plan, wait for price to breach the trigger level on high relative volume, and always respect the structural stop loss.
Instead of cluttering your chart with arbitrary lines, this suite only triggers when the broader market regime is in a confirmed uptrend with exhausting volume.
⚙️ Core Innovations
• Smart Trade Plan Tooltips: Hover over or click any pattern label to instantly view the calculated 🟢 Entry Trigger, 🔴 Stop Loss, and 🎯 Target Strategy for that specific setup.
• Transparent Overlays: Uses Pine Script v6 to draw shaded boxes exactly over the historical footprint of the pattern, highlighting the structural zone.
• Strict Regime Filters: Eliminates false positives in choppy markets. Patterns only print if the asset is trending (Price > 20 EMA > 50 SMA) and volume is contracting.
🔍 The 5 Patterns Detected
1. Minervini’s VCP: Highlights sequential volatility contraction (e.g., depths of 25% ➔ 12% ➔ 4%). Buy the final pivot.
2. Zanger’s High Tight Flag (HTF): Detects a massive >90% "Pole" move followed by a tight flag consolidation (<25% drawdown).
3. Darvas Box: Maps the classic 3-day confirmed top and bottom accumulation zones for trend-following.
4. Kullamägi’s Episodic Pivot (EP): Flags high-volume, high-close gap ups (>5%). Wait for the 3-5 day tight flag to form before entry.
5. Crabel’s NR7 & ID/NR4: Identifies extreme micro-compression (narrowest range in 7 or 4 days) signaling an imminent 1-3 day volatility thrust.
How to use: Let the indicator find the coiled springs. Check the tooltip for your trade plan, wait for price to breach the trigger level on high relative volume, and always respect the structural stop loss.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.