OPEN-SOURCE SCRIPT
Colored Volume Bars [LazyBear] v6 [Remake J. Lubin 5/2026]

A modernized Pine Script v6 rebuild of LazyBear's classic *Colored Volume Bars* indicator, with new themes, a multi-type volume moving average, and built-in alerts.
The script colors each volume bar based on the relationship between the **current bar and a lookback bar** — comparing both price direction and volume change — to make accumulation, distribution, exhaustion, and stealth moves visually obvious at a glance.
**Color logic**
- **Price Up + Volume Up** → strong bullish (real buying pressure)
- **Price Up + Volume Down** → weak bullish (rally on thin volume)
- **Price Down + Volume Up** → strong bearish (active selling)
- **Price Down + Volume Down** → weak bearish (fading sellers)
- **Neutral** → no clear direction
**Features**
- Pine Script v6, lightweight and fast
- 4 visual themes + fully customizable colors:
- Classic LazyBear
- Futuristic Neon
- Modern Professional
- Minimal Clean
- Custom
- Optional volume moving average with **5 MA types**: SMA, EMA, RMA, WMA, TEMA (true triple-EMA formula)
- Adjustable lookback, bar transparency, and MA line width
- Built-in alerts:
- Bullish confirmation (price up + volume up)
- Bearish confirmation (price down + volume up)
- Volume expansion
- Volume contraction
**How to use**
Add it to any chart and any timeframe. Use it as a confirmation tool alongside price action, trend, or breakout strategies — green/strong-color bars confirm conviction behind a move; weak-color bars warn that momentum may be fading.
**Credits**
Original concept by **LazyBear**. This version is a full v6 rewrite with theming, MA flexibility, and alerts added — original color logic preserved exactly under the "Classic LazyBear" theme.
The script colors each volume bar based on the relationship between the **current bar and a lookback bar** — comparing both price direction and volume change — to make accumulation, distribution, exhaustion, and stealth moves visually obvious at a glance.
**Color logic**
- **Price Up + Volume Up** → strong bullish (real buying pressure)
- **Price Up + Volume Down** → weak bullish (rally on thin volume)
- **Price Down + Volume Up** → strong bearish (active selling)
- **Price Down + Volume Down** → weak bearish (fading sellers)
- **Neutral** → no clear direction
**Features**
- Pine Script v6, lightweight and fast
- 4 visual themes + fully customizable colors:
- Classic LazyBear
- Futuristic Neon
- Modern Professional
- Minimal Clean
- Custom
- Optional volume moving average with **5 MA types**: SMA, EMA, RMA, WMA, TEMA (true triple-EMA formula)
- Adjustable lookback, bar transparency, and MA line width
- Built-in alerts:
- Bullish confirmation (price up + volume up)
- Bearish confirmation (price down + volume up)
- Volume expansion
- Volume contraction
**How to use**
Add it to any chart and any timeframe. Use it as a confirmation tool alongside price action, trend, or breakout strategies — green/strong-color bars confirm conviction behind a move; weak-color bars warn that momentum may be fading.
**Credits**
Original concept by **LazyBear**. This version is a full v6 rewrite with theming, MA flexibility, and alerts added — original color logic preserved exactly under the "Classic LazyBear" theme.
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.