Vortex Indicator

Hello,

Curious if anyone has programmed the Vortex indicator and did any testing with it?

https://www.investopedia.com/terms/v/vortex-indicator-vi.asp

Jeff

Hi,

I had this script saved from awhile ago for the Vortex Indicator which works with a Show View tool:

//Set True Range
TR=TRUERANGE() ;
//Set VM plus and minus
VMPLUS= ABS(HIGH() - LOW(1));
VMMINUS = ABS(LOW() - HIGH(1));
//Sum using 14 Days
SUMTR=ACC(TR, RANGE=Look Back Period, BARS=14);
SUMVMP = ACC(VMPLUS, RANGE=Look Back Period, BARS=14) ;
SUMVMM = ACC(VMMINUS, RANGE=Look Back Period, BARS=14) ;
//Build the Plots of the Indicator
plot1 = SUMVMP / SUMTR ;
plot2 = SUMVMM / SUMTR ;
plot3 = 1
plot1.Colour = Green;
plot2.Colour = Red;
plot3.Colour = Gray;
plot3.Linestyle = Dash;

This is how it looks on the chart:

Ex8

Thanks very much!!