Support Board
Date/Time: Wed, 27 Nov 2024 08:37:10 +0000
Post From: Using ACSIL To Access the subgraph value of a Study
[2023-02-18 13:50:05] |
Ticks - Posts: 183 |
I used the example code from one of the SC examples of Moving Average cross-over studies. The code works and I can get the line values. I just can't access the line value of an indicator that has more than one subgraph. How is 'Input_Line3Ref' configured in your inputs?
int num = 0;SCInputRef Input_Line3Ref = sc.Input[num++]; sc.GetStudyArrayUsingID(Input_Line3Ref.GetStudyID(),StudyLine3); float TrendDirection = StudyLine3[8]; Subgraph 9 will either have a value of 1 or -1. using StudyLine3[8] returns a 1 that never changes. using StudyLine3[9] returns a 1 that never changes. |