Login Page - Create Account

Support Board


Date/Time: Sat, 11 May 2024 10:58:23 +0000



Please document sc.AddStudyToChart

View Count: 821

[2020-10-10 13:24:03]
User563222 - Posts: 4
Your entry in the online documentation is blank. It's been 7 days since it was released. All you have to do is provide an example and state what the return code means.

Thanks.
[2020-10-10 18:31:12]
Ackin - Posts: 1865
It's been 7 days since it was released. All you have to do is provide an example and state what the return code means.

Type: Function

int AddStudyToChart(const n_ACSIL::s_AddStudy& AddStudy);



struct s_AddStudy
{
  // The chart number to add the study to. This needs to be within the
  // same Chartbook as the study function which is adding the study.
  int ChartNumber = 0;

  // The configured study identifier to add if it is a built-in study. The
  // study identifiers are specified in c_Graph::Configure. When adding an
  // advanced custom study this needs to be zero.
  int StudyID = 0;

  // In the case of when adding an advanced custom study, this string
  // specifies the filename without extension, followed by a dot (.)
  // character, and the function name to be added. When both StudyID and
  // CustomStudyFileAndFunctionName have not been set and are at default
  // values, then sc.AddStudy returns 0.
  SCString CustomStudyFileAndFunctionName;

  // This will be set as the short name for the added study. This can be
  // used to get the ID for the study later using sc.GetStudyIDByName.
  SCString ShortName;
};


#endif

This should be enough for you


If you don't know how to use the structure, look for a similar type:
sc.SetBarPeriodParameters()
Date Time Of Last Edit: 2020-10-10 18:32:57
[2020-10-10 18:39:54]
Ackin - Posts: 1865
to SC Support)
btw There is some problem with the site with this requested feature description showing a strange background. Like when someone forgot to write a TAG in the source code of the page.
https://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Functions.html
imageweb issue.png / V - Attached On 2020-10-10 18:39:31 UTC - Size: 82.3 KB - 203 views
[2020-10-14 01:11:07]
Sierra Chart Engineering - Posts: 104368
We will work on documentation for that function. We are not currently seeing the issue described in post #3. So it appears like we have already resolved this.
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
[2020-10-14 09:30:45]
Sierra_Chart Engineering - Posts: 14312
Refer to:
sc.AddStudyToChart()
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, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2020-10-14 11:14:12]
Ackin - Posts: 1865

Is a function with the opposite effect also planned? ... remove-study-from-chart
[2020-10-14 19:27:28]
Sierra Chart Engineering - Posts: 104368
We could add that.
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