OPEN-SOURCE SCRIPT
Nasdaq 100 Internal Strength

### Summary
This indicator is designed to measure the "health" or "internal strength" of the Nasdaq 100 index. Instead of just looking at the index's price, it analyzes whether the majority of its constituent stocks are participating in the trend. The data is displayed as an oscillator (scaled 0-100), similar to the RSI, making it easy to identify broad market Overbought and Oversold conditions.
This tool is ideal for traders and investors who want a deeper perspective on market dynamics, helping to confirm trend strength or spot early warning signs of a potential reversal.
---
### What does it measure?
The indicator plots three lines based on the market breadth data for the Nasdaq 100 index:
* **% > 20D MA (Blue Line):** The percentage of Nasdaq 100 stocks trading above their 20-day moving average (short-term trend).
* **% > 50D MA (Orange Line):** The percentage of Nasdaq 100 stocks trading above their 50-day moving average (medium-term trend).
* **% > 200D MA (Red Line):** The percentage of Nasdaq 100 stocks trading above their 200-day moving average (long-term trend).
---
### How to Use and Interpret
**Overbought / Oversold Conditions:**
* **Approaching the Overbought Zone (Value > 80):** This indicates that a very high number of stocks are in an uptrend, suggesting the market may be overheated or in a state of "Greed." This can signal a potential pullback or consolidation ahead.
* **Approaching the Oversold Zone (Value < 20):** This indicates that a large number of stocks have been sold off heavily, suggesting the market may be in a state of "Extreme Fear." This could present an opportunity for a technical rebound.
**Trend Confirmation:**
* When the index (e.g., QQQ) is making new highs, and the `% > 200D MA` line is also rising and making new highs, it confirms that the uptrend is healthy and broadly supported by the majority of stocks.
**Divergence Signals:**
* **Bearish Divergence:** If the index price reaches a new high, but the indicator (especially the 50D and 200D lines) fails to reach a new high and forms a lower high instead, it's a warning sign. This suggests that fewer stocks are participating in the rally, and the trend's foundation is weakening, which could precede a reversal.
* **Bullish Divergence:** Conversely, if the index price makes a new low, but the indicator forms a higher low, it signals that selling pressure is exhausting. Fewer stocks are making new lows, which could be an early sign of a potential bottom and a reversal to the upside.
---
### Settings
* **Timeframe:** Allows you to select the data's timeframe (using the Daily "D" timeframe is recommended).
* **Overbought/Oversold Level:** Lets you customize the threshold for the OB/OS zones.
* **Show Lines:** You can toggle the visibility of each of the three lines.
This indicator is designed to measure the "health" or "internal strength" of the Nasdaq 100 index. Instead of just looking at the index's price, it analyzes whether the majority of its constituent stocks are participating in the trend. The data is displayed as an oscillator (scaled 0-100), similar to the RSI, making it easy to identify broad market Overbought and Oversold conditions.
This tool is ideal for traders and investors who want a deeper perspective on market dynamics, helping to confirm trend strength or spot early warning signs of a potential reversal.
---
### What does it measure?
The indicator plots three lines based on the market breadth data for the Nasdaq 100 index:
* **% > 20D MA (Blue Line):** The percentage of Nasdaq 100 stocks trading above their 20-day moving average (short-term trend).
* **% > 50D MA (Orange Line):** The percentage of Nasdaq 100 stocks trading above their 50-day moving average (medium-term trend).
* **% > 200D MA (Red Line):** The percentage of Nasdaq 100 stocks trading above their 200-day moving average (long-term trend).
---
### How to Use and Interpret
**Overbought / Oversold Conditions:**
* **Approaching the Overbought Zone (Value > 80):** This indicates that a very high number of stocks are in an uptrend, suggesting the market may be overheated or in a state of "Greed." This can signal a potential pullback or consolidation ahead.
* **Approaching the Oversold Zone (Value < 20):** This indicates that a large number of stocks have been sold off heavily, suggesting the market may be in a state of "Extreme Fear." This could present an opportunity for a technical rebound.
**Trend Confirmation:**
* When the index (e.g., QQQ) is making new highs, and the `% > 200D MA` line is also rising and making new highs, it confirms that the uptrend is healthy and broadly supported by the majority of stocks.
**Divergence Signals:**
* **Bearish Divergence:** If the index price reaches a new high, but the indicator (especially the 50D and 200D lines) fails to reach a new high and forms a lower high instead, it's a warning sign. This suggests that fewer stocks are participating in the rally, and the trend's foundation is weakening, which could precede a reversal.
* **Bullish Divergence:** Conversely, if the index price makes a new low, but the indicator forms a higher low, it signals that selling pressure is exhausting. Fewer stocks are making new lows, which could be an early sign of a potential bottom and a reversal to the upside.
---
### Settings
* **Timeframe:** Allows you to select the data's timeframe (using the Daily "D" timeframe is recommended).
* **Overbought/Oversold Level:** Lets you customize the threshold for the OB/OS zones.
* **Show Lines:** You can toggle the visibility of each of the three lines.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.