Support Board
Date/Time: Mon, 30 Jun 2025 21:23:48 +0000
sc.GetStudyArrayFromChartUsingID() question
View Count: 1121
[2015-01-28 14:25:00] |
joshtrader - Posts: 519 |
I have a study which takes a subgraph value from another study and draws a line, basically. It works great, and I was using a current chart study input. In order to make it a little more general and avoid having to use "Study/Price Overlay" to pull the subgraph from another chart to the current one, I replaced this: sc.Input[j].SetStudySubgraphValues(0,0);
... sc.GetStudyArrayUsingID(sc.Input[j].GetStudyID(), sc.Input[j].GetSubgraphIndex(), studyArray[j]); with this: sc.Input[j].SetChartStudySubgraphValues(1,0,0);
... sc.GetStudyArrayFromChartUsingID(sc.Input[j].GetChartStudySubgraphValues(), studyArray[j]); Now, if I use a study on the current chart as input, it works fine. But if I try to use another chart's study as input, it does not work. I only changed these two lines in the code, and again, it works fine when the chart number in the input it set to a study on the current chart. What's going on here? Date Time Of Last Edit: 2015-01-28 14:25:50
|
[2015-01-28 18:28:39] |
|
The array sizes are different between the charts. Refer to the documentation on this page: Referencing Other Time Frames and Symbols When Using the ACSIL 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: