OPEN-SOURCE SCRIPT
Patterns and Alerts

Patterns and Alerts — TradingView Indicator Documentation
© 2026 Arup Sarkar
Indicator Name: Patterns and Alerts
Version: 1.0
About Me:
Spent 32+ years in the software industry and now a full time trader. I did not find an indicator that keeps the chart clean, addresses candle and chart patters combined and provide alerts. This is my first release and by Feb end, I will include all chart/candle patterns, trend line & most vital, Smart Money intent behind patterns (candle and chart).
Description
The Indicator: Patterns and Alerts is a comprehensive indicator that detects candlestick and classical chart patterns, provides real-time alerts, and keeps charts clean with minimalist visuals. It helps traders identify actionable price patterns across all timeframes and asset classes.
Key Features
- Detects Bullish/Bearish Pin Bars
- Detects Double Top, Head & Shoulders, Rising Wedges, and Falling Wedges
- Generates alerts once per confirmed pattern
- Uses thin lines and optional pivot labels for clean visuals
- Works on all timeframes (1-minute to Daily)
Alerts
- Pattern type
- Pivot prices (if applicable)
- Symbol
- Timeframe
Pro Tips
- For aggressive detection, decrease Pivot Length & Pin Bar Wick Ratio
- For conservative detection, increase Pivot Length & Pin Bar Wick Ratio
- Disable labels on lower timeframes to reduce clutter
- Combine alerts with trend indicators, volume, or higher timeframe analysis for confirmation
- Can integrate alerts via webhooks for automated trading
Author / Credit
Arup Sarkar
© 2026 Arup Sarkar
Indicator Name: Patterns and Alerts
Version: 1.0
About Me:
Spent 32+ years in the software industry and now a full time trader. I did not find an indicator that keeps the chart clean, addresses candle and chart patters combined and provide alerts. This is my first release and by Feb end, I will include all chart/candle patterns, trend line & most vital, Smart Money intent behind patterns (candle and chart).
Description
The Indicator: Patterns and Alerts is a comprehensive indicator that detects candlestick and classical chart patterns, provides real-time alerts, and keeps charts clean with minimalist visuals. It helps traders identify actionable price patterns across all timeframes and asset classes.
Key Features
- Detects Bullish/Bearish Pin Bars
- Detects Double Top, Head & Shoulders, Rising Wedges, and Falling Wedges
- Generates alerts once per confirmed pattern
- Uses thin lines and optional pivot labels for clean visuals
- Works on all timeframes (1-minute to Daily)
Alerts
- Pattern type
- Pivot prices (if applicable)
- Symbol
- Timeframe
Pro Tips
- For aggressive detection, decrease Pivot Length & Pin Bar Wick Ratio
- For conservative detection, increase Pivot Length & Pin Bar Wick Ratio
- Disable labels on lower timeframes to reduce clutter
- Combine alerts with trend indicators, volume, or higher timeframe analysis for confirmation
- Can integrate alerts via webhooks for automated trading
Author / Credit
Arup Sarkar
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.