On Balance Volume Oscillator + Bollinger Bands
Oct 13, 2018

The On Balance Volume Oscillator + Bollinger Bands indicator provides a specialized momentum and volume analysis tool that combines an OBV-based oscillator with volatility bands to identify overextended market conditions and potential price reversals.
Usage
The tool is primarily used to spot trend exhaustion and potential turning points. When the OBV line extends beyond the Bollinger Bands, it highlights a potential "over-extended" zone, often visualized by the line changing color to yellow. Traders can also look for divergences between the oscillator peaks and price action to forecast trend shifts.
The indicator features several visual modes:
- Volatility Analysis: Bollinger Bands provide a dynamic range for the OBV oscillator.
- Trend Identification: The background area can be colored based on whether the OBV is above or below its moving average (green for bullish, red for bearish).
- Peak Detection: Highlighting points where volume momentum exceeds standard deviation limits.
Details
This script is inspired by the classic OBV Oscillator concept which subtracts an Exponential Moving Average (EMA) of the On Balance Volume from the cumulative OBV itself. This process centers the volume data around a zero line, creating an oscillator. By applying Bollinger Bands to this resulting oscillator, the script calculates volatility based on volume flow rather than just price, offering a unique perspective on market participation during price moves.
Settings
- OBV Price Source: Determines which price point (Close, Open, High, etc.) is used for the OBV calculation.
- Timeframe: Sets the length for both the OBV EMA and the Bollinger Bands SMA calculation.
- Use Bollinger Bands: Enables or disables the volatility bands.
- BB Multiplier: Adjusts the width of the bands based on standard deviations.
- Highlight OBV above/below MA Area: Toggles the background coloring based on the relationship between OBV and its basis line.
- Highlight OBV Balance Area: Enables a filled area plot under the OBV line.
- Highlight OBV Line outside BB bands: Enables the color change (yellow) when the oscillator exceeds the bands.
FAQ
How do I access the On Balance Volume Oscillator + Bollinger Bands?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
What does it mean when the line turns yellow?
The line turns yellow when the OBV Oscillator moves outside the upper or lower Bollinger Bands, indicating that volume momentum is reaching an extreme level relative to the recent average.
Can I use this as a standalone oscillator?
Yes, by disabling the "Use Bollinger Bands" setting and enabling the "Highlight OBV Balance Area," the script functions as a standard OBV Oscillator.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.