OPEN-SOURCE SCRIPT
ADDQ Breadth Oscillator [Signal Vision]

ADDQ Breadth Oscillator [by: Signal Vision]
📊 ADDQ Breadth Oscillator (Advanced Market Internal)
The ADDQ Breadth Oscillator is a momentum-based tool designed to visualize the internal health of the NASDAQ by tracking Net Advancing Issues (ADDQ).
Unlike standard price indicators, this oscillator looks "under the hood" of the market to see if price movement is supported by broad participation or if it’s being driven by just a few heavyweights.
🔍 How it Works
This indicator pulls the NASDAQ Advance-Decline Line (ADDQ) and processes it through a dual-EMA system to create a smoothed oscillator and a signal line. It measures the spread between the current breadth and its moving average, resulting in a responsive histogram that highlights shifts in market momentum.
🛡️ Smart Data Selection (Fail-safe)
One of the unique features of this script is its triple-source logic. Different TradingView data plans and brokers handle Breadth symbols differently. This script automatically checks:
NASDAQ:ADDQ
ADDQ (Generic)
ADVQ - DECLQ (Calculated manually from Advancing vs. Declining issues)
It will automatically use the best available source based on your data subscription, ensuring the indicator never returns a "blank" screen. A Debug Table in the top right confirms which source is currently active.
📈 Key Features
Momentum Histogram: A scaled histogram that shows the acceleration or deceleration of market breadth.
Trend Ribbon: The area between the ADDQ line and the Signal line changes color (Teal/Red) to indicate the short-term internal trend.
Extreme Levels: Horizontal dashed lines at +/- 1500 (customizable) highlight overbought or oversold breadth conditions.
Crossover Signals: Visual shapes appear on the chart when the breadth line crosses its signal line, marking potential entry or exit points.
🛠️ How to Use
Bullish Confirmation: Look for the ADDQ line to cross above the Signal line while the histogram turns bright teal.
Overextended Markets: When the background turns teal or red, the NASDAQ is reaching extreme breadth levels (+/- 1500). These are often areas where the market is prone to mean reversion or a temporary pause.
Divergence: If price is making new highs but the ADDQ Oscillator is making lower highs, it suggests the rally is losing participation.
⚙️ Settings
Signal Length: Adjust the smoothness of the yellow signal line.
Histogram Scale: Since ADDQ values are large, use this to make the histogram bars more or less prominent.
Extreme Level: Customize the threshold for "Extreme" market conditions based on current volatility.
Note: This indicator requires access to NASDAQ Market Internals data. If the debug table shows "no data," ensure you have the appropriate NASDAQ data package or are using a broker feed that supports breadth symbols.
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.