Support Board
Date/Time: Tue, 25 Feb 2025 03:04:14 +0000
[Programming Help] - Why some study names are returning empty strings?
View Count: 926
[2021-03-28 02:48:04] |
User741184 - Posts: 44 |
Hi, I am trying to retrieve the names of all studies added to the chart through the use of ACSIL member functions sc.GetStudyNameFromChart() and sc.GetStudyNameUsingID(). Here is the code that I am using, for (int study_number = 1; study_number < 30; study_number++) { StudyName = sc.GetStudyNameFromChart(sc.ChartNumber, study_number); StudyName1 = sc.GetStudyNameUsingID(study_number); if (StudyName == "DAY-VWAP") { SCGraphData StudyData; sc.GetStudyArraysFromChartUsingID(sc.ChartNumber, study_number, StudyData); } } But for some studies, both StudyName and StudyName1 variables are returning empty strings. All the studies added to the chart have been named, I have attached picture as a reference. What is the reason that for some studies these functions are not returning Study Name? |
Private File Attachment Deleted. |
[2021-03-29 00:02:58] |
User741184 - Posts: 44 |
I have set the calculation precedence of my custom study to LOW_PREC_LEVEL. So when I add the custom study to Studies to Graph list somewhere in the middle then sc.GetStudyNameFromChart(sc.ChartNumber, study_number); function does not print study names after the custom study although its CalcOrder is set to maximum number. And if I Move Down the custom study to last position then the above function returns the study names of all studies. What is the reason behind? In the attached picture, these are the studies added to the chart. The custom study is at number 6 with StudyID: 10 and CalcOrder: 10. |
Private File |
To post a message in this thread, you need to log in with your Sierra Chart account: