Support Board
Date/Time: Sun, 12 Jan 2025 05:28:45 +0000
Post From: Cannot add new inputs to an already created study
[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";
I also define Average as described in the code example.Average.DrawStyle = DRAWSTYLE_LINE; Study1.Name = "Input Study 1"; Study1.SetStudyID(0); Study1Subgraph.Name = "Study 1 Subgraph"; Study1Subgraph.SetSubgraphIndex(0); 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 |