the code posted I have written but i put that code in the pasties section as an example. This guy removed my name and posted the code for some reason. Seems like a joke of some kind. Strange that the Administrator allows this. He doesn't even check if the code corresponds to the chart. Not posting there myself any more. This site has no quality standard whatsoever in my opinion.
But I used this code to make an interesting indicator, see:
The image posted by you could be detecting peaks and troughs differently
or could be using different percentage with Zig, so unless you have more than one image with clearly legible prices, you can only guess what the other person is doing.