Login Page - Create Account

Support Board


Date/Time: Sun, 28 Apr 2024 10:53:02 +0000



[Programming Help] - Control subgraph Bar visibility

View Count: 605

[2018-11-06 05:30:47]
Flipper - Posts: 65
Is there a way to display subgraph values at every Nth interval other than what is used in the Bar Counter example?

if (r_BarCounter != 1 && r_BarCounter % NumberingEveryNBars.GetInt())
    return;

I need to calculate the values in that subgraph for use later so setting every non-Nth bar to zero is not a way I can go. I could duplicate the subgraphs and have one as the calculation array and one as the display array but that seems messy.

It's for the NumericInformationGraphDrawTypeConfig Study. See the pic as to the problem.
imageScreen Shot 11-06-18 at 04.28 PM.PNG / V - Attached On 2018-11-06 05:28:23 UTC - Size: 37.6 KB - 268 views
[2018-11-08 08:05:13]
Flipper - Posts: 65
Hello??
[2018-11-08 10:39:57]
User907968 - Posts: 802
You could use one of the additional arrays in the subgraph to store your calculation result (so that you have a complete data set to refer back to), then only insert the values into the main subgraph array at the nth bar.

ACSIL Interface Members - sc.Subgraph Array: sc.Subgraph[].Arrays[][]
[2018-11-08 10:58:32]
Flipper - Posts: 65
Thanks but my problem is I need to use the subgraph in another study using the function,

sc.GetStudyArrayUsingID()
sc.GetStudyArrayUsingID()

I didn't think I can reference the additional arrays from another study just the sc.Subgraph[].
But I didn't check properly and have just seen this function sc.GetStudyExtraArrayFromChartUsingID() which I can use


Though would be good to have a visibility option for the NumericInformationGraphDrawTypeConfig because I cannot see any situation other than single int's where they aren't going to useless to display. Making what is a nice feature gnarly to use.
Date Time Of Last Edit: 2018-11-08 10:59:05

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

Login

Login Page - Create Account