OPEN-SOURCE SCRIPT
ZScore SemiConductores

Z-Score of Semiconductor Sector Volume
This custom Pine Script indicator applies a Z-Score calculation to the aggregated trading volume of leading semiconductor companies. The goal is to highlight statistical extremes in sector activity that may signal unusual market behavior.
🔧 How it works
- Fixed ticker list: NVDA, AVGO, TSM, AMD, ASML, MU, ARM, ON, TXN, QCOM, INTC.
- Aggregate volume: The script sums the trading volume of all tickers in the list for the selected timeframe.
- Z-Score calculation:
- Moving average and standard deviation are computed over a configurable window (default = 50 bars).
- Formula:
Z= (Current Volume - Mean) / Standard Deviation
Visualization:
- Z-Score plotted in green.
- Reference lines at 0, ±1σ, ±2σ.
- Labels (triangles) mark critical signals when Z > +2 or Z < -2.
📈 Why it matters
- Detects abnormal surges or drops in sector-wide volume.
- Highlights potential euphoria (+2σ) or panic (-2σ) moments.
- Useful as a filter for trading strategies or as a sector-level alert system.
⚠️ Disclaimer: This script is for educational purposes only and not financial advice
This custom Pine Script indicator applies a Z-Score calculation to the aggregated trading volume of leading semiconductor companies. The goal is to highlight statistical extremes in sector activity that may signal unusual market behavior.
🔧 How it works
- Fixed ticker list: NVDA, AVGO, TSM, AMD, ASML, MU, ARM, ON, TXN, QCOM, INTC.
- Aggregate volume: The script sums the trading volume of all tickers in the list for the selected timeframe.
- Z-Score calculation:
- Moving average and standard deviation are computed over a configurable window (default = 50 bars).
- Formula:
Z= (Current Volume - Mean) / Standard Deviation
Visualization:
- Z-Score plotted in green.
- Reference lines at 0, ±1σ, ±2σ.
- Labels (triangles) mark critical signals when Z > +2 or Z < -2.
📈 Why it matters
- Detects abnormal surges or drops in sector-wide volume.
- Highlights potential euphoria (+2σ) or panic (-2σ) moments.
- Useful as a filter for trading strategies or as a sector-level alert system.
⚠️ Disclaimer: This script is for educational purposes only and not financial advice
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.