Login Page - Create Account

Support Board


Date/Time: Tue, 04 Mar 2025 12:10:10 +0000



[Programming Help] - Study/Price Overlay problem with ZIG ZAG study

View Count: 854

[2021-12-03 06:48:14]
like2trade - Posts: 117
In chart 1 I have a ZIG ZAG study. In chart 2 I am using the Study/Price Overlay study to overlay the ZIG ZAG study from chart 1 on chart 2. The overlay is successful except that the Text Labels (SG2) are not displaying on chart 2. I have attached a sample chartbook with charts 1 and 2 displaying the problem.

Thank you very much.
attachmentChartbook4.Cht - Attached On 2021-12-03 06:47:05 UTC - Size: 6.81 KB - 223 views
Attachment Deleted.
[2021-12-03 15:39:34]
John - SC Support - Posts: 38341
The text on the Zig Zag will not be copied to the other chart as it is not part of a subgraph that can be copied.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2021-12-03 16:43:42]
like2trade - Posts: 117
Is there any way I can get the Text Labels to appear on Chart 2 without actually putting the ZIG ZAG study on chart 2?

The reason I am doing it this way using the Study/Price Overlay study is because the ZIG ZAG study appears to be conflicting with some other studies when I have them all in the same chart, whereas the other studies function normally when the ZIG ZAG is not present. I am using the Study/Price Overlay study as a work around.

Thank you very much.
[2021-12-03 18:01:57]
John - SC Support - Posts: 38341
Depending on what items you want to see, you could use the Spreadsheet Study with the Study/Price Overlay to get close to what you want.

For example, if you wanted to display the Zig Zag Volume, you would do the following:
- Set the Zig Zag Input for Additional Output for Spreadsheets to Yes.
- Add a Spreadsheet Study to the chart that contains the original Zig Zag study.
- Open the Spreadsheet and in the K3 cell enter the following formula:
=IF(AC3 > 0, AE3, 0)
[The above assumes the Zig Zag study is the first study in the list, you may need to adjust the cell references]
- Go to the chart with the Overlaid Zig Zag study.
- Add another Study/Price Overlay study to that chart.
- On that Study/Price Overlay, reference the Spreadsheet Study from the original chart.
- On that Study/Price Overlay, set the Input for Use Styles and Widths from Source Study to No.
- Go to the Subgraphs tab of this Study/Price Overlay and change the Column K Draw Style to Value on High and set the Width/Size to a value around 10.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2021-12-04 04:54:26]
like2trade - Posts: 117
Thank you very much for your recommendation.

I have managed to get it working the way you recommended. The only issue now is the old values placed at Value on High are not being removed as the ZIG ZAG progresses. Please look at the attached pictures for chart 1 and chart 2 to see what I mean. I decided to use the "Chart Recalculation - Periodic" study with a 1 second recalculation time to address this, but it seems like this study is not doing a recalculation at all. If I go to Edit --> Recalculate All Charts on the menu, this fixes the problem. I am not sure why the "Chart Recalculation - Periodic" is not doing the same. I have also attached the updated chartbook.

Thank you very much for your help.
Date Time Of Last Edit: 2021-12-06 13:13:37
imagePaused 1.00X SIH22-COMEX[M] 5 Sec #1 2021-12-03 20_51_22.png / V - Attached On 2021-12-04 04:53:23 UTC - Size: 17.25 KB - 170 views
imagePaused 1.00X SIH22-COMEX[M] 5 Sec #2 2021-12-03 20_37_51.png / V - Attached On 2021-12-04 04:53:31 UTC - Size: 14.96 KB - 171 views
attachmentChartbook4.Cht - Attached On 2021-12-04 04:53:56 UTC - Size: 8.02 KB - 252 views
[2021-12-06 14:26:05]
like2trade - Posts: 117
Hi Tom,

This is the spreadsheet file.

Thank you very much for your help.
attachmentDefaultSpreadsheetStudy.scss - Attached On 2021-12-06 14:25:48 UTC - Size: 957.56 KB - 320 views
[2021-12-06 14:55:04]
like2trade - Posts: 117
I was just watching these same charts using the live datafeed and the "Chart Recalculation - Periodic" study is now recalculating as it should and everything is working fine. It seems like the "Chart Recalculation - Periodic" study does not work during chart replay.
[2021-12-06 19:50:08]
Sawtooth - Posts: 4179
It seems like the "Chart Recalculation - Periodic" study does not work during chart replay.
Yes, this is true. It only works with live data.
Date Time Of Last Edit: 2021-12-06 19:52:32
[2021-12-06 19:59:20]
like2trade - Posts: 117

Yes, this is true.

Do you know whether this is by any chance by design, or is it a bug?

Thanks.
[2021-12-06 20:08:38]
Sawtooth - Posts: 4179
Do you know whether this is by any chance by design, or is it a bug?
Not sure. But it sure would be nice if it worked in replay.

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

Login

Login Page - Create Account