OPEN-SOURCE SCRIPT
ROC-WMA bull bear indicator

ROC-Weighted MA Oscillator
By Ludovic B
Modified source code of SeerQuant
The ROC-Weighted MA Oscillator (ROCWMA) is a momentum-driven oscillator designed to expose hidden acceleration and deceleration phases in price action by dynamically weighting a moving average with the normalized Rate of Change (ROC).
Instead of treating all price deviations equally, this indicator amplifies meaningful moves and suppresses low-energy noise, making it particularly effective in scalping, intraday trading, and momentum reversals.
🔧 Core Concept
A base moving average (SMA, EMA, TEMA, DEMA, HMA, ALMA, etc.)
Weighted by normalized ROC
Transformed into a Z-score oscillator for comparability across assets
Smoothed with a signal line for timing precision
Result: a context-aware oscillator that adapts to market intensity.
📊 What the Oscillator Shows
Bullish momentum when histogram is positive and expanding
Bearish momentum when histogram is negative and expanding
Neutral zone to filter chop and avoid over-trading
Automatic color logic to highlight regime changes
Optional candle coloring reflects the active momentum state.
🎯 Signal-Based Price Markers (Advanced Feature)
This script includes price-chart markers when:
The signal line retraces to X% of the maximum oscillator bar of the current momentum phase
AND the signal slope confirms exhaustion (rising or falling)
Key characteristics:
Adaptive thresholds (relative, not fixed)
Separate logic for bullish and bearish phases
Reset on each neutral-zone transition
Configurable number of markers per momentum cycle
This makes the indicator particularly useful for:
Pullback entries
Momentum fading
Timing partial exits
⚙️ Customization
Fully adjustable ROC length, MA type, signal length
Neutral zone threshold control
Multiple color schemes
Optional candle coloring
Adaptive signal-to-oscillator percentage logic
🧠 Best Use Cases
Scalping (M1–M5)
Intraday momentum confirmation
Pullback and exhaustion detection
Cross-asset trading (FX, indices, crypto, metals)
ROCWMA is not a lagging oscillator.
It is a momentum intensity detector built to reveal when price moves matter.
By Ludovic B
Modified source code of SeerQuant
The ROC-Weighted MA Oscillator (ROCWMA) is a momentum-driven oscillator designed to expose hidden acceleration and deceleration phases in price action by dynamically weighting a moving average with the normalized Rate of Change (ROC).
Instead of treating all price deviations equally, this indicator amplifies meaningful moves and suppresses low-energy noise, making it particularly effective in scalping, intraday trading, and momentum reversals.
🔧 Core Concept
A base moving average (SMA, EMA, TEMA, DEMA, HMA, ALMA, etc.)
Weighted by normalized ROC
Transformed into a Z-score oscillator for comparability across assets
Smoothed with a signal line for timing precision
Result: a context-aware oscillator that adapts to market intensity.
📊 What the Oscillator Shows
Bullish momentum when histogram is positive and expanding
Bearish momentum when histogram is negative and expanding
Neutral zone to filter chop and avoid over-trading
Automatic color logic to highlight regime changes
Optional candle coloring reflects the active momentum state.
🎯 Signal-Based Price Markers (Advanced Feature)
This script includes price-chart markers when:
The signal line retraces to X% of the maximum oscillator bar of the current momentum phase
AND the signal slope confirms exhaustion (rising or falling)
Key characteristics:
Adaptive thresholds (relative, not fixed)
Separate logic for bullish and bearish phases
Reset on each neutral-zone transition
Configurable number of markers per momentum cycle
This makes the indicator particularly useful for:
Pullback entries
Momentum fading
Timing partial exits
⚙️ Customization
Fully adjustable ROC length, MA type, signal length
Neutral zone threshold control
Multiple color schemes
Optional candle coloring
Adaptive signal-to-oscillator percentage logic
🧠 Best Use Cases
Scalping (M1–M5)
Intraday momentum confirmation
Pullback and exhaustion detection
Cross-asset trading (FX, indices, crypto, metals)
ROCWMA is not a lagging oscillator.
It is a momentum intensity detector built to reveal when price moves matter.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.