Support Board
Date/Time: Wed, 27 Nov 2024 08:31:43 +0000
Post From: Using ACSIL To Access the subgraph value of a Study
[2023-02-19 02:49:37] |
Ticks - Posts: 183 |
After some sleep to rest my brain. It is working now with the below code. I have added additional details to help anyone who struggled like I did and may need a code example. int num = 0; SCInputRef Input_Line3Ref = sc.Input[num++];//define input Input_Line3Ref.Name = "Trend Direction";//Apply a name to the input reference Input_Line3Ref.SetStudySubgraphValues(0, 0);//Set Subgraph Values // using Input_Line3Ref input variables, retrieve the subgraph array SCFloatArray StudyLine3; sc.GetStudyArrayUsingID(Input_Line3Ref.GetStudyID(), Input_Line3Ref.GetSubgraphIndex(), StudyLine3); float TrendDirection = StudyLine3[sc.Index];//place data in a variable to be used anywhere in the study Thanks for all your assistance and patience. Date Time Of Last Edit: 2023-02-19 02:52:25
|