Support Board
Date/Time: Mon, 03 Feb 2025 11:00:39 +0000
Post From: Accessing a subgraph value at an index
[2019-11-06 16:23:06] |
brenanstewart - Posts: 28 |
Ok so I changed all of the subgraph declarations to: SCSubgraphRef BarOpen = sc.Subgraph[0]; SCSubgraphRef BarHigh = sc.Subgraph[1]; SCSubgraphRef BarLow = sc.Subgraph[2]; SCSubgraphRef BarClose = sc.Subgraph[3]; I'm still assigning values to BarClose using: BarClose[Index] = StackPullValue; I tried to assign values to BarOpen using: BarOpen[Index] = BarClose.Arrays[0][Index]; to get the first value of BarClose at each index. This doesn't generate any errors when I build it. But when I add the study to my chart, BarOpen is always 0. |