I'm currently about to do my first steps in Ninja Script programming. I started with a modified ZigZag with some different extrema-qualification criterias and used the original ZigZag as a basis.
In general the indicator works fine, but if I attache it to the chart and modify the price scale or if I scroll through the time scale the extremas start to move away from the price. I thought it is a failure of my code, but after checking the original ZigZag I recognized, that this one has the same effect.
Left attachement is the shifted ZigZag line, right one the same indicator, when I scroll a little bit to the future.
Is this a general problem, or is something wrong on my side?
Comment