Login Page - Create Account

Support Board


Date/Time: Fri, 27 Dec 2024 18:27:15 +0000



How to access a value calculated by a Study Function that is NOT being outputted to chart

View Count: 1694

[2016-01-31 08:32:31]
User972044 - Posts: 154
Hi there,

My automated trading system would need to access a value that is being calculated in a study function that is NOT being outputted to the chart via the sc.Subgraph[0]. Can I do that? If so, how? Or do I have to output every single value that needs to be accessed by another study function/automated trading system studies via sc.Subgraph[0]?

Please help. Thank you in advance.
[2016-02-01 15:22:31]
User972044 - Posts: 154
Hi there,

Can someone take a look at this please? It's been more than a day that I posted this and there is no answers.

Thanks.
[2016-02-01 18:33:41]
Sierra Chart Engineering - Posts: 104368
For programming help, please allow 1 to 2 days.

You will get a good answer. We are updating the documentation to answer your questions. That will be done late this evening.

You also posted this over the weekend and then today is a Monday and we are very busy with priority technical issues. So these kinds of questions are deferred until the end of the day.
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
Date Time Of Last Edit: 2016-02-01 18:34:21
[2016-02-02 04:50:11]
Sierra Chart Engineering - Posts: 104368
Here is the relevant updated and added documentation:
http://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_Functions.html#WorkingWithIntermediateStudyCalculationFunctions

http://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_Functions.html#ArrayNotes

We still need to review the questions again and review the documentation again.
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
Date Time Of Last Edit: 2016-02-02 04:50:33
[2016-02-02 05:34:35]
User972044 - Posts: 154
Thanks for the provided documentation but I would just like to confirm this. Basically what I am trying to ask is that is there anyway that another study function/automated trading system can access a variable's value that is NOT outputted to an array or to a chart? In other words, if I do NOT output the result of a variable to sc.subgraph[x] or sc.subgraph[x].Array[x], would another study function/automated trading system be able to access that variable?

Thank you in advance for your help. This time I will wait at least 2 days for your answer, hopefully I can get the answer sooner.
[2016-02-02 07:15:29]
Sierra Chart Engineering - Posts: 104368
We apologize. The response given in post #4 was meant for some of your other questions.

We were just gathering together the information and getting it posted.

In regards to post #5, this is discussed here:
https://www.sierrachart.com/index.php?page=doc/doc_ACSILProgrammingConcepts.html#UsingStudyData

You will want to use Persistent Variables.
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
[2016-02-12 07:40:14]
User972044 - Posts: 154
Hi there,

This is just to confirm if I understand this correctly. After reading the documentation, I am thinking of using sc.GetStudyArrayUsingID() to access the study and then its Subgraph[] array values but it seems that I would have to always know the actual Study ID of the pertaining study. Is that correct? What if I load up my study function/trading system on a different chart with different study ID assigned to the same study. Does that mean I have to go back to the codes to change it? Is there any way that I can dynamically get the ID of a study without knowing its ID beforehand?

Thank you for your help in advance
[2016-02-13 02:21:12]
Sierra Chart Engineering - Posts: 104368
The way this is handled and is demonstrated in the examples is by using a Study Input to get the study ID.

Refer to the documentation for ACSIL study Inputs.
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
[2016-02-13 06:23:29]
User972044 - Posts: 154
Yes but I have multiple studies on a chart and some studies are built-in studies by Sierra Chart so I wouldn't need to get its subgraph[] arrays values; it's only the ones that was custom built that I would need to get the values from. How would I know the study ID that I get will EXACTLY correspond to the custom study I want? How do I check it?

The documentation for ASCIL Study Inputs. Is this what you are referring to?

http://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_scInputs.html

Thanks
Date Time Of Last Edit: 2016-02-13 06:25:22
[2016-02-22 04:10:37]
User972044 - Posts: 154
Hello there,

I am trying to access the subgraph values from a chart using the sc.GetStudyArrayUsingID() function as instructed but it's not working. I would like to know am I supposed to use the SG value from the study setting window or the Subgraph number that I specified in my .cpp file? Because they are different. The SG value from the study setting is always starts at 1 and when I specified the Subgraph number in my .cpp file, I always started the Subgraph number at 0.

Also for the sc.GetStudyExtraArrayFromChartUsingID() function, again same question, am I supposed to use the Array ID in the .cpp file? Because for the arrays, its ID doesn't even show up in the study function window.

Thanks. I would appreciate if you can answer this question in less than 2 days as I am scrambling to debug my trading system as I only have 3 days left in my free trial. Once the debugging is finished, I can go live. Thanks
Date Time Of Last Edit: 2016-02-22 04:11:06
[2016-02-22 18:06:24]
Sierra Chart Engineering - Posts: 104368
Refer to the documentation here:
https://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_Functions.html#scGetStudyArrayUsingID


Also for the sc.GetStudyExtraArrayFromChartUsingID() function, again same question, am I supposed to use the Array ID in the .cpp file? Because for the arrays, its ID doesn't even show up in the study function window.
You need to use to study ID the arrays are from.
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
Date Time Of Last Edit: 2016-02-22 18:06:38
[2016-02-23 00:19:47]
User972044 - Posts: 154
For sc.GetStudyExtraArrayFromChartUsingID(), I KNOW to use the study ID of the array but I was asking about the Array ID of the study ID because the Array ID does NOT show anywhere in the study window. If you look at your documentation for the function, one of the parameter is the ExtraArrayIndex which is the array of the sc.Subgraph. The ONLY place that I find this ExtraArrayIndex is in the .cpp file. Is that the one I should use?

Thanks
[2016-02-23 01:39:39]
Sierra Chart Engineering - Posts: 104368
ExtraArrayIndex is a zero-based index.

Therefore, it will be the same as you use in the source code.
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