Optuma Forums › Optuma Scripting › Vortex Indicator › Reply To: Vortex Indicator
December 8, 2020 at 9:20 am
#61608

- Topics: 5
- Replies: 326
- Posts: 331
Hi,
I had this script saved from awhile ago for the Vortex Indicator which works with a Show View tool:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
//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: