Bollinger Shifted bands

Category: Indicators By: Nicolas Created: March 3, 2016, 1:01 PM
March 3, 2016, 1:01 PM
Indicators
0 Comments

This indicator is a bollinger bands shifted in time to act as a support / resistance cloud and trend detector.

 

//p=34
//factor=0.89
//s=8
//t=MM type

co=customclose
av=average[p,t](co)
som=0
for i=0 to p-1 do
  som = som + SQUARE( close[i]-av)
next
som=som / p
ecart = SQRT(som)
bas3 = av - factor*ecart
haut3= av + factor*ecart

return bas3[s] AS "Bollinger Upper",haut3[s] AS "Bollinger Lower"

 

Download
Filename: Bollinger-Shift.itf
Downloads: 137
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...