Support Board
Date/Time: Tue, 06 May 2025 20:38:07 +0000
sc.Subgraph[].DisplayNameValueInWindowsFlags = 0 Not Respected for Region Data Line
View Count: 181
[2024-12-05 03:21:02] |
Jedi Trader - Posts: 14 |
sc.Subgraph[].DisplayNameValueInWindowsFlags = 0 should set "Display Name and Value in Region Data Line" to false but does not. Repro: 1. Include following code in sc.SetDefaults block (e.g. in scsf_NumericInformationGraphDrawTypeExample): sc.AutoLoop = true; sc.GraphDrawType = GDT_NUMERIC_INFORMATION; ... Subgraph_Grid.Name = "Grid Style"; Subgraph_Grid.PrimaryColor = COLOR_YELLOW; Subgraph_Grid.DisplayNameValueInWindowsFlags = 0; ... 2. Observe that in the study settings window, Subgraphs tab, the "Display Name and Value in Region Data Line" setting remains checked. When the study is applied, the data point, "Grid Style: 0.00" is included in the Region Data Line. On the other hand, the expected behaviour occurs in surpressing the "Display Name and Value in Chart Values Windows." |
[2024-12-05 10:11:53] |
User431178 - Posts: 663 |
Maybe the docs (for DisplayNameValueInWindowsFlags ) are not up to date? There is also a separate setting for region data line DisplayNameValueInDataLine ACSIL Interface Members - sc.Subgraph Array: sc.Subgraph[].DisplayNameValueInDataLine |
[2024-12-05 13:45:30] |
Jedi Trader - Posts: 14 |
Right you are. Indeed, the following code works as intended: Subgraph_Grid.Name = "Grid Style"; Subgraph_Grid.PrimaryColor = COLOR_YELLOW; Subgraph_Grid.DisplayNameValueInWindowsFlags = 0; // necessary to remove the subgraph data point from Chart Values Window Subgraph_Grid.DisplayNameValueInDataLine = 0; // essential to remove the subgraph data point from the region data line. As you say, a comment should be added to the documentation in relation to the SNV_DISPLAY_IN_DATA_LINE flag for DisplayNameValueInWindowsFlags to state that this is deprecated; or, necessary but not sufficient (I'm unsure which). Also, it would help in this case if the sc.Subgraph[] structure members were arranged alphabetically in the docs so that one would have some hope of seeing these members side by side. |
[2024-12-06 20:42:56] |
Sierra_Chart Engineering - Posts: 19461 |
We will check the documentation.
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 |
[2024-12-06 20:51:10] |
Sierra_Chart Engineering - Posts: 19461 |
We will need to remove support for SNV_DISPLAY_IN_DATA_LINE Since there is this new Study Subgraph variable: Subgraph_Grid.DisplayNameValueInDataLine = 0; // 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 |
[2024-12-08 13:39:34] |
Jedi Trader - Posts: 14 |
Makes sense. The flag appears to be a vestigial remnant from an earlier implementation. Thank you.
|
To post a message in this thread, you need to log in with your Sierra Chart account: