Login Page - Create Account

Support Board


Date/Time: Mon, 17 Mar 2025 12:12:50 +0000



[BUG] ZigZag only paints 1800 days of data

View Count: 451

[2022-09-06 13:56:58]
maxima120 - Posts: 144
I tried several ZigZag studies - SC original plus few I had made during the past decade. All of them only works for first 1800 days, so if the chart (40 range - I dont know how many bars tbh) has more than 1800 days - ZZ simply outputs 0 for the reminder of most recent days..
I walked through the source code - there is a function which does most of the work which has no shared source code. I guess it has a bug because the rest of the code has no apparent limits.

Could you please fix it asap? Thank you
[2022-09-06 22:21:17]
John - SC Support - Posts: 38678
We do not see this. We put on a chart with 2000 days and the Zig Zag study drew on nearly all the bars. The only area where it did not draw is the most recent data in which there were about 30 bars that did not have any information. But this is due to how the Zig Zag study works in that it does not draw the line unless there is an inflection point, and since there was not another inflection in the data, it does not draw the unfinished line.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-09-06 22:48:19]
maxima120 - Posts: 144
I added it to a tick-nyse 40 range chart. I don't know how many bars there. I'll have a look tomorrow
Date Time Of Last Edit: 2022-09-06 22:48:32
[2022-09-07 11:42:20]
maxima120 - Posts: 144
I numbered bars and ZigZag (default values - out of the box) stops calculating near bar # 16,777,200
[2022-09-07 17:09:46]
John - SC Support - Posts: 38678
Is that relatively near the end of the chart? Is it just that there is not another inflection point before the end of the chart?
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-09-07 17:12:23]
John - SC Support - Posts: 38678
Another way to check this is to change the Input for Reversal % for Calculation Mode 1 to 0.01. This should give you a reversal at every bar (or nearly so). Therefore, it should show the lines all the way to the end of the chart.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-09-08 13:26:02]
maxima120 - Posts: 144
no. its not nearly the end of the chart. it is 16mil bars from the right. so on the left there will be as many bars as you make the chart length. could be another several million. its very simple to repo.

open tick-nyse 1 min chart
apply zigzag
observe zigzag paints the whole chart
change "data limiting" to 3000 days
observe zigzag paints the whole chart
change "bar period" to 40 rng
observe zigzag stops working on 2021-7-28" (ZigZag value == 0 to the end of the chart)

it is more than a year ago - few millions of bars left without ZigZag not just few until next "inflection point" forms..

hope this clears it, but please let me know if you need more info.
[2022-09-09 21:48:16]
John - SC Support - Posts: 38678
Yes, we see this occurring. The only thing we can say for sure is that it is related to the underlying code for the study and that it can not handle more than about 1.5 million bars.

The simple solution is to not use the study on that many bars. If necessary create another chart with fewer bars on it and apply the Zig Zag study on that chart.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account