Login Page - Create Account

Support Board


Date/Time: Wed, 01 May 2024 23:04:27 +0000



accessing base data from different chart

View Count: 693

[2016-09-27 16:05:22]
User44130 - Posts: 23
Have problem with this method of accessing base chart data from a different chart. Trying to get Last price array.

  SCInputRef StudySubgraphReference = sc.Input[0];
  StudySubgraphReference.Name = "Study And Subgraph To Display";
  StudySubgraphReference.SetChartStudySubgraphValues(1, 0, 3);    

  SCFloatArray StudyData;
  sc.GetStudyArrayFromChartUsingID(StudySubgraphReference.GetChartStudySubgraphValues(), StudyData);

It works ok for futures data during testing but for pair stock - market stat charts it cannot read base data.
[2016-09-27 17:04:18]
Sierra Chart Engineering - Posts: 104368
That code looks correct. The symbol of the chart has no effect on this whatsoever.

There must be some other problem.
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