OPEN-SOURCE SCRIPT
Advanced Double Bottom Finder (Simple, M-Shape, Gull Patterns)

Description: This indicator identifies three distinct types of Double Bottom patterns based on Pivot points and SMA (Simple Moving Average) filtering. Instead of a simple price comparison, it classifies patterns to provide deeper insights into market structure and liquidity.
Pattern Types:
Simple Double Bottom (DB): A classic trend reversal pattern with a "Higher Low." It indicates price stability above the recent low while staying below the SMA during the peak.
M-Shaped Double Bottom (M-DB): Occurs when the peak between the two lows breaks above the SMA, suggesting stronger bullish momentum before the second low is formed.
Gull Sweep Double Bottom (Gull): A "Liquidity Grab" pattern where the second low sweeps below the first low but recovers quickly above the SMA. This is often seen in high-volatility reversals.
Key Features:
SMA Confirmation: Filters signals by requiring a price crossover above the SMA, reducing false positives during flat trends.
Dynamic Pivot Analysis: Uses configurable left/right bar strengths for pivot detection.
Unified Alerts: Set a single alert for all patterns or monitor them visually via color-coded labels.
How to use:
Works on all timeframes. Recommended for 15M, 1H, and 4H for swing trading.
Ensure the Chart Timezone matches your local trading hours for accurate signal tracking
Pattern Types:
Simple Double Bottom (DB): A classic trend reversal pattern with a "Higher Low." It indicates price stability above the recent low while staying below the SMA during the peak.
M-Shaped Double Bottom (M-DB): Occurs when the peak between the two lows breaks above the SMA, suggesting stronger bullish momentum before the second low is formed.
Gull Sweep Double Bottom (Gull): A "Liquidity Grab" pattern where the second low sweeps below the first low but recovers quickly above the SMA. This is often seen in high-volatility reversals.
Key Features:
SMA Confirmation: Filters signals by requiring a price crossover above the SMA, reducing false positives during flat trends.
Dynamic Pivot Analysis: Uses configurable left/right bar strengths for pivot detection.
Unified Alerts: Set a single alert for all patterns or monitor them visually via color-coded labels.
How to use:
Works on all timeframes. Recommended for 15M, 1H, and 4H for swing trading.
Ensure the Chart Timezone matches your local trading hours for accurate signal tracking
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.