Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 11:59:04 +0000



[Programming Help] - Issue using sc.GetStudyProfileInformation function

View Count: 841

[2019-09-13 05:16:11]
User650124 - Posts: 6
I'm working on an ASCIL trading system where i need to call information from a VbP study on my chart. When i attempt to program this function i am receiving the following errors when i go to build, among others:

error C2065: 's_StudyProfileInformation': undeclared identifier
error C2039: 'GetStudyProfileInformation': is not a member of 's_sc'

Is this function not supported anymore, or have i made a mistake in the way i set up the structure and call upon the function? I've copied my code below for your reference. I've used many other functions successfully and tried many different ways of setting this one up but unfortunately haven't been able to figure this one out. Thanks for your time.

  s_StudyProfileInformation StudyProfileInformation;
  sc.GetStudyProfileInformation(6, 0, StudyProfileInformation);
  float POC = StudyProfileInformation.m_VolumePOCPrice;
  float ValueAreaLow = StudyProfileInformation.m_VolumeValueAreaLow;
[2019-09-13 06:22:17]
User907968 - Posts: 802
Did you try the following delcaration?

n_ACSIL::s_StudyProfileInformation StudyProfileInformation;

s_StudyProfileInformation is not in the global scope, it is scoped in namespace n_ACSIL.
[2019-09-13 08:24:43]
Sierra Chart Engineering - Posts: 104368
Yes post #2 is the solution to the 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
[2019-09-13 14:09:47]
User650124 - Posts: 6
Thanks for the response, i had already tried that an unfortunately that didn't work. my updated code is below for review:

  n_ACSIL:: s_StudyProfileInformation StudyProfileInformation;
  sc.GetStudyProfileInformation(6, 0, StudyProfileInformation);
  float POC = StudyProfileInformation.m_VolumePOCPrice;
  float ValueAreaLow = StudyProfileInformation.m_VolumeValueAreaLow;


The new error is below:

C2039: 's_StudyProfileInformation': is not a member of 'n_ACSIL'
[2019-09-14 07:45:13]
User650124 - Posts: 6
Please disregard, i updated my sierrachart to the latest version and the problem fixed itself. Thanks

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

Login

Login Page - Create Account