Linear Regression Histogram

October 26, 2021

This indicator is inspired by traditional statistical histograms. It will return the number of occurrences of price falling within each interval (bins) of the linear regression channel. This can be useful to highlight zones of interest within a trend.

This indicator is inspired by traditional statistical histograms. It will return the number of occurrences of price falling within each interval (bins) of the linear regression channel. This can be useful to highlight zones of interest within a trend.

Settings

  • Length: Number of recent closing prices used for the computation of the linear regression .
  • Bins Number: Number of intervals constructed from the linear regression channel.
  • Mult: Multiplicative factor for the RMSE. Controls the width of the linear regression channel.
  • Src: Input source of the indicator.

Usage

The indicator is constructed by dividing the linear regression channel range into a series of intervals (bins) of equal width. We then count the number of price values falling within each interval.

If a significant number of price values fall within a specific interval then that interval can highlight a potential zone of interest within a trend.

The zone of interest is highlighted in blue.

Other Stories

Multi-Length Stochastic Average

11/23/2021
New Feature
Indicator
Educational

This indicator returns the average of stochastic oscillators with periods ranging from 4 to length. This allows for a slightly more reactive oscillator as well as having information regarding the position of the price relative to rolling maximums/minimums of different periods. We introduce settings that allow for pre and post-smoothing, with selectable smoothing methods and periods for both steps.

HOW-TO: Automatic Pattern Detection in TradingView

11/23/2021
New Feature
Indicator
Educational

Chart patterns are governed by precise identification guidelines and it is important to effectively recognize the presence of a specific pattern. Since this recognition process can be subjective, we designed a robust and efficient algorithm for the detection of traditional chart patterns, saving users valuable time.