Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 14:01:11 +0000



Problem with GetStudyExtraArrayFromChartUsingID

View Count: 800

[2018-01-17 07:49:53]
User563013 - Posts: 11
I am using the GetStudyExtraArrayFromChartUsingID, in an ASCIL module. I have a study ID of 1 with 4 subgraphs and I am trying to access the subgraph with an ID of SG2.

SCFloatArray Temp;
sc.GetStudyExtraArrayFromChartUsingID(sc.ChartNumber, 1, 1, 0, Temp);

And I get nothing out of the Temp array, but I can see the data in the chart.

After looking at the data in the debugger none of the temp arrays below show data (yes I made sure they wern't being optimized out)

SCFloatArray Temp;
SCFloatArray Temp1;
SCFloatArray Temp2;
SCFloatArray Temp3;

sc.GetStudyExtraArrayFromChartUsingID(sc.ChartNumber, 1, 0, 0, Temp);
sc.GetStudyExtraArrayFromChartUsingID(sc.ChartNumber, 1, 1, 0, Temp1);
sc.GetStudyExtraArrayFromChartUsingID(sc.ChartNumber, 1, 2, 0, Temp2);
sc.GetStudyExtraArrayFromChartUsingID(sc.ChartNumber, 1, 3, 0, Temp3);

How do I access subgraph data with the GetStudyExtraArrayFromChartUsingID? I am following the example.
Date Time Of Last Edit: 2018-01-17 07:50:54
[2018-01-17 21:32:02]
Sierra Chart Engineering - Posts: 104368
You are using the wrong function.

You need to use this function instead:

sc.GetStudyArrayUsingID()
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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account