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
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.