Support Board
Date/Time: Wed, 27 Nov 2024 13:48:40 +0000
Post From: Timing problems
[2014-06-17 04:06:40] |
Sierra Chart Engineering - Posts: 104368 |
We now finally had some time to work on this. sc.OnExternalDataImmediateStudyCall was not working. When you set it to TRUE, it would do nothing different. There was an incorrect check in the code preventing it from working. In regards to what you see with milliseconds, that is outside the scope of our testing. We cannot debug your own code. This is the test function you should use for this variable: SCSFExport scsf_ImmediateCallExample(SCStudyInterfaceRef sc)
{ if (sc.SetDefaults) { // Set the configuration and defaults sc.GraphName = "Immediate Call Example"; sc.AutoLoop = 1; //Increases CPU load. Not recommended. Use only for special purposes. sc.OnExternalDataImmediateStudyCall= true; sc.FreeDLL = 0; return; } if(sc.Index == sc.ArraySize - 1) { // Log the current time SCString DateTimeString = sc.DateTimeToString(sc.CurrentSystemDateTime,FLAG_DT_COMPLETE_DATETIME_MS); sc.AddMessageToLog(DateTimeString, 0); } } This code will only work in the next release which solves 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 |