Log Bollinger Bands %BB Oscillator
Dec 25, 2017

The Log Bollinger Bands %BB Oscillator indicator calculates the standard %B metric within a logarithmic space, providing a normalized oscillator that identifies where price sits relative to its Bollinger Bands.
Usage
The indicator oscillates primarily between 0 and 1, where 1 represents the upper Bollinger Band and 0 represents the lower Bollinger Band.
- Overbought/Oversold: Values above 1 indicate price is trading above the upper band, while values below 0 indicate price is trading below the lower band.
- Mean Reversion: Traders often look for crosses back into the 0-1 range as potential signals for mean reversion.
- Trend Strength: Sustained readings above 0.5 suggest bullish momentum, while readings below 0.5 suggest bearish momentum.
- Moving Average: An optional EMA can be enabled to smooth the oscillator and help identify the broader trend of the %B fluctuations.
Details
Unlike the standard %B oscillator which uses linear price data, this version performs its calculations (SMA and Standard Deviation) on the natural logarithm of the source price. This approach can be particularly useful for long-term analysis or volatile assets where percentage changes are more relevant than absolute point changes. The implementation includes built-in alert conditions for crossovers of the 0 and 1 levels to assist in monitoring extreme price extensions.
Settings
- Length: The lookback period for both the SMA and Standard Deviation calculations.
- MA Length: The period used for the optional exponential moving average line.
- StdDev: The multiplier for the standard deviation, defining the width of the bands.
- Source: The price data input used for the calculation (default is Close).
- Show Moving Average: Toggles the visibility of the signal EMA line.
FAQ
How do I interpret the 0 and 1 levels?
The 0 level represents the lower Bollinger Band, and the 1 level represents the upper Bollinger Band. Values between these two levels indicate the price is within the bands.
Why use logarithmic calculations for %B?
Logarithmic calculations treat price movements as percentage changes rather than absolute values, which can provide a more consistent oscillator scale when analyzing assets with significant price appreciation or volatility.
How can I access the Log Bollinger Bands %BB Oscillator?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
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.