OPEN-SOURCE SCRIPT
已更新

BB Oscillator - Price Relative to Bollinger Bands

845
This Bollinger Band Oscillator visualizes where the current price sits relative to its Bollinger Bands, scaled between 0 and 100. It helps identify overbought and oversold conditions based on the price’s position within the bands and provides dynamic signals when momentum shifts occur.

Features

Price Relative to Bollinger Bands
The main oscillator plots the price’s relative position within the Bollinger Bands on a scale from 0 (lower band) to 100 (upper band), giving an intuitive view of where price stands.

Customizable Moving Average Overlay
An optional moving average (SMA or EMA) smooths the oscillator for trend analysis, with adjustable length and color options.

Crossover & Crossunder Signals
Alerts and background highlights trigger when the oscillator crosses over or under its moving average, signaling potential momentum shifts or trend changes.

Fully Customizable Colors
Choose your preferred colors for the oscillator line, moving average and crossover signals to match your charting style.

This tool offers a unique oscillator view of Bollinger Bands, combining volatility context with momentum signals for clearer decision-making.
版本注释
New feature:
Display phases of expanded or tight bollinger bands

Red- or green-colored zero/100-lines indicate expanded/tight bollinger bands relative to the last 200 candles (number may be changed in the indicator settings).
版本注释
Much enhanced visuals & customization
- Converted the main plot to columns style for clearer representation
- Extended BBands (above 100 or below 0) are now distinctly colored
- New background fills highlight extreme overbought/oversold ranges
- Added dynamic coloring for price relative to its moving average, based on whether it's above or below
- New "Dark Mode" switch
- Option to change background color on cross-ups/cross-downs.
- Improved "BB Cloud" visualization with configurable colors for light/dark mode.
- Adjusted default colors for better readability and aesthetics.

BB Tightness Visualization
- Added visual shapes (triangle up/down) to indicate "Expanded BBs" and "Tight BBs" at the top and bottom of the indicator pane, respectively.

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。