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.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.