Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
What is supposed to appear exactly? An object? A line?
Yes, the principle is the same, set up a separate tree, and when a X< happens reset the existing variable (modify variables) to 0.
GReat for you, but please notice that ZigZag is a VERY trick indicator. You'll have to be patient when working with it.