Page 1 of 2

Linear Regression Trend Line with Raff Channel

PostPosted: Wed Mar 31, 2010 9:27 am
by Apprentice
Linear Regression Trend Line with Raff Channel.png
Linear Regression Trend Line with Raff Channel


Raff Regression Channel a.k.a. Linear Regression Channel draw two parallel lines above and below the regression line.

Distance between lines corresponding to the farthest closing price from the regression line.

Regression Channels restricts the movement of markets, providing appropriate support and resistance lines.

Short-term excursions outside the channel are possible, long-term absence may be a sign of change in trend.

The Linear Regression trendline shows the equilibrium price (equilibrium)
Linear Regression Channels show the range in which we can expect the price deviation from trend lines.

If you look at indicator options, you can see that the Raff Regression Channel can be turn off.
Linear Regression Trend Line with Raff Channel.lua
Linear Regression Trend Line with Raff Channel
(5.47 KiB) Downloaded 2127 times

Linear Regression Raff Channel with Alert.lua
(19.77 KiB) Downloaded 661 times


The indicator was revised and updated

Re: Linear Regression Trend Line with Raff Channel

PostPosted: Thu Jun 16, 2011 5:54 am
by Jack1688
I like this indicator. But, when I use this indicator, a error often come out

---- An error occurred during the calculation of the indicator 'LINEAR REGRESSION TREND LINE WITH RAFF CHANNEL'. The error details: [string "Linear Regression Trend Line with Raff Chan..."]:128: Index is out of range.

Can anybody check and fix it? may be array[ ] ? or zero divid ? or wrong value?

Thanks.

Re: Linear Regression Trend Line with Raff Channel

PostPosted: Wed Oct 12, 2011 3:50 pm
by Rectav
Hello,

and thanks for this indicator.

Any update on fixing the error "128: "index out of range"

Regards.

Re: Linear Regression Trend Line with Raff Channel

PostPosted: Sun Mar 03, 2013 4:15 pm
by cjfont
This looks like a good indicator, but I think it would be far more useful if instead of using a fixed period in which to segment the regression lines, the indicator would depend upon the zigzag indicator to find the highs/lows, and then use their times to determine each segment to use for the trend line. This way the trend line will conform to the legs created by the zigzag where the actual trends occur.

Re: Linear Regression Trend Line with Raff Channel

PostPosted: Mon Mar 04, 2013 6:25 am
by Apprentice
Bug corrected, Style Updated.

Re: Linear Regression Trend Line with Raff Channel

PostPosted: Mon Jun 06, 2016 5:01 am
by Apprentice
Minor Update.

Re: Linear Regression Trend Line with Raff Channel

PostPosted: Mon Jun 06, 2016 8:20 am
by Cactus
Can you add two more lines to this, 1 between middle and top and 1 between middle and bottom, basically between the central line and most outer lines? Kind of similar fashion to how donchian is divided

Re: Linear Regression Trend Line with Raff Channel

PostPosted: Tue Jun 07, 2016 3:32 am
by Apprentice
Major update.
Try it now.

Re: Linear Regression Trend Line with Raff Channel

PostPosted: Tue Jun 07, 2016 8:04 am
by Cactus
Apprentice wrote:Major update.
Try it now.

Lovely :P

Re: Linear Regression Trend Line with Raff Channel

PostPosted: Tue May 02, 2017 11:41 am
by Apprentice
Indicator was revised and updated.