Login Page - Create Account

Support Board


Date/Time: Mon, 13 May 2024 08:01:36 +0000



Cannot add new inputs to an already created study

View Count: 685

[2017-01-25 15:43:29]
AcquaLife - Posts: 33
I am a little confused why I can never add additional inputs to an already built study. I have sc.FreeDLL = 1 and I am trying to add the input

SCInputRef Study1 = sc.Input[5]; // I change it from input 0 to 5 since i already have an input 0
SCInputRef Study1Subgraph = sc.Input[6]; // I change it from input 1 to 6 since i alrady have an input 1

This is from the referencing other time frames documentation.
Additionally, I put this in my default code block
Average.Name = "Average";
Average.DrawStyle = DRAWSTYLE_LINE;
Study1.Name = "Input Study 1";
Study1.SetStudyID(0);
Study1Subgraph.Name = "Study 1 Subgraph";
Study1Subgraph.SetSubgraphIndex(0);
I also define Average as described in the code example.

Furthermore, I am sure that I am not assigning the input somewhere else, i.e i only assign input 5 and 6 in those two lines. Basically, I want to do price overlay study to pre-existing code. But since I can not get these inputs to show up in the setting of the study, so I can not define which study to look at.

Please help.
Thanks
[2017-01-25 17:53:59]
Sierra Chart Engineering - Posts: 104368
When you are adding or removing Study Inputs, you most definitely need to remove the study from the chart and add it again. Or close and reopen the Chartbook it is contained within.
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