OPEN-SOURCE SCRIPT
Volume Weighted Regression Channel

This indicator constructs a volume-weighted linear regression channel over a custom time range.
It’s conceptually similar to a Volume Profile, but instead of projecting horizontal value zones, it builds a tilted trend channel that reflects both price direction and volume concentration.
🧠 Core Features:
Volume-weighted points: Each candle contributes to the regression line proportionally to its volume — heavier candles shift the channel toward high-activity price zones.
Linear regression line: Shows the trend direction within the selected time interval.
±σ boundaries: Outer bands represent the standard deviation of price (also volume-weighted), highlighting statistical dispersion.
Fully customizable: Adjustable line styles, widths, and channel width (sigma multiplier).
Time window control: Select any start and end time to define the regression interval.
📊 Why use this instead of Volume Profile?
While Volume Profile shows horizontal distributions of traded volume, this indicator is ideal when:
You want to understand how volume clusters affect trend direction, not just price levels.
You're analyzing time-dependent flow rather than static price zones.
You're looking for a dynamic volume-adjusted channel that moves with the market's structure.
It’s especially useful in identifying volume-supported trends, hidden pullback zones, and statistical extremes.
⚙️ Notes:
Works on any timeframe and instrument.
Does not repaint.
Does not require volume profile data feeds — uses standard volume and hl2.
It’s conceptually similar to a Volume Profile, but instead of projecting horizontal value zones, it builds a tilted trend channel that reflects both price direction and volume concentration.
🧠 Core Features:
Volume-weighted points: Each candle contributes to the regression line proportionally to its volume — heavier candles shift the channel toward high-activity price zones.
Linear regression line: Shows the trend direction within the selected time interval.
±σ boundaries: Outer bands represent the standard deviation of price (also volume-weighted), highlighting statistical dispersion.
Fully customizable: Adjustable line styles, widths, and channel width (sigma multiplier).
Time window control: Select any start and end time to define the regression interval.
📊 Why use this instead of Volume Profile?
While Volume Profile shows horizontal distributions of traded volume, this indicator is ideal when:
You want to understand how volume clusters affect trend direction, not just price levels.
You're analyzing time-dependent flow rather than static price zones.
You're looking for a dynamic volume-adjusted channel that moves with the market's structure.
It’s especially useful in identifying volume-supported trends, hidden pullback zones, and statistical extremes.
⚙️ Notes:
Works on any timeframe and instrument.
Does not repaint.
Does not require volume profile data feeds — uses standard volume and hl2.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.