Login Page - Create Account

Support Board


Date/Time: Thu, 02 May 2024 00:30:34 +0000



Post From: Seems that setting of s_NumericInformationGraphDrawTypeConfig.HideLabels is ignored

[2019-11-24 19:51:53]
John - SC Support - Posts: 31293
The first thing to keep in mind is that when creating a Numeric Information Graph from ACSIL, there is only the ability to set a Highest and Lowest value per Subgraph for the entire chart. We did add functionality to the Numbers Bars Calculated Values study to have the Highest and Lowest be determined on a Daily or Per Session basis, but that functionality does not easily convert over to ACSIL, so it is not available.

1.
I assume that I have to calculate and populate these values during the "for (int i = sc.Index; i < sc.ArraySize; i++)" loop, keeping values between the loops as persistent variables. Question: what happens to the past bar colors, when I adjust the values with the 1st bar of the cash session? Let's say I want to maintain separate pair of Highest/Lowest values through the day and night session. Will the system just override overnight colors when day volume starts and basically render them as Range 0 colors? Or will the range colors of overnight bars stay in place?


As stated above, you cannot have a different set of values for the Day and Evening session within a single Numeric Information Graph through ACSIL. Whenever you change the Highest and/or Lowest value for a subgraph, all the bars will update based on those new values.

2.
As per documentation HighestValue/LowestValue are set per subgraph, it seems an impossible task to maintain any logic beyond "coloring ALL the bars of the chart". There is no way to adjust colors through the ETH/RTH and the only option to see proper coloring adjusted to the session is to limit chart to present data in specific time interval of the single session. For example: Show 1 day (last/current session) and time frame 9:30 - 16:15. Then create another chart for overnight session time range.
: See statement above.

3.
From documentation it is not clear about the range of values in the PercentCompareThresholds. Is it 0.0 - 1.0 or 0.0 - 100.0?
The values entered through ACSIL should be the decimal values, not the percentage, as these values are not converted when entered through ACSIL. For example, if you want to enter 25%, 50% and 75%, then you would set the following:
NumericInformationGraphDrawTypeVariable.PercentCompareThreshold[0] = .25
NumericInforamtionGraphDrawTypeVariable.PercentCompareThreshold[1] = .50
NumericInformationGraphDrawTypeVariable.PercentCompareThreshold[2] = .75

We will update the documentation to make this more clear.

4.
It would be nice to have a method for this struct to set PercentCompareThresholds based on the string value coming from the study input, similar to SetNumericInformationDisplayOrderFromString.
At this time, that conversion is done in the configuration of the Numbers Bars study and not in the implementation of the Numeric Information Graph. Therefore it is not something we are going to be changing anytime soon.

One final note, whenever you want to update a variable, you will need to call the sc.SetNumericInformationGraphDrawTypeConfig(). And each time you want to call that function, you need to set all the variables that you are controlling, otherwise, they will be reset to their default. For example, if you set the "HideLabels" to True in the sc.SetDefaults section, and you are updating the Highest value later, you would also need to set "HideLabels" again, otherwise it is going to use the default value.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing