Support Board
Date/Time: Sun, 11 May 2025 04:18:31 +0000
sc.StartChartReplay not working when new Chartbook opened
View Count: 809
[2019-10-24 21:15:07] |
Chad - Posts: 235 |
My developer is testing the new ACSIL functions for Chart Replays, and has noted that, when testing the function in an existing Chartbook, it works as expected. If that Chartbook is closed, then a new one opened, and this function is tested anew, there is no result. It is not seen to be due to something obvious, such as the name of the Chartbook. Here is the code being used for start Replay from the study: int& ReplayStarted = sc.GetPersistentInt(4);
if (ReplayStarted == 0) { SCDateTime dt; dt.SetDate(sc.GetCurrentDateTime().GetDate()); dt.SetTimeHMS(12, 0, 0); dt.SubtractDays(1); int rc = sc.StartChartReplay(sc.ChartNumber, ReplaySpeedRef.GetFloat(), dt); sc.AddMessageToLog(msg.Format("StartChartReplay return value: %d", rc), 0); ReplayStarted = 1; return; } Could you please test this workflow (open new book then call function) and see if it's working as-expected on your system? |
[2019-10-26 14:02:27] |
Chad - Posts: 235 |
bump... @SCE, if I should instead set this to 'Programming Help,' please note as such, otherwise any guidance on possible cause of the issue is appreciated. |
[2019-10-28 16:27:30] |
Chad - Posts: 235 |
Sorry to pester, but looking for a quick response here.
|
[2019-10-28 16:35:46] |
|
We do apologize for the delay with the response. We do have this pending. We are trying to get to it as soon as we can. But it is not something we can handle quickly. Just allow about another two days.
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 |
[2019-10-29 23:27:09] |
|
As expected, there is no problem with this at all. You will have to look at your own code to see what the issue is. The replay works properly with separate Chartbooks each time. Even after closing the first Chartbook. Technically what is described simply makes no sense at all to be an issue within Sierra Chart. It could not be. The problem must be residing in the custom study itself. This is the test code: /*==========================================================================*/
SCSFExport scsf_ChartReplayTest(SCStudyInterfaceRef sc) { if (sc.SetDefaults) { // Set the configuration and defaults sc.GraphName = "Chart Replay Test"; sc.GraphRegion = 0; sc.AutoLoop = 0; return; } if (sc.IsFullRecalculation) { sc.SetCustomStudyControlBarButtonText(ACS_BUTTON_1, "Start Replay"); } // wait for a button if (sc.MenuEventID == ACS_BUTTON_1) { // reset button to off sc.SetCustomStudyControlBarButtonEnable(sc.MenuEventID, 0); sc.StartChartReplay(sc.ChartNumber, 60, sc.BaseDateTimeIn[sc.ArraySize - 1] - 1 * DAYS); } } 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 Date Time Of Last Edit: 2019-10-29 23:28:05
|
To post a message in this thread, you need to log in with your Sierra Chart account: