You are on page 1of 1

//Vortex indicator with defined thresholds created by telusukotrader

study(title = "Vortex Indicator With Thresholds defined", shorttitle="VORTEX from


telusukotrader")
period_ = input(14, title="Period", minval=1)

VMP = sum( abs( high - low[1]), period_ )


VMM = sum( abs( low - high[1]), period_ )
STR = sum( atr(1), period_ )
VIP = VMP / STR
VIM = VMM / STR

plot( VIP, title="VI +", color=black, linewidth=2)


plot( VIM, title="VI -", color=red, linewidth=2)
bandy1 = hline(1, color=gray, linestyle=dashed)
bandy2 = hline(0.9, color=black, linestyle=dashed)
bandy3 = hline(1.1, color=black, linestyle=dashed)
bandy4 = hline(1.3, color=black, linestyle=dashed)
bandy5 = hline(0.7, color=black, linestyle =dashed)

You might also like