Support Board
Date/Time: Mon, 09 Nov 2026 23:29:38 +0000
Post From: subgraph attributes won't change
| [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? |
