ZeroLag EMA Bollinger Bands

Category: Indicators By: Nicolas Created: June 11, 2016, 5:01 PM
June 11, 2016, 5:01 PM
Indicators
1 Comment

This indicator is the classical Bollinger Bands but built upon a ZeroLag exponential average and not with the original 20 periods SMA. The ZeroLag EMA is a variation of the EMA but add momentum short term weight of price to reduce lag. 

Coded by request on the English forum.

 

// parameters
// period = 20
// dev = 2.0

lag = ROUND((period-1)/2)
data = (close + (close-close[lag]))

ZLEMA = exponentialaverage[period](data)
BolUp = ZLEMA+STD[period]*dev
BolDn = ZLEMA-STD[period]*dev

RETURN ZLEMA as "ZeroLag EMA", BolUp as "Bollinger Up ZLEMA", BolDn as "Bollinger Down ZLEMA"

 

Download
Filename: ZeroLag-Bollinger-Bands.itf
Downloads: 122
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...