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
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.