Support Board
Date/Time: Mon, 13 Jan 2025 02:58:50 +0000
SC function to return SCInputRef from ChartUsingID
View Count: 1195
[2017-04-03 07:48:21] |
User553714 - Posts: 184 |
I am using this SC function to return the Subgraphs from a ChartUsing the study ID; sc.GetStudyArraysFromChartUsingID(sc.ChartNumber, 1, ImportedStudyData). Is there an equivalent function which I can use to return a SCInputRef (User Input Ref) from a Study attached to the chart using the study ID? In my case I am trying to return the User Input set Number of Standard Deviations used in a Linear Regression study at ID1 so I can use it in my custom ACSIL study at ID2; is there a way I can do this to avoid having to calculate the SD in my own study? Regards |
[2017-04-03 09:39:28] |
User553714 - Posts: 184 |
Further to the above Q, if it is not possible to return a a SCInputRef I think you can return PersistentVariables using this; https://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Functions.html#scGetStudyPersistentVariablesFromChartUsingID When you try and compile this line shown in the docs; "const s_sc::s_PersistentVariables * p_PersistVars = sc.GetStudyPersistentVariablesFromChartUsingID(ChartNumber, StudyID);: It brings up the following error; "Development.cpp(2141): error C2039: 's_PersistentVariables': is not a member of 's_sc' c:\sierrachart\acs_source\sierrachart.h(29): note: see declaration of 's_sc'" Can you please update the docs to correct this and also provide an example of how you use "p_PersistVars" to access the persistent variables returned by this function? |
[2017-04-03 18:15:49] |
Sierra Chart Engineering - Posts: 104368 |
In response to post #1, the answer is no not at this time. The function sc.GetStudyPersistentVariablesFromChartUsingID is out of date and has been removed from the documentation. We do not recommend using it. You need to use this function instead: http://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Functions.html#scGetStudyPersistentIntFromChart 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: