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
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.