Bollinger Bands with linear regression

Category: Indicators By: Nicolas Created: July 23, 2015, 8:52 PM
July 23, 2015, 8:52 PM
Indicators
0 Comments

This is the typical Bollinger Bands indicator made of linear regression for earch lines : center, high and low deviation of the average price.

 

//standard parameters of Bollinger Bands :
//PERIOD = 20
//dev = 2

i1 = LinearRegression[PERIOD](Close) 
up = i1+dev*STD[PERIOD](i1) 
down = i1-dev*STD[PERIOD](i1)

RETURN i1,up,down

 

Download
Filename: BBands-Linear-Regression.itf
Downloads: 207
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...