Thank you Roberto for your reply. I have searched the forum for custom ZigZag indicators, but I haven’t found anything that works as good as the ZigZagpoint feature that I can modify to use the high and low. Does anyone know the code behind the ZigZagpoint feature of PRT?