Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 16:41:00 +0000



Post From: Problem with Subgraph's settings programatically

[2024-02-27 00:29:21]
Sierra_Chart Engineering - Posts: 17174
We looked at the code and we do not see why there is a problem and we also developed a simple test to test this and cannot see this issue:

SCSFExport scsf_TestFunction9(SCStudyInterfaceRef sc)
{
  SCSubgraphRef Subgraph_Test = sc.Subgraph[0];

  if (sc.SetDefaults)
  {
    // Set the configuration and defaults

    sc.GraphName = "Test Function 9";

    sc.AutoLoop = 0;

    sc.SetChartStudyTransparencyLevel(sc.ChartNumber, sc.StudyGraphInstanceID, 43);

    Subgraph_Test.Name = "Number";
    Subgraph_Test.DrawStyle = DRAWSTYLE_TRANSPARENT_CUSTOM_VALUE_AT_Y;
    Subgraph_Test.PrimaryColor = RGB(0, 255, 0);
    Subgraph_Test.LineWidth = 8;
    Subgraph_Test.DrawZeros = false;

    sc.GraphRegion = 0;

    return;
  }


  sc.Subgraph[0].IncludeInStudySummary = false;

}

The test only involved:
sc.Subgraph[].IncludeInStudySummary.
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, use the Teton service:
Sierra Chart Teton Futures Order Routing