Support Board
Date/Time: Sun, 29 Dec 2024 00:05:06 +0000
Post From: Problems with sc.OpenChartOrGetChartReference()
[2016-02-12 22:17:32] |
Sierra Chart Engineering - Posts: 104368 |
Last thing: On the doc page, the "DAILY_CHART" enum name needs to be changed to "DAILY_DATA". This appears to be linked with sc.GetChartBaseData(). If I use the negative chart number (sync the charts) with the 250 days above, it loops forever. If I use the positive chart number (chart bars not sync'd), it works. This must be the reason for the problem because the Days to Load setting is getting changed when you do this. Therefore, a new chart keeps getting opened because there is no longer a matching chart because the DaysToLoad parameter is different compared to the existing chart because it is not set to zero. We made a small change where the Days to Load setting in an existing chart does not have to be an exact match but has to be equal or greater than the OpenChartParameters.DaysToLoad parameter when calling sc.OpenChartOrGetChartReference(OpenChartParameters); This will solve the problem. 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, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |