Login Page - Create Account

Support Board


Date/Time: Sat, 01 Mar 2025 19:19:44 +0000



[Programming Help] - ASCIL Subgraph Values in

View Count: 1264

[2021-10-07 17:11:33]
JDCII2112 - Posts: 21
Hello,

Newer ASCIL programmer. I cannot for the life of me find how to make sure that SubGraph inputs and values are displayed on the "Chart Values for Last Displayed Column" Window.

Please see the attached screen shot. I would like the numbers in Parentheses displayed below to be in the colored areas.

How can I code this?

Thanks.
Attachment Deleted.
imageScreen Shot 10-7-2021 at 11.08 AM.png / V - Attached On 2021-10-07 17:10:21 UTC - Size: 85.94 KB - 223 views
[2021-10-07 17:25:51]
John - SC Support - Posts: 38292
The numbers in the parentheses are the study Inputs. If you want them displayed as a Subgraph, then you would need to store them in Subgraphs. Just keep in mind that you are using a lot of memory/space just to be able to show those inputs as subgraphs.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2021-10-07 17:30:01]
JDCII2112 - Posts: 21
Thanks for the quick reply.

Why is it taking up so much memory or space?

And how do I do that?

Those Inputs are already in my Study and Subgraph. They are parameters that control the function of the entire study, so how are they not already in the subgraph? Most of those in the screenshot are defaults already.
[2021-10-07 17:43:55]
John - SC Support - Posts: 38292
Yes, they are already stored as the Inputs for the study, but then to display them as you want, you would have to store them in the Subgraph arrays. It's not necessarily a big deal, but it is a bit excessive when the information is already there.

To store them in the subgraphs, you would just need to assign the values to the subgraph. Just be aware that the subgraphs are Floating Point variables and the inputs vary, so you will have to adjust the inputs based on their type.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2021-10-07 18:22:54]
JDCII2112 - Posts: 21
Thanks.

So reading through the subgraph literature, and I am still lost.

I currently have the following for the first Input:

sc.Input[1].Name   = "Position Size";
sc.Input[1].SetInt(0);
sc.Subgraph[1].Name  = "Position Size";

I have the 0 set to 1 in the study settings.

How do I get the 1 to display on the subgraph value? I still can't find it.
[2021-10-07 23:34:23]
John - SC Support - Posts: 38292
You need to set the Subgraph to that value. So you would do the following in your code, assuming you are using the Auto Looping:
sc.Subgraph[1][sc.Index] = static_cast<float>(sc.Input[1].GetInt());

You will find the information on the sc.Subgraph arrays here:
ACSIL Interface Members - sc.Subgraph Array

That is all we can help you with, as programming help is really outside of our support. You may get help from others that watch this board, however.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2021-10-09 18:43:38]
User99735 - Posts: 234
You will need to enable one of subgraph parameters DisplayNameValueInWindowsFlags or DisplayNameValueInDataLine.
[2021-10-09 21:48:38]
JDCII2112 - Posts: 21
You guys are great. Thank you so much

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

Login

Login Page - Create Account