selfhigh05 23 posts msg #136681 - Ignore selfhigh05 |
7/9/2017 10:59:06 AM
Here is the filter from TV, need help coding it here. Looks like the CEMA only allows indicators so I am at a loss on how to get around it. It looks to be a great indicator and would love to have someones help in coding it here. Not that crazy about the graphing of it just in the actual value. Any help would be greatly appreciated.
study(title="CCI with Volume Weighted EMA ", overlay=false)
length = input(10, minval=1)
xMAVolPrice = ema(volume * close, length)
xMAVol = ema(volume, length)
src = xMAVolPrice / xMAVol
ma = sma(src, length)
cci = (src - ma) / (0.015 * dev(src, length))
plot(cci, color=black, linewidth=2)
band1 = hline(100, color=gray, linestyle=dashed)
band0 = hline(-100, color=gray, linestyle=dashed)
fill(band1, band0, color=olive)
|