OPEN-SOURCE SCRIPT
Actualizado Price oscillator [Session Adjusted]

Price Oscillator
This indicator combines directional momentum bias with dynamic volatility analysis, helping traders identify both trend direction and potential exhaustion zones.
Core Concept
The oscillator calculates the percentage deviation of price from a session-adjusted moving average (close / MA - 1).
The histogram is plotted as always-positive columns (green when price is above the MA, red when below). This design enables a clear visual comparison between momentum strength and the Bollinger Band Width (BBW).
When the colored columns cross above the BBW line, it signals an over-extended condition, often indicating a high probability of imminent correction or mean reversion.
Volatility Analysis
The blue BBW line is a key element of the indicator:
- Rising BBW (positive slope) indicates volatility expansion — typically associated with strong trending moves or breakout phases.
- Falling BBW (negative slope) indicates volatility contraction — often signaling consolidation periods or impending explosive moves.
Main Features
Adaptive Lookback Period:
Automatically adjusts based on the selected session duration (default 24 hours), providing timeframe consistency.
Flexible Smoothing:
Choose between SMA, EMA, RMA, or WMA for the reference moving average.
Dual Signal System:
Colored columns show momentum direction and strength.
BBW line reveals both the level and the direction (slope) of volatility.
Exhaustion Zones:
Crosses between momentum columns and BBW act as dynamic overbought/oversold signals.
How to Use
Directional Bias Filter: Green columns = bullish bias | Red columns = bearish bias.
Volatility Regime: Use the slope of the BBW line to distinguish between trending (expanding volatility) and consolidating (contracting volatility) environments.
Correction Signals: Watch for strong momentum columns crossing above the BBW line — this frequently precedes pullbacks or reversals.
Particularly effective on Forex pairs and European indices (DAX, CAC40, FTSEMIB, etc.) on 1H to 4H, and Daily timeframes.
This indicator combines directional momentum bias with dynamic volatility analysis, helping traders identify both trend direction and potential exhaustion zones.
Core Concept
The oscillator calculates the percentage deviation of price from a session-adjusted moving average (close / MA - 1).
The histogram is plotted as always-positive columns (green when price is above the MA, red when below). This design enables a clear visual comparison between momentum strength and the Bollinger Band Width (BBW).
When the colored columns cross above the BBW line, it signals an over-extended condition, often indicating a high probability of imminent correction or mean reversion.
Volatility Analysis
The blue BBW line is a key element of the indicator:
- Rising BBW (positive slope) indicates volatility expansion — typically associated with strong trending moves or breakout phases.
- Falling BBW (negative slope) indicates volatility contraction — often signaling consolidation periods or impending explosive moves.
Main Features
Adaptive Lookback Period:
Automatically adjusts based on the selected session duration (default 24 hours), providing timeframe consistency.
Flexible Smoothing:
Choose between SMA, EMA, RMA, or WMA for the reference moving average.
Dual Signal System:
Colored columns show momentum direction and strength.
BBW line reveals both the level and the direction (slope) of volatility.
Exhaustion Zones:
Crosses between momentum columns and BBW act as dynamic overbought/oversold signals.
How to Use
Directional Bias Filter: Green columns = bullish bias | Red columns = bearish bias.
Volatility Regime: Use the slope of the BBW line to distinguish between trending (expanding volatility) and consolidating (contracting volatility) environments.
Correction Signals: Watch for strong momentum columns crossing above the BBW line — this frequently precedes pullbacks or reversals.
Particularly effective on Forex pairs and European indices (DAX, CAC40, FTSEMIB, etc.) on 1H to 4H, and Daily timeframes.
Notas de prensa
New Feature: Dynamic Volatility LevelsAdded dynamic highest expansion and lowest contraction levels for the Bollinger Band Width (BBW).
These levels automatically adapt to the selected Volatility lookback (days) period (default 25 days).
Displayed as subtle circle markers:
- Red circles = Highest BBW (maximum volatility expansion observed in the period)
- Green circles = Lowest BBW (maximum volatility contraction observed in the period)
Benefits of this update
Provides contextual volatility boundaries that adjust to changing market regimes.
Helps traders better identify when current volatility is relatively high (near red circles) or low (near green circles).
Improves the interpretation of BBW crosses with the momentum columns by offering dynamic reference levels instead of fixed ones.
Particularly useful on Forex and European indices, where volatility behavior changes significantly between sessions and market conditions.
Other Changes
Default smoothing method changed to RMA for slightly faster responsiveness.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.