Support Board
Date/Time: Sun, 22 Dec 2024 13:05:36 +0000
sc.GetStudyArray(s)FromChart
View Count: 1357
[2015-04-24 01:17:28] |
CustomIndicators - Posts: 126 |
Take a look here: http://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_Functions.html#scGetStudyArrayFromChart It says, "For an example on how to use this function, see the scsf_GetStudyArrayFromChartExample() function in the studies.cpp file in the ACS_Source folder inside of the Sierra Chart installation folder." It says scsf_GetStudyArraysFromChartExample in there. Am I supposed to be using the one that says Array, or Arrays? Date Time Of Last Edit: 2015-04-24 01:35:02
|
[2015-04-24 01:43:04] |
CustomIndicators - Posts: 126 |
Also, I'm having a little trouble getting it to request one of my subgraphs. Is this correct? I'm trying to retrieve the array from this on another chart: SCSubgraphRef Line = sc.Subgraph[0]; int chartNumber = 1; SCFloatArray SubgraphArray; sc.GetStudyArrayFromChart(chartNumber, 1, 0, SubgraphArray) The Study ID on that requested chart, is 1. Date Time Of Last Edit: 2015-04-24 01:46:14
|
[2015-04-24 01:53:48] |
Sierra Chart Engineering - Posts: 104368 |
There no longer is an example for this and we will update the documentation. The function is considered out of date. You should be using sc.GetStudyArrayFromChartUsingID 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 |
[2015-04-24 02:00:09] |
Sierra Chart Engineering - Posts: 104368 |
In regards to post #2, that function does not use study IDs but instead uses the study index number with the first study in the list being 1.
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 |
[2015-04-24 02:45:43] |
CustomIndicators - Posts: 126 |
Oie. Alright, well, I'm trying to make a manual loop that checks conditions on every chart I have up. For this, it would be easier if I could just specify the chart number outside of the defaults. Instead of this: SCInputRef StudySubgraphReference = sc.Input[0];
if (sc.SetDefaults) { StudySubgraphReference.Name = "Study And Subgraph To Display"; StudySubgraphReference.SetChartStudySubgraphValues(1,1, 0); return; } SCFloatArray StudyReference; sc.GetStudyArrayFromChartUsingID(StudySubgraphReference.GetChartStudySubgraphValues(), StudyReference); Can I just use this?: SCFloatArray StudyReference;
int chartNumber = 1; sc.GetStudyArrayFromChartUsingID(chartNumber, 1, 0, StudyReference); |
To post a message in this thread, you need to log in with your Sierra Chart account: