Support Board
Date/Time: Sat, 23 Nov 2024 19:58:44 +0000
Post From: Add additional symbol for ASCIL
[2024-08-07 18:51:51] |
Hopeman - Posts: 166 |
Hello, I am calling TICK-SP with the function and it does not find it. I am not able to do this. I have been doing this for a relatively short time. I think this code must have many errors: #include "sierrachart.h" SCDLLName("Custom Study DLL") SCSFExport scsf_TickSPAccess(SCStudyInterfaceRef sc) { if (sc.SetDefaults) { // Study configuration sc.GraphName = "TICK-SP Data Access"; sc.StudyDescription = "Access TICK-SP data and display it."; // Configure the subgraph sc.Subgraph[0].Name = "TICK-SP Value"; sc.Subgraph[0].DrawStyle = DRAWSTYLE_LINE; sc.Subgraph[0].PrimaryColor = RGB(0, 255, 0); sc.Subgraph[0].LineWidth = 2; // Setting up the automatic loop sc.AutoLoop = 1; return; } // Accessing TICK-SP data SCString symbol = "$TICK-SP"; s_SymbolData symbolData; if(sc.GetInternalSymbolData(symbol, symbolData)) { // Getting the TICK-SP value float tickValue = symbolData.Close[sc.Index]; sc.Subgraph[0][sc.Index] = tickValue; } else { // Error handling if data cannot be obtained sc.AddMessageToLog("Error: Could not get TICK-SP data.", 1); } } Date Time Of Last Edit: 2024-08-07 18:52:36
|