I'm trying to use the ZigZag in a custom script. When I overlay the indicator on the chart it seems to work fine and is catching the swing highs and lows that I'd like it to catch but when I use the indicator method in a custom script I'm getting very weird results (pls see attached)
Also, I've never paid attention to these things but when I analyzed the price data in more detail in trying to debug the ZigZag calculation I was very surprised to see a lot of bar timestamps that show up in the output window but I cant see those bars on the chart.
could you please help me regarding this. thanks in advance...

Comment