OPEN-SOURCE SCRIPT
Yield Anomaly

Yield Anomaly V2 is an advanced statistical indicator designed to identify abnormal price movements using log returns, adaptive volatility analysis, and robust anomaly detection techniques.
The script combines Z-Score analysis, percentile thresholds, and robust deviation measurements (MAD-based volatility estimation) to highlight unusual market behavior that may indicate momentum expansion, volatility spikes, exhaustion moves, or potential mean-reversion conditions.
Key Features:
• Adaptive anomaly detection using either standard deviation or robust MAD calculations
• Optional percentile-based thresholds for dynamic market adaptation
• EMA or SMA rolling mean selection
• Detection of anomaly clusters and potential regime shifts
• AR(1)-based market regime analysis (mean reversion vs trending conditions)
• Volatility regime monitoring through Volatility-of-Volatility analysis
• Real-time labels displaying statistical market conditions
• Performance tracking table with signal statistics and reversal monitoring
• Fully customizable inputs and visual settings
This indicator is intended for educational and analytical purposes only. It does not provide financial advice, investment recommendations, or guaranteed trading signals. Traders should combine it with proper risk management and additional market analysis before making trading decisions.
The script combines Z-Score analysis, percentile thresholds, and robust deviation measurements (MAD-based volatility estimation) to highlight unusual market behavior that may indicate momentum expansion, volatility spikes, exhaustion moves, or potential mean-reversion conditions.
Key Features:
• Adaptive anomaly detection using either standard deviation or robust MAD calculations
• Optional percentile-based thresholds for dynamic market adaptation
• EMA or SMA rolling mean selection
• Detection of anomaly clusters and potential regime shifts
• AR(1)-based market regime analysis (mean reversion vs trending conditions)
• Volatility regime monitoring through Volatility-of-Volatility analysis
• Real-time labels displaying statistical market conditions
• Performance tracking table with signal statistics and reversal monitoring
• Fully customizable inputs and visual settings
This indicator is intended for educational and analytical purposes only. It does not provide financial advice, investment recommendations, or guaranteed trading signals. Traders should combine it with proper risk management and additional market analysis before making trading decisions.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。