Upgrading the original function from @iamaltcoin, as the previous version was a calculation of the same numbers without using the original function. Additionally added %KDJ, which takes the average of each the %K, the %D and the %J into a single plot if preferred
Hello, on an indicator how is the value of the indicator painted (plot)in the code?
for example in this.
Thank you.
study(title="Commodity Channel Index", shorttitle="CCI", format=format.price, precision=2)
length = input(14, minval=1)
src = input(close, title="Source")
ma = sma(src, length)
cci = (src - ma) / (0.015 * dev(src, length))
plot(cci, color=color.olive)
band1 = hline(175, color=color.gray, linestyle=hline.style_dashed)
band0 = hline(-175, color=color.gray, linestyle=hline.style_dashed)
fill(band1, band0, color=color.olive)
wen9003
⋅
Hi Bro, mind to share what is bcwsma? i try to understand the formula that you used in this script.
Please do share some knowledge and how you derive 'bcwsma' formula.
Many thanks
jc78607
⋅
what is is bcwsma? wsma = weight simple moving average?