Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 16:08:39 +0000



Max Number of Subgraphs

View Count: 241

[2024-08-16 22:14:01]
Gradient - Posts: 89
Hi,

What's the maximum number of subgraphs for a study?

My reason for asking is that I have a study with several subgraphs (i.e. 100+) and I've noticed issues when attempting to add another subgraph.

When adding the additional subgraph:
--1) the values returned are NaN
--2) I added 2 new subgraphs and only 1 appeared in the subgraphs options menu; when deleting the one that appeared then the other one appeared but both times the subgraph number was random (i.e. not the subgraph I set the value to)
--3) I input a static dummy variable to test and it never appeared; still only the NaNs
[2024-08-17 02:47:51]
User413206 - Posts: 26
I believe it is 60.

"Type: Array of study Subgraph structures.

sc.Subgraph[] is an array of the subgraphs available to the study. There is currently a maximum of SC_SUBGRAPHS_AVAILABLE (60) subgraphs available for your study to use."

ACSIL Interface Members - sc.Subgraph Array: sc.Subgraph[]
Date Time Of Last Edit: 2024-08-17 02:49:50
[2024-08-17 03:11:02]
Gradient - Posts: 89
Thanks.

But I think this has changed. I had 108 before I started having issues.

Once I added two more then bugs started occurring.

I have a Dev and Prod implementation. The Prod implementation has 108 and the Dev has 110.

I haven't had issues with the Prod version. Bugs only occur in Dev.
[2024-08-17 12:31:01]
User431178 - Posts: 541
SC_SUBGRAPHS_AVAILABLE is still 60 in v2667

SCGraphData, which contains the subgraphs, has a size of SC_SUBGRAPHS_AVAILABLE, and has safe access controlled by the same (0 to < 60).
If you try to access a subgraph higher than 59, you are automatically pointed to SC_SUBGRAPHS_AVAILABLE - 1, so how is it possible to have 108 subgraphs?
[2024-08-17 13:41:56]
Gradient - Posts: 89
Not sure.

I never received SC_SUBGRAPHS_AVAILABLE -1.

The majority of these are storage and aren't rendered. Only maybe 5 are actually rendered.

I had no issues compiling 108 or 110. It's just that at 110 issues began occurring after compiling. (i.e. Subgraph 109 showing as Subgraph 60). Note at 110, I was rendering 109-110,before (i.e. Prod version) the only Subgraphs rendered were 6-10.

If I reorder the Subgraphs (i.e. switch Subgraphs 100-110 with say Subgraphs 50-60) then I likely won't have issues compiling and won't
have issues afterwards.

This is likely because the Subgraphs > 60 aren't being rendered, but that questions if they're storing the correct values.

It appears that issues occur when storing and rendering Subgraphs > 60. That's the only difference between my Dev and Prod implementations.

Will have to test to validate but will ultimately refactor code within Subgraph <= 60.
[2024-08-19 14:50:46]
John - SC Support - Posts: 36238
There are only 60 subgraphs available.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-08-19 15:32:27]
Gradient - Posts: 89
Thanks.

I refactored my code.

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

Login

Login Page - Create Account