Support Board
Date/Time: Sat, 30 Nov 2024 07:24:21 +0000
Post From: Progamming Help ACSIL sc.OnExternalDataImmediateStudyCall
[2022-12-18 23:36:19] |
User183724 - Posts: 183 |
attempting to build the following code and get an error with sc.OnExternalDataImmediateStudyCall. ...looked for documentation and didn't find anything... is this function still supported? is there a work around?? thanks // The top of every source code file must include this line #include "sierrachart.h" // For reference, refer to this page: // Advanced Custom Study Interface and Language (ACSIL) // This line is required. Change the text within the quote // marks to what you want to name your group of custom studies. SCDLLName("ImmediateCallExample") /*============================================================================*/ 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); } } |