Support Board
Date/Time: Mon, 21 Apr 2025 23:30:21 +0000
[Programming Help] - Subgraphs Update Latency
View Count: 155
[2025-02-12 16:01:38] |
Gradient - Posts: 121 |
Hi, I have a chartbook that contains multiple charts. Each chart contains custom studies. I'm noticing that when reading in a study from one chart to another, despite the conditions being met, the subgraph array on the base chart is not updating until several bars later. The logic in the study is correct and later in the session all of the subgraphs seemingly refresh and display the correct values. Why might this latency be happening? Thanks. |
[2025-02-12 16:16:02] |
Sierra_Chart Engineering - Posts: 19290 |
This requires very in-depth debugging, which is completely outside the scope of our support. However, refer to: Chart Studies: Study Calculation Precedence And Related Issues And: Referencing Other Time Frames and Symbols When Using the ACSIL: Referencing Data from Other Time Frames By Direct Referencing of the Other Timeframe We cannot provide further help. There is no way we can possibly know what the issue is. Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2025-02-12 16:16:10
|
[2025-02-12 18:47:54] |
Gradient - Posts: 121 |
Thanks. I'll determine next steps. However, the solution doesn't seem straight forward. The computations are simple and stored in a subgraph and there are no errors in the logic of the code given that it renders properly at times. Example: Chartbook contains Chart A and Chart B. The charts are on two different timeframes. Because of this, the conventional GetStudyArrayFromChartUsingID can't be used. In lieu of this, a spreadsheet study is used across A and B which captures the studies of each chart in its respective sheet. A reads in the values from the spreadsheet capturing the studies of B. A stores these values in its subgraph. I've reviewed the provided links on precedence of calculation and see the spreadsheet has a lower calculation precedence. However, I wouldn't expect Chart A's subgraph to update hours later especially given that the value is correct on Chart B and in the Sheet containing B's studies. |
[2025-02-12 19:31:19] |
User431178 - Posts: 654 |
Chartbook contains Chart A and Chart B. The charts are on two different timeframes. Because of this, the conventional GetStudyArrayFromChartUsingID can't be used. In lieu of this, a spreadsheet study is used across A and B which captures the studies of each chart in its respective sheet. You can still use GetStudyArrayFromChartUsingID without the intermediate spreadsheet. All you need to is match the corresponding bars using sc.GetContainingIndexForSCDateTime or similar function. It is explained clearly at the link in the post above - Referencing Other Time Frames and Symbols When Using the ACSIL: Referencing Data from Other Time Frames By Direct Referencing of the Other Timeframe |
To post a message in this thread, you need to log in with your Sierra Chart account: