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. Подробнее читайте в Условиях использования.