DeltaSeek

Linear Regression Volume Profile

DeltaSeek Updated   
Linear Regression Volume Profile plots the volume profile fixated on the linear regression of the lookback period rather than statically across y = 0. This helps identify potential support and resistance inside of the price channel.

Settings
Linear Regression
  • Linear Regression Source: the price source in which to sample when calculating the linear regression
  • Length: the number of bars to sample when calculating the linear regression
  • Deviation: the number of standard deviations away from the linear regression line to draw the upper and lower bounds
Linear Regression
  • Rows: the number of rows to divide the linear regression channel into when calculating the volume profile
  • Show Point of Control: toggle whether or not to plot the level with highest amount of volume

Usage
Similar to the traditional Linear Regression and Volume Profile this indicator is mainly to determine levels of support and resistance. One may interpret a level with high volume (i.e. point of control) to be a potential reversal point.

Details
This indicator first calculates the linear regression of the specified lookback period and, subsequently, the upper and lower bound of the linear regression channel. It then divides this channel by the specified number of rows and sums the volume that occurs in each row. The volume profile is scaled to the min and max volume.
Release Notes:
  • fixed bug regarding linear regression length being longer than bar_index
  • updated chart
Release Notes:
  • Fixed custom Point of Control color
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?