Support Board
Date/Time: Wed, 15 Jan 2025 15:21:00 +0000
Post From: Trying To Get Color Through sc.Input
[2017-08-16 02:22:13] |
Sierra Chart Engineering - Posts: 104368 |
We see no problem when testing it with the following code: SCSFExport scsf_TestFunction4(SCStudyInterfaceRef sc)
{ if (sc.SetDefaults) { // Set the configuration and defaults sc.GraphName = "Test Function 4"; sc.AutoLoop = 0; sc.FreeDLL = 0; sc.GraphRegion = 0; sc.Subgraph[0].Name = "Test"; sc.Subgraph[0].DrawStyle = DRAWSTYLE_LINE; sc.Subgraph[0].LineWidth = 2; sc.Input[0].Name = "Color"; sc.Input[0].SetColor(128, 128, 128); return; } unsigned int ColorValue = sc.Input[0].GetColor(); } Also this code block in your function is missing a return: if (sc.Defaults) 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: 2017-08-16 02:23:16
|