OPEN-SOURCE SCRIPT
Double Top/Bottom Auto Highlighter - Fixed

This lightweight indicator automatically detects and highlights classic reversal patterns on your chart:
• Double Bottom (W-shape) → Green background + "DB" label (potential bullish reversal)
• Double Top (M-shape) → Red background + "DT" label (potential bearish reversal)
Features:
• Pivot-based detection (adjustable lookback for reliability)
• Price tolerance % (allows for small differences in highs/lows)
• Optional volume spike filter (only show patterns after climactic moves)
• Subtle visuals: Toggleable background highlights, labels, and dashed neckline
• Built-in alerts for pattern detection + neckline breakouts (great for gold/silver setups!)
• Clean & minimal — no clutter, works on any timeframe/symbol
How to use:
- Green "DB" after a sell-off → Watch for bounce/long opportunity (like your recent gold double bottoms)
- Red "DT" after a rally → Potential short or exit longs
- Combine with your other indicators (e.g., WC Cross Clouds for regime confirmation)
Tweak pivot length (5–10 recommended) and tolerance (0.3–0.8%) in settings to fit your style.
Feel free to use, modify, fork, or expand this script however you want! Released under open license.
Happy trading!
Dove– Chesapeake, VA
• Double Bottom (W-shape) → Green background + "DB" label (potential bullish reversal)
• Double Top (M-shape) → Red background + "DT" label (potential bearish reversal)
Features:
• Pivot-based detection (adjustable lookback for reliability)
• Price tolerance % (allows for small differences in highs/lows)
• Optional volume spike filter (only show patterns after climactic moves)
• Subtle visuals: Toggleable background highlights, labels, and dashed neckline
• Built-in alerts for pattern detection + neckline breakouts (great for gold/silver setups!)
• Clean & minimal — no clutter, works on any timeframe/symbol
How to use:
- Green "DB" after a sell-off → Watch for bounce/long opportunity (like your recent gold double bottoms)
- Red "DT" after a rally → Potential short or exit longs
- Combine with your other indicators (e.g., WC Cross Clouds for regime confirmation)
Tweak pivot length (5–10 recommended) and tolerance (0.3–0.8%) in settings to fit your style.
Feel free to use, modify, fork, or expand this script however you want! Released under open license.
Happy trading!
Dove– Chesapeake, VA
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.