PROTECTED SOURCE SCRIPT

Gold Z-Score Dashboard - 100-Bar Label Cleanup

60
📌 Indicator Name:
Gold Z-Score Dashboard — 100-Bar Label Cleanup

🧾 Description:
This indicator leverages a statistical approach to detect overbought and oversold conditions using the Z-Score, a measure of price deviation from its moving average. It intelligently combines trend, volume, and volatility filters to reduce false signals and improve trading precision.

✅ Key Features:
Z-Score Logic: Highlights extreme price moves by comparing current price to its recent average, normalized by standard deviation.

Trend Filter (Optional): Uses a higher-timeframe EMA to confirm signals only in the trend direction.

Volume Filter (Optional): Confirms signals only when current volume exceeds its average, avoiding low-activity noise.

ATR Filter (Optional): Ensures signals occur during sufficient market volatility.

Label Cleanup: Each signal label is automatically removed after 100 bars to keep your chart organized.

Built-In Alerts: Get notified instantly when the market enters overbought or oversold zones.

🧠 How It Works:
The Z-Score is calculated as:

(Price−EMA)/StandardDeviation

When the Z-Score crosses below -threshold, an oversold (long) signal is generated.

When it crosses above +threshold, an overbought (short) signal is triggered.

Signals are filtered based on user settings:

✅ Trend must be aligned with higher timeframe EMA

✅ Volume must be above its moving average

✅ ATR must indicate adequate market movement

📈 Best Used For:
Spotting mean reversion opportunities

Avoiding false reversals with smart filters

Cleaner signal visualization via automatic label expiry

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。