Linear Regression Channel

Category: Indicators By: Nicolas Created: October 13, 2015, 7:26 PM
October 13, 2015, 7:26 PM
Indicators
0 Comments

Another channel indicator made of standard deviation of a 2 centered linear regression of the 300 last periods of high and low price values (by default).

 

//Parameters :
// Len = 300

z1 = linearregression[Len](high)
z2 = linearregression[Len](low)
z2s = -std[len](low)+z2
z1s = std[len](high)+z1

RETURN z1 coloured(255,250,240), z2 coloured(255,250,240), z1s as "high LR dev", z2s as "low LR dev"

 

Download
Filename: Linear-Regression-Channel.itf
Downloads: 337
Nicolas Master
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

Logo Logo
Loading...