PROTECTED SOURCE SCRIPT
Advanced Cup_Bull_Bear_Beast

🏷️ Cup Pattern Finder — Description for Publication
This indicator identifies Cup Patterns (both bullish and bearish) on any timeframe, using geometric curve-fitting logic.
🔍 What is a Cup Pattern?
A Cup Pattern is a rounded-bottom formation often signaling accumulation (in bullish cases) or distribution (in bearish ones). The price gradually falls and rises forming a "U" shape, indicating a potential reversal or breakout.
🛠️ How this script works:
✅ Scans the last N candles (user-defined, e.g. 150 bars) to detect U-shaped structures.
📏 Measures radius of the curve and checks price containment within a tolerance range.
🎯 Calculates:
Target = Neckline ± Radius
Stop Loss = Minimum of 2% of close or ¼ of radius, from neckline
📉 Can detect both Bullish Cups and Bearish Inverted Cups.
🧠 You can choose how breakouts are verified (Close or High/Low basis).
🔔 Alerts available for:
Bullish Cup Found
Bearish Cup Found
Any Cup Pattern Detected
🎨 Visuals:
Option to display the cup shape, neckline, and channel width.
Labels show:
Radius of the cup
Percentage of bars contained in the cup
Custom color themes for bullish/bearish cups.
📌 Use Case:
Ideal for traders looking to automate detection of consolidation breakout zones based on price structure rather than just indicators. Combine with volume or momentum tools for better confirmation.
This indicator identifies Cup Patterns (both bullish and bearish) on any timeframe, using geometric curve-fitting logic.
🔍 What is a Cup Pattern?
A Cup Pattern is a rounded-bottom formation often signaling accumulation (in bullish cases) or distribution (in bearish ones). The price gradually falls and rises forming a "U" shape, indicating a potential reversal or breakout.
🛠️ How this script works:
✅ Scans the last N candles (user-defined, e.g. 150 bars) to detect U-shaped structures.
📏 Measures radius of the curve and checks price containment within a tolerance range.
🎯 Calculates:
Target = Neckline ± Radius
Stop Loss = Minimum of 2% of close or ¼ of radius, from neckline
📉 Can detect both Bullish Cups and Bearish Inverted Cups.
🧠 You can choose how breakouts are verified (Close or High/Low basis).
🔔 Alerts available for:
Bullish Cup Found
Bearish Cup Found
Any Cup Pattern Detected
🎨 Visuals:
Option to display the cup shape, neckline, and channel width.
Labels show:
Radius of the cup
Percentage of bars contained in the cup
Custom color themes for bullish/bearish cups.
📌 Use Case:
Ideal for traders looking to automate detection of consolidation breakout zones based on price structure rather than just indicators. Combine with volume or momentum tools for better confirmation.
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。