OPEN-SOURCE SCRIPT
Volume Anomaly Detector

Volume Anomaly Detector
A standalone volume-panel indicator designed to flag unusually high volume relative to recent average activity.
Core Logic
Automatically calculates a "weekly average volume" baseline, with built-in auto-detection of how many bars occur per day and per week across different symbols/timeframes — so the baseline stays meaningful when you switch instruments or chart intervals, with no manual reconfiguration needed
When real-time volume exceeds a configurable multiple of the average, it's flagged as abnormal volume, with color-coding to distinguish anomalies (red) from normal activity (light yellow)
Visual Output
Displays the volume histogram, weekly average volume line, and the anomaly threshold line together, making it easy to see where current volume stands relative to its recent baseline at a glance
Usage Notes: Useful for identifying moments where price movement may be backed by significant capital flow. It's recommended to combine this with price structure or other indicators for confirmation — abnormal volume alone does not indicate direction, and should be interpreted alongside the bar's closing position or subsequent price reaction.
Disclaimer: This indicator's output is based purely on statistical analysis of historical volume data. It does not constitute trading advice, and past performance does not guarantee future results. Please assess your own risk and trade responsibly.
A standalone volume-panel indicator designed to flag unusually high volume relative to recent average activity.
Core Logic
Automatically calculates a "weekly average volume" baseline, with built-in auto-detection of how many bars occur per day and per week across different symbols/timeframes — so the baseline stays meaningful when you switch instruments or chart intervals, with no manual reconfiguration needed
When real-time volume exceeds a configurable multiple of the average, it's flagged as abnormal volume, with color-coding to distinguish anomalies (red) from normal activity (light yellow)
Visual Output
Displays the volume histogram, weekly average volume line, and the anomaly threshold line together, making it easy to see where current volume stands relative to its recent baseline at a glance
Usage Notes: Useful for identifying moments where price movement may be backed by significant capital flow. It's recommended to combine this with price structure or other indicators for confirmation — abnormal volume alone does not indicate direction, and should be interpreted alongside the bar's closing position or subsequent price reaction.
Disclaimer: This indicator's output is based purely on statistical analysis of historical volume data. It does not constitute trading advice, and past performance does not guarantee future results. Please assess your own risk and trade responsibly.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.