fxcodebase-backup

Linear Regression Trend Line with Raff Channel

Source: https://fxcodebase.com/code/viewtopic.php?f=17&t=548
Forum: 17 · Topic 548 · 15 post(s)


Linear Regression Trend Line with Raff Channel

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 Raff Channel with Alert.lua

The indicator was revised and updated


Re: Linear Regression Trend Line with Raff Channel

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.


Re: Linear Regression Trend Line with Raff Channel

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.


Re: Linear Regression Trend Line with Raff Channel

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.


Re: Linear Regression Trend Line with Raff Channel

Apprentice · Mon Mar 04, 2013 6:25 am

Bug corrected, Style Updated.


Re: Linear Regression Trend Line with Raff Channel

Apprentice · Mon Jun 06, 2016 5:01 am

Minor Update.


Re: Linear Regression Trend Line with Raff Channel

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


Re: Linear Regression Trend Line with Raff Channel

Apprentice · Tue Jun 07, 2016 3:32 am

Major update. Try it now.


Re: Linear Regression Trend Line with Raff Channel

Cactus · Tue Jun 07, 2016 8:04 am

Apprentice wrote: Major update. Try it now.

Lovely


Re: Linear Regression Trend Line with Raff Channel

Apprentice · Tue May 02, 2017 11:41 am

Indicator was revised and updated.


Re: Linear Regression Trend Line with Raff Channel

Apprentice · Mon Jan 08, 2018 6:01 am

Linear Regression Raff Channel with Alert.lua added.


Re: Linear Regression Raff With Alert

Trader · Mon Jan 08, 2018 11:06 am

Hello Apprentice 1] thank you for the effort 2] but the alerts are not working for; Bottom Line Cross Under [and] Top Line Cross Over 3] have checked this at various setting for tolerance on different pairs and time frames but no alert 4] please check Best regards Trader


Re: Linear Regression Trend Line with Raff Channel

caaaaaaalmement · Sat Mar 21, 2020 4:18 am

Hi Apprentice, the alerts are not working


Re: Linear Regression Trend Line with Raff Channel

Apprentice · Sat Mar 21, 2020 5:54 am

Your request is added to the development list. Development reference 915.


Re: Linear Regression Trend Line with Raff Channel

Apprentice · Mon Mar 23, 2020 4:59 am

Can’t repeat.