Support Board
Date/Time: Mon, 25 Nov 2024 15:39:45 +0000
Post From: ACSIL - Couple of questions on sc.GetStudyArrayUsingID
[2016-10-23 03:37:18] |
ejtrader - Posts: 688 |
SC Team - Trying to use this function sc.GetStudyArrayUsingID() and have couple of questions in this regard. Question 1: Does this code - Tries to copy entire subgraph values(sg[0][0] till sg[0][sc.ArraySize-1]) for the chart every tick or just populates the reference to the subgraph? Just trying to save CPU cycles and would change the design if indeed - All the values gets copied every tick with below function. SCFloatArray Study1Array;
sc.GetStudyArrayUsingID(StudySugbraph1.GetStudyID(), StudySugbraph1.GetSubgraphIndex(), Study1Array); Question 2: Is there any function available to get just the subgraph value(or a reference) at specified Index of Study 1 from Study 2 on the same chart. For example - wanted to retrieve the value(or reference) of [study1][subgraph1][sc.Index] from study 2 - on the SAME chart. anything in the form - SubgraphRef v = sc.GetSubGraphRef[StudyID][SubGraphID][Index] Thanks Date Time Of Last Edit: 2016-10-24 14:17:32
|