Support Board
Date/Time: Wed, 12 Feb 2025 12:53:35 +0000
Post From: Please document sc.AddStudyToChart
[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
|