PROTECTED SOURCE SCRIPT
OptX - ZigZag Triangle with Market Appetite

OptX - ZigZag Based Dynamic Triangle with Market Appetite Indicator
This protected script automatically detects and draws the latest converging triangle patterns using ZigZag pivot points. It combines classic price geometry with a proprietary "Market Appetite" momentum metric to highlight potential breakout strength.
Key Features:
- Automatically identifies recent swing highs and lows
- Draws upper resistance and lower support lines to form a triangle
- Includes a dashed diagonal line for visual structure
- Fills the triangle with dynamic color intensity and opacity reflecting current market momentum
- Clearly labels active resistance and support levels
- On breakout (within configurable bars after pivot), shows breakout conviction as a percentage (BO 0-100%)
Market Appetite Concept:
A custom momentum indicator that measures market intensity by analyzing normalized changes in both price and volume volatility:
- Recent price and volume movements are standardized and combined
- Scaled relative to recent extremes over an extended lookback
- Higher values indicate stronger momentum, resulting in more intense triangle fill and higher breakout percentage labels
- Designed to gauge the underlying conviction in price moves
Trend-adaptive coloring (based on 20-period SMA):
- Bullish conditions: green/blue tones
- Bearish conditions: red/gray tones
Ideal for spotting triangle breakouts with built-in momentum assessment.
Settings include full customization of ZigZag sensitivity, colors, fill opacity, appetite calculation period, breakout detection window, and line styles.
This is an original indicator combining ZigZag-based triangle detection with a unique price-volume momentum evaluation – developed independently and not derived from simple combinations of existing public scripts.
This protected script automatically detects and draws the latest converging triangle patterns using ZigZag pivot points. It combines classic price geometry with a proprietary "Market Appetite" momentum metric to highlight potential breakout strength.
Key Features:
- Automatically identifies recent swing highs and lows
- Draws upper resistance and lower support lines to form a triangle
- Includes a dashed diagonal line for visual structure
- Fills the triangle with dynamic color intensity and opacity reflecting current market momentum
- Clearly labels active resistance and support levels
- On breakout (within configurable bars after pivot), shows breakout conviction as a percentage (BO 0-100%)
Market Appetite Concept:
A custom momentum indicator that measures market intensity by analyzing normalized changes in both price and volume volatility:
- Recent price and volume movements are standardized and combined
- Scaled relative to recent extremes over an extended lookback
- Higher values indicate stronger momentum, resulting in more intense triangle fill and higher breakout percentage labels
- Designed to gauge the underlying conviction in price moves
Trend-adaptive coloring (based on 20-period SMA):
- Bullish conditions: green/blue tones
- Bearish conditions: red/gray tones
Ideal for spotting triangle breakouts with built-in momentum assessment.
Settings include full customization of ZigZag sensitivity, colors, fill opacity, appetite calculation period, breakout detection window, and line styles.
This is an original indicator combining ZigZag-based triangle detection with a unique price-volume momentum evaluation – developed independently and not derived from simple combinations of existing public scripts.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
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ã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
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.