Hello there, I handle the above zigzag and I come out with 2 zigzag codes base, one for the uptrend and the other for downtrend and I trying to combine both codes to get one special code for zigzag, I got nice results testing each code by itself, you can see my screenshot below.