Linear Regression Trend Line with Raff Channel

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Linear Regression Trend Line with Raff Channel

Postby Apprentice » Wed Mar 31, 2010 9:27 am

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 2125 times

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


The indicator was revised and updated
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Linear Regression Trend Line with Raff Channel

Postby Jack1688 » Thu Jun 16, 2011 5:54 am

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.
Jack1688
 
Posts: 1
Joined: Tue Jun 14, 2011 12:55 pm

Re: Linear Regression Trend Line with Raff Channel

Postby Rectav » Wed Oct 12, 2011 3:50 pm

Hello,

and thanks for this indicator.

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

Regards.
Rectav
 
Posts: 10
Joined: Fri Jul 22, 2011 4:45 pm

Re: Linear Regression Trend Line with Raff Channel

Postby cjfont » Sun Mar 03, 2013 4:15 pm

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.
cjfont
 
Posts: 3
Joined: Wed Jan 23, 2013 11:11 pm



Re: Linear Regression Trend Line with Raff Channel

Postby Cactus » Mon Jun 06, 2016 8:20 am

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
Never chase the money, let the money come to me
User avatar
Cactus
FXCodeBase: Graduate
 
Posts: 242
Joined: Fri Feb 19, 2016 11:46 am
Location: Errywhere


Re: Linear Regression Trend Line with Raff Channel

Postby Cactus » Tue Jun 07, 2016 8:04 am

Apprentice wrote:Major update.
Try it now.

Lovely :P
Never chase the money, let the money come to me
User avatar
Cactus
FXCodeBase: Graduate
 
Posts: 242
Joined: Fri Feb 19, 2016 11:46 am
Location: Errywhere


Next

Return to Custom Indicators

Who is online

Users browsing this forum: No registered users and 48 guests