Dynamic Range Commodity Channel Index

Category: Indicators By: Nicolas Created: October 12, 2015, 8:37 PM
October 12, 2015, 8:37 PM
Indicators
4 Comments

This oscillator is made of a derivated CCI indicator and its standard deviation. The concept behind this indicator is to draw the derivated price over a bounded oscillator.

The 2 standard deviation of the oscillator are dynamic to reflect the near-past high and low deviations.

 

ma=average[length](close-close[1])
ret=((close-close[1]) - ma) / (0.015 * std[length](close-close[1]))

c = exponentialaverage[smooth](exponentialaverage[smooth](ret))
pos = std[length](c)
neg = -std[length](c)

hh=highest[length](max(pos,neg))
ll=lowest[length](min(pos,neg))

RETURN hh coloured(0,255,0) as "ob", ll coloured(255,0,0) as "os", c coloured(255,255,0) as "cci"

 

Download
Filename: Dynamic-Range-CCI.itf
Downloads: 107
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...