The ZigZag indicator that comes with NT8 has a lag wrt updating new highs and new lows. I have been trying to revise the indicator to update on bar close every High[0] > High[1] and for every Low[0] < Low[1]. I just keep getting an index out of range error.
Below is a picture of two different ZigZag indicators. The blue line is the ZigZag indicator that comes with NT8. The yellow one is another ZZ indicator.
As you can see, there have been numerous new highs and the blue ZigZag indicator hasn't updated. I want it to update like the yellow one.
Can you please give me some direction on how to accomplish this?

Comment