Support Board
Date/Time: Wed, 27 Nov 2024 08:43:24 +0000
Post From: Using ACSIL To Access the subgraph value of a Study
[2023-09-14 03:46:43] |
Bricolico - Posts: 3 |
So many thanks for this lines of code that works fine. Would like to add one little precision that I struggled with a little bit (I'm new to Sierra Chart but not to coding). At the 4th line of code (see code above): Input_Line3Ref.SetStudySubgraphValues(0, 0); //***Define your Study#/Subgraph# Values of your Studies list***
This line is very important. - The first number represent your Study number. In your list, it is identified as ID:____ - The second number represent the index # of the Subgraph section (in the settings of the study). You will need to substract 1 to the line where your data is. So, if your data you want to import is on the first line of the subgraph, the number to put will be 0, not 1. And if the data imported is on the fourth line of a subgraph, the index # will be 3. Example: Your study is RSI-W and is located in your ID:7 list. You want to import the RSI-W Avg (SG4) The code line will look like this Input_Line3Ref.SetStudySubgraphValues(7, 3);
Just putting this here so it can help few of you, as well. |