by mariqmarzuki » Mon Jan 06, 2020 11:46 am
//@version=4
study("DIX", shorttitle="DIX")
length = input(title="Length", type=input.integer, minval=1, defval=14)
src = input(title="Source", type=input.source, defval=close)
di = 100 * (src - sma(src, length)) / sma(src, length)
diColor = di >= 0 ? #42a5f5 : #ef5350
plot(di, title="Disparity Index", linewidth=1, color=diColor, transp=0)
hline(0, title="Zero Level", linestyle=hline.style_solid, color=#434651)
above is my code from tradingview, was hoping I can select a different MA from options like EMA WMA TRIMA KAMA MEMA VIDYA if possible thanks!