PROTECTED SOURCE SCRIPT
[DEM] On Balance Volume

[DEM] On Balance Volume is an enhanced version of the classic OBV indicator that transforms volume-price momentum into a histogram format with dynamic color coding to visualize trend strength and direction changes. The indicator calculates traditional On Balance Volume by accumulating volume based on price direction, then applies user-selectable smoothing (SMA, EMA, RMA, WMA, or VWMA) followed by dual RMA filtering with fast (14-period) and slow (80-period) parameters to create a momentum oscillator. The final output displays the difference between fast and slow lines as colored columns, where lime indicates strengthening upward momentum, red shows intensifying downward momentum, fuchsia represents weakening upward momentum, and green signals weakening downward momentum. This approach provides traders with a clear visual representation of volume-based momentum shifts while filtering out noise through multiple layers of smoothing, making it easier to identify significant changes in buying and selling pressure compared to traditional OBV displays.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.