OPEN-SOURCE SCRIPT
Smoothed RoC Z-Score Indicator

This indicator calculates the rate of change (RoC) of price over a user-defined lookback period, then applies a double exponential smoothing (DEMA) and standardizes the result using a Z-Score. The output quantifies how extreme recent price momentum is compared to historical norms.
Key Features:
🔄 RoC Calculation: Measures momentum over the past n bars.
🧮 Z-Score Normalization: Detects statistical extremes and anomalies.
📉 Threshold Signals: Visual markers appear when Z-Score crosses user-defined upper or lower thresholds.
🎨 Elegant Visuals: Uses a clean purple/teal theme for enhanced clarity and style.
🔔 Alerts Included: Get notified when thresholds are crossed.
Use Cases:
Identify potential trend reversals or momentum spikes.
Spot overbought/oversold zones with greater sensitivity than traditional oscillators.
Combine with other indicators or strategies for confirmation.
Customizable Inputs:
RoC Lookback: Controls the momentum period.
Smooth Length: Applies double EMA smoothing.
Z-Score Length: Sets the statistical baseline.
Long/Short Thresholds: Define entry/exit sensitivity.
Key Features:
🔄 RoC Calculation: Measures momentum over the past n bars.
🧮 Z-Score Normalization: Detects statistical extremes and anomalies.
📉 Threshold Signals: Visual markers appear when Z-Score crosses user-defined upper or lower thresholds.
🎨 Elegant Visuals: Uses a clean purple/teal theme for enhanced clarity and style.
🔔 Alerts Included: Get notified when thresholds are crossed.
Use Cases:
Identify potential trend reversals or momentum spikes.
Spot overbought/oversold zones with greater sensitivity than traditional oscillators.
Combine with other indicators or strategies for confirmation.
Customizable Inputs:
RoC Lookback: Controls the momentum period.
Smooth Length: Applies double EMA smoothing.
Z-Score Length: Sets the statistical baseline.
Long/Short Thresholds: Define entry/exit sensitivity.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.