Login Page - Create Account

Support Board


Date/Time: Mon, 09 Nov 2026 23:21:37 +0000



[Programming Help] - subgraph attributes won't change

View Count: 22

[2026-11-09 22:26:27]
walt_IB - Posts: 13
in a custom study, I declared eight subgraphs:

  SCSubgraphRef g_ADX = sc.Subgraph[0];
  SCSubgraphRef g_vol = sc.Subgraph[1];
  SCSubgraphRef g_EOM = sc.Subgraph[2];
  SCSubgraphRef g_LE = sc.Subgraph[3];
  SCSubgraphRef g_SE = sc.Subgraph[4];
  SCSubgraphRef g_MA_F = sc.Subgraph[5];
  SCSubgraphRef g_MA_S = sc.Subgraph[6];
  SCSubgraphRef g_MA_LT = sc.Subgraph[7];
  SCSubgraphRef g_exit = sc.Subgraph[8];

and set the attributes for each (in default section):


g_LE.Name = "Buy Entry";
g_LE.DrawStyle = DRAWSTYLE_ARROW_UP;
g_LE.PrimaryColor = RGB(0, 255, 0);
g_LE.LineWidth = 4;
g_LE.DrawZeros = false;

g_SE.Name = "Buy Entry";
g_SE.DrawStyle = DRAWSTYLE_ARROW_UP;
g_SE.PrimaryColor = RGB(0, 255, 0);
g_SE.LineWidth = 4;
g_SE.DrawZeros = false;

ETC....

Then I moved the declaration order of the subgraphs:

  
  SCSubgraphRef g_LE = sc.Subgraph[0];
  SCSubgraphRef g_SE = sc.Subgraph[1];
  SCSubgraphRef g_MA_F = sc.Subgraph[2];
  SCSubgraphRef g_MA_S = sc.Subgraph[3];
  SCSubgraphRef g_MA_LT = sc.Subgraph[4];
  SCSubgraphRef g_exit = sc.Subgraph[5];
  SCSubgraphRef g_ADX = sc.Subgraph[6];
  SCSubgraphRef g_vol = sc.Subgraph[7];
  SCSubgraphRef g_EOM = sc.Subgraph[8];


But the attributes did not follow even though I kept the names the same...
I would expect settings for "g_ADX" should still apply.
I tried recompiling and deleting object file for the custom study and also tried adding it to a new chart.
As it stands now, when I use this study, I have to set each subgraph after inserting on chart.

>> I also tried the "reset defaults" button but nothing changed.

Is there some file somewhere that is retaining this info?
[2026-11-09 22:36:17]
John - SC Support - Posts: 48480
Are you opening an existing chart that had the study on it prior to changing the order?

If so, then remove that study and add a fresh copy back. This should resolve any issues.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2026-11-09 22:44:00]
walt_IB - Posts: 13
I had a completely new chartbook and chart and it still does the same thing...
Next I will try creating a whole new study with a different name.
[2026-11-09 22:51:04]
walt_IB - Posts: 13
changing the name of the study DLL and study name worked BUT I consider this an "undocumented feature" (BUG)

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account