Login Page - Create Account

Support Board


Date/Time: Tue, 25 Feb 2025 03:14:45 +0000



Post From: Why some study names are returning empty strings?

[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.