Login Page - Create Account

Support Board


Date/Time: Mon, 22 Apr 2019 07:01:05 +0000



sc.Input[].SetStudySubgraphValues()

Support Request:
[2017-07-23 15:25:56]
binaryduke - Posts: 163
After a user has selected a Study Subgraph (or chart/study/subgraph when using sc.Input[].SetChartStudySubgraphValues), it does not seem possible for the user to set this field to an empty value. An empty value only appears possible to be set during a study's sc.SetDefaults phase using sc.Input[].SetStudySubgraphValues(0,0).

Would it be possible to amend the handling of this family of drop down list inputs to enable a user to change these field back to a zero value?
[2017-07-23 22:18:39]
Sierra Chart Engineering - Posts: 71060
This is something we do not have any time for. It is not something we are going to prioritize. Therefore, we would not get to this until at least two years from now.

We recommend using another Input to cause this Input to be ignored in your study function.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
Date Time Of Last Edit: 2017-07-23 22:19:18
[2017-07-23 22:20:38]
Sierra Chart Engineering - Posts: 71060
You can also make a call to this outside of the sc.SetDefaults block:
sc.Input[].SetStudySubgraphValues(0,0).
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2019-03-11 19:58:07]
TedMar - Posts: 83
Any new ideas to set Value to 0?
[2019-03-12 21:55:48]
Ackin - Posts: 146
yes... use "custom input string"


example

SetDefaults....
use.Name = "Input:";
use.SetCustomInputStrings("0: None;1: input1;2: input2;3: input3");
use.SetCustomInputIndex(0);

main:
if (use.GetIndex() == 0) {

}
if (use.GetIndex() == 1) {
input1 = something
}

etc....
[2019-03-13 06:52:10]
TedMar - Posts: 83
@ackin but the value input for "SetStudySubgraphValues()" is dynamicly when u select them

To post a message in this thread, you need to login with your Sierra Chart account:

Login


Login Page - Create Account